/* GlossRecap UI overhaul — single authoritative consistency layer */
:root{
  --gr-accent: var(--accent,#0a84ff);
  --gr-accent-rgb: var(--accent-rgb,10,132,255);
  --gr-text:#1d1d1f;
  --gr-muted:#6e6e73;
  --gr-line:rgba(60,60,67,.12);
  --gr-glass:rgba(255,255,255,.64);
  --gr-glass-strong:rgba(255,255,255,.82);
  --gr-glass-soft:rgba(255,255,255,.48);
  --gr-shadow:0 14px 36px rgba(38,49,67,.09), inset 0 1px 0 rgba(255,255,255,.72);
  --gr-shadow-hover:0 18px 42px rgba(38,49,67,.13), inset 0 1px 0 rgba(255,255,255,.82);
  --gr-radius-xl:30px;
  --gr-radius-lg:24px;
  --gr-radius-md:18px;
  --gr-radius-sm:14px;
  --gr-content:1180px;
  --gr-control-h:56px;
  --gr-gap:20px;
  --gr-sidebar:292px;
}

*{box-sizing:border-box}
html{min-height:100%;background:#eef7fd}
body{
  margin:0!important;
  min-height:100vh;
  color:var(--gr-text)!important;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text",Inter,system-ui,sans-serif!important;
  -webkit-font-smoothing:antialiased;
  background:
    radial-gradient(circle at 8% 12%,rgba(189,231,255,.56),transparent 30%),
    radial-gradient(circle at 88% 4%,rgba(222,220,255,.58),transparent 34%),
    linear-gradient(145deg,#edf8ff 0%,#f7f9ff 50%,#eef2ff 100%)!important;
  background-attachment:fixed!important;
}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}

/* ===== Layout ===== */
.app{min-height:100vh;display:flex;gap:0}
.sidebar{
  position:fixed!important;
  inset:16px auto 16px 16px!important;
  width:var(--gr-sidebar)!important;
  height:auto!important;
  min-height:0!important;
  padding:24px 20px 18px!important;
  display:flex!important;
  flex-direction:column!important;
  border:1px solid rgba(255,255,255,.78)!important;
  border-radius:var(--gr-radius-xl)!important;
  background:rgba(244,250,255,.66)!important;
  backdrop-filter:blur(32px) saturate(145%)!important;
  -webkit-backdrop-filter:blur(32px) saturate(145%)!important;
  box-shadow:var(--gr-shadow)!important;
  z-index:100!important;
  overflow:hidden!important;
}
.logo{
  padding:6px 10px 22px!important;
  margin:0 0 14px!important;
  border-bottom:1px solid var(--gr-line)!important;
  font-size:30px!important;
  line-height:1.05!important;
  font-weight:800!important;
  letter-spacing:-1.4px!important;
}
.logo #restaurant-name{
  margin-top:7px!important;
  font-size:14px!important;
  line-height:1.3!important;
  font-weight:600!important;
  letter-spacing:0!important;
  color:var(--gr-muted)!important;
}
.nav{display:flex!important;flex-direction:column!important;gap:8px!important}
.main-nav{padding-top:2px!important}
.nav a{
  min-height:48px!important;
  padding:0 16px!important;
  display:flex!important;
  align-items:center!important;
  border-radius:15px!important;
  font-size:16px!important;
  font-weight:650!important;
  transition:transform .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease!important;
}
.nav a:not(.active):hover{background:rgba(255,255,255,.58)!important;color:var(--gr-text)!important;transform:translateY(-1px)!important}
.main-nav a.active{background:var(--gr-accent)!important;color:#fff!important;box-shadow:0 8px 22px rgba(var(--gr-accent-rgb),.20)!important}
.bottom-nav{margin-top:auto!important;gap:8px!important}
.bottom-nav a{background:rgba(255,255,255,.72)!important;color:var(--gr-text)!important;border:1px solid rgba(255,255,255,.8)!important}
.bottom-nav a:hover{background:rgba(255,255,255,.9)!important}
.logout-link{color:#c7192d!important}

.main{
  width:calc(100% - var(--gr-sidebar) - 56px)!important;
  max-width:calc(var(--gr-content) + 100px)!important;
  margin-left:calc(var(--gr-sidebar) + 44px)!important;
  padding:48px 30px 72px!important;
  min-width:0!important;
}
.topbar,.page-header,.employees-fixed-controls,.settings-fixed-header{width:100%!important;max-width:var(--gr-content)!important;margin:0 auto 26px!important}
h1,.topbar h1,.page-header h1,.employees-fixed-controls h1,.settings-fixed-header h1{
  margin:0!important;
  font-size:clamp(38px,4.2vw,62px)!important;
  line-height:1!important;
  letter-spacing:-2.6px!important;
  font-weight:800!important;
  color:var(--gr-text)!important;
}
.topbar p,.page-header p,#info,.employees-fixed-controls #info,.settings-fixed-header #info{
  margin:10px 0 0!important;
  max-width:900px!important;
  color:var(--gr-muted)!important;
  font-size:17px!important;
  line-height:1.45!important;
}

/* ===== Shared surfaces ===== */
.card,.timecard,.employee,.status-card,.settings-card,.pref-card,.restaurant-card{
  border:1px solid rgba(255,255,255,.82)!important;
  border-radius:var(--gr-radius-lg)!important;
  background:var(--gr-glass)!important;
  backdrop-filter:blur(24px) saturate(140%)!important;
  -webkit-backdrop-filter:blur(24px) saturate(140%)!important;
  box-shadow:var(--gr-shadow)!important;
}
.cards{width:100%!important;max-width:var(--gr-content)!important;margin:0 auto!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--gr-gap)!important}
.card{min-height:190px!important;padding:30px!important}
.card h3{margin:0 0 12px!important;color:var(--gr-muted)!important;font-size:17px!important;font-weight:650!important}
.card .value{font-size:clamp(38px,4vw,56px)!important;line-height:1!important;font-weight:760!important;letter-spacing:-2px!important}
.subvalue{margin-top:8px!important;color:var(--gr-muted)!important}

/* ===== Shared form controls ===== */
input:not([type="checkbox"]):not([type="radio"]),select,textarea,.filter-button,.print-btn,.print-button,.export-button,.sf-select-button{
  min-height:var(--gr-control-h)!important;
  border:1px solid rgba(60,60,67,.14)!important;
  border-radius:var(--gr-radius-md)!important;
  background:rgba(255,255,255,.82)!important;
  box-shadow:0 4px 14px rgba(40,52,70,.06)!important;
  outline:none!important;
}
input:not([type="checkbox"]):not([type="radio"]),select,textarea{padding:0 18px!important}
input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:3px solid rgba(var(--gr-accent-rgb),.28)!important;outline-offset:2px!important}
.filter-button,.print-btn,.print-button,.export-button,.sf-select-button{padding:0 22px!important;font-weight:700!important;cursor:pointer!important}
.print-btn,.print-button,.export-button{background:var(--gr-accent)!important;color:#fff!important;border-color:transparent!important;box-shadow:0 8px 22px rgba(var(--gr-accent-rgb),.20)!important}
.print-btn:hover,.print-button:hover,.export-button:hover{transform:translateY(-1px)!important;filter:brightness(1.02)}

/* ===== Dashboard + Timecards controls ===== */
.dashboard-fixed-controls,.timecards-fixed-controls{width:100%!important;max-width:var(--gr-content)!important;margin:0 auto 30px!important}
.dashboard-filters,.timecard-controls-wrap{
  width:100%!important;
  margin:20px 0 0!important;
  padding:16px!important;
  display:grid!important;
  grid-template-columns:minmax(180px,1fr) minmax(220px,1.25fr) minmax(140px,.7fr)!important;
  align-items:center!important;
  gap:12px!important;
  border:1px solid rgba(255,255,255,.84)!important;
  border-radius:var(--gr-radius-lg)!important;
  background:var(--gr-glass-soft)!important;
  backdrop-filter:blur(22px) saturate(140%)!important;
  -webkit-backdrop-filter:blur(22px) saturate(140%)!important;
  box-shadow:var(--gr-shadow)!important;
}
.dashboard-filters>*,.dashboard-filters #day-controls,.dashboard-filters #week-controls,.dashboard-filters #month-controls,.dashboard-filters #custom-controls,.topbar-actions{min-width:0!important;width:100%!important;margin:0!important}
.dashboard-filters select,.dashboard-filters .filter-button,.dashboard-filters .print-btn,.timecard-controls-wrap select,.timecard-controls-wrap .filter-button,.timecard-controls-wrap .print-btn{width:100%!important}
.timecard-filters{display:contents!important}
.timecard-note{max-width:var(--gr-content)!important;margin:0 auto 14px!important;color:var(--gr-muted)!important;line-height:1.45!important}
.empty-message{padding:54px 20px!important;text-align:center!important;color:var(--gr-muted)!important;font-size:19px!important}

/* ===== Employees ===== */
.employee-search-wrap{margin-top:22px!important;width:100%!important}
.employee-search{width:100%!important;height:58px!important;font-size:17px!important}
.employee-tabs{
  width:max-content!important;
  margin-top:14px!important;
  padding:5px!important;
  display:flex!important;
  gap:4px!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.58)!important;
  border:1px solid rgba(255,255,255,.82)!important;
  box-shadow:var(--gr-shadow)!important;
}
.employee-tab{min-height:46px!important;padding:0 20px!important;border:0!important;border-radius:14px!important;background:transparent!important;font-weight:700!important;cursor:pointer!important;color:#3d4656!important}
.employee-tab:hover{background:rgba(255,255,255,.62)!important;color:inherit!important}
.employee-tab.active{background:var(--gr-accent)!important;color:#fff!important;box-shadow:0 6px 16px rgba(var(--gr-accent-rgb),.22)!important}
#employees{width:100%!important;max-width:var(--gr-content)!important;margin:0 auto!important;display:flex!important;flex-direction:column!important;gap:20px!important}
.employee{padding:30px!important}
.employee-name{font-size:24px!important;font-weight:760!important;margin-bottom:18px!important}
.employee-settings{display:grid!important;grid-template-columns:240px minmax(0,1fr)!important;gap:16px 28px!important;align-items:center!important}

/* ===== Settings hub ===== */
.settings-container{width:100%!important;max-width:var(--gr-content)!important;margin:0 auto!important}
.settings-hub{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;margin:0!important;padding:0!important}
.settings-hub-row{
  position:relative!important;
  min-height:168px!important;
  padding:24px 58px 24px 24px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:12px!important;
  border:1px solid rgba(255,255,255,.84)!important;
  border-radius:var(--gr-radius-lg)!important;
  background:var(--gr-glass)!important;
  color:var(--gr-text)!important;
  box-shadow:var(--gr-shadow)!important;
  backdrop-filter:blur(24px) saturate(140%)!important;
  -webkit-backdrop-filter:blur(24px) saturate(140%)!important;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease!important;
}
.settings-hub-row:hover{transform:translateY(-3px)!important;background:rgba(255,255,255,.76)!important;box-shadow:var(--gr-shadow-hover)!important;color:var(--gr-text)!important}
.settings-hub-row .settings-icon{
  position:static!important;
  width:52px!important;height:52px!important;flex:0 0 52px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  border-radius:15px!important;background:var(--gr-accent)!important;color:#fff!important;
  box-shadow:0 8px 18px rgba(var(--gr-accent-rgb),.18)!important;
}
.settings-hub-row .settings-icon svg{width:27px!important;height:27px!important;display:block!important}
.settings-hub-row>span:not(.settings-icon):not(.settings-hub-chevron),.settings-row-copy{display:flex!important;flex-direction:column!important;gap:4px!important;min-width:0!important}
.settings-hub-row strong{font-size:20px!important;line-height:1.2!important;font-weight:760!important}
.settings-hub-row small{font-size:15px!important;line-height:1.35!important;color:#8a8a90!important}
.settings-hub-chevron{position:absolute!important;right:22px!important;top:50%!important;transform:translateY(-50%)!important;font-size:30px!important;line-height:1!important;color:#b0b0b5!important}

/* Settings hub page only shows the hub. Detail pages only show their intended section. */
.settings-hub-page .settings-detail-back{display:none!important}
.settings-hub-page .settings-card{display:none!important}
.settings-section-page .settings-hub{display:none!important}
.settings-section-page .settings-fixed-header{margin-bottom:24px!important}
.settings-section-page .settings-detail-back,
.appearance-wrap .settings-detail-back{
  width:max-content!important;
  margin:18px 0 0!important;
  padding:0!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:9px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:var(--gr-accent)!important;
  font-size:17px!important;
  font-weight:650!important;
}
.settings-back-chevron{
  width:38px!important;height:38px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  border-radius:50%!important;border:1px solid rgba(var(--gr-accent-rgb),.26)!important;
  background:rgba(255,255,255,.54)!important;color:var(--gr-text)!important;
  font-size:32px!important;font-weight:400!important;line-height:1!important;box-shadow:none!important;
}
.settings-card{padding:30px!important;margin:0 0 20px!important}
.settings-card .section-title,.settings-card h2,.pref-card h2{font-size:24px!important;font-weight:760!important;letter-spacing:-.5px!important}
.settings-card .section-header{margin-bottom:20px!important}
.ios-settings-list{border-radius:var(--gr-radius-md)!important;overflow:hidden!important;background:rgba(255,255,255,.54)!important;border:1px solid rgba(255,255,255,.8)!important}
.ios-settings-row{min-height:62px!important;padding:14px 18px!important;border-bottom:1px solid var(--gr-line)!important}
.ios-settings-row:last-child{border-bottom:0!important}

/* Appearance page */
.appearance-wrap{width:min(var(--gr-content),calc(100% - 48px))!important;margin:0 auto!important;padding:48px 0 72px!important}
.appearance-wrap h1{font-size:clamp(38px,4.2vw,62px)!important}
.appearance-sub{margin:10px 0 0!important;color:var(--gr-muted)!important;font-size:17px!important}
.pref-card{margin-top:28px!important;padding:28px!important}

/* ===== Restaurants ===== */
.restaurants-page .main{margin:0 auto!important;width:min(var(--gr-content),calc(100% - 48px))!important;max-width:var(--gr-content)!important;padding:46px 0 72px!important}
.restaurants-page .restaurants-header,.restaurants-page .topbar{max-width:none!important}
.restaurant-list{display:flex!important;flex-direction:column!important;gap:16px!important}
.restaurant-card,.status-card{min-height:110px!important;padding:24px!important}
.restaurant-help-backdrop{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;background:rgba(235,240,248,.30)!important;backdrop-filter:blur(26px) saturate(130%)!important;-webkit-backdrop-filter:blur(26px) saturate(130%)!important;z-index:3000!important}
.restaurant-help-popup{position:fixed!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;width:min(620px,calc(100vw - 40px))!important;max-height:calc(100vh - 60px)!important;overflow:auto!important;padding:28px!important;border-radius:26px!important;background:rgba(255,255,255,.88)!important;border:1px solid rgba(255,255,255,.9)!important;box-shadow:0 28px 80px rgba(31,41,55,.18)!important;backdrop-filter:blur(26px) saturate(145%)!important;-webkit-backdrop-filter:blur(26px) saturate(145%)!important;z-index:3001!important}

/* ===== Toasts / motion ===== */
.save-toast,#gr-global-save-toast{border-radius:999px!important;background:rgba(28,28,30,.88)!important;color:#fff!important;backdrop-filter:blur(20px)!important;-webkit-backdrop-filter:blur(20px)!important;box-shadow:0 14px 40px rgba(0,0,0,.18)!important}
.gr-reduce-motion *,html.gr-reduce-motion *{animation:none!important;transition:none!important;scroll-behavior:auto!important}

/* ===== Compact / tablet ===== */
.mobile-nav-toggle{display:none!important}
.mobile-nav-hamburger{display:none!important}
@media(max-width:900px){
  :root{--gr-content:720px;--gr-gap:14px;--gr-control-h:58px}
  body{overflow-x:hidden!important}
  .app{display:block!important}
  .main{
    width:100%!important;max-width:none!important;margin:0!important;
    padding:138px 18px 56px!important;
  }
  .sidebar{
    position:fixed!important;
    top:14px!important;left:14px!important;right:14px!important;bottom:auto!important;
    width:auto!important;height:104px!important;min-height:104px!important;
    padding:0 18px 0 24px!important;
    display:flex!important;flex-direction:row!important;align-items:center!important;
    border-radius:28px!important;overflow:hidden!important;z-index:2000!important;
  }
  .sidebar .logo{
    flex:1!important;margin:0!important;padding:0!important;border:0!important;
    font-size:30px!important;white-space:nowrap!important;
  }
  .sidebar .logo #restaurant-name{display:none!important}
  .sidebar .main-nav,.sidebar .bottom-nav{display:none!important}
  .mobile-nav-hamburger{
    width:58px!important;height:58px!important;flex:0 0 58px!important;
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:6px!important;
    position:static!important;margin:0!important;padding:0!important;
    border:1px solid rgba(255,255,255,.82)!important;border-radius:18px!important;
    background:rgba(255,255,255,.78)!important;box-shadow:0 8px 20px rgba(31,41,55,.08)!important;
  }
  .mobile-nav-hamburger span{width:25px!important;height:2.5px!important;background:#242426!important;border-radius:999px!important;display:block!important}
  .sidebar.mobile-nav-open{
    height:min(610px,calc(100vh - 28px))!important;
    min-height:0!important;
    padding:24px!important;
    display:grid!important;
    grid-template-columns:1fr auto!important;
    grid-template-rows:78px 1px 1fr auto!important;
    column-gap:16px!important;row-gap:18px!important;
    align-items:start!important;
    overflow:auto!important;
  }
  .sidebar.mobile-nav-open .logo{grid-column:1!important;grid-row:1!important;align-self:center!important;font-size:32px!important}
  .sidebar.mobile-nav-open .mobile-nav-hamburger{
    grid-column:2!important;grid-row:1!important;align-self:center!important;
  }
  .sidebar.mobile-nav-open .mobile-nav-hamburger span:nth-child(1){transform:translateY(8.5px) rotate(45deg)!important}
  .sidebar.mobile-nav-open .mobile-nav-hamburger span:nth-child(2){opacity:0!important}
  .sidebar.mobile-nav-open .mobile-nav-hamburger span:nth-child(3){transform:translateY(-8.5px) rotate(-45deg)!important}
  .sidebar.mobile-nav-open::after{content:""!important;grid-column:1/-1!important;grid-row:2!important;height:1px!important;width:100%!important;background:var(--gr-line)!important}
  .sidebar.mobile-nav-open .main-nav{
    grid-column:1/-1!important;grid-row:3!important;display:flex!important;gap:8px!important;padding:0!important;
  }
  .sidebar.mobile-nav-open .main-nav a{min-height:54px!important;font-size:18px!important;padding:0 18px!important}
  .sidebar.mobile-nav-open .bottom-nav{
    grid-column:1/-1!important;grid-row:4!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin:0!important;
  }
  .sidebar.mobile-nav-open .bottom-nav a{min-height:54px!important;justify-content:center!important;padding:0 12px!important}

  h1,.topbar h1,.page-header h1,.employees-fixed-controls h1,.settings-fixed-header h1{font-size:44px!important;letter-spacing:-2px!important}
  .topbar,.page-header,.employees-fixed-controls,.settings-fixed-header,.dashboard-fixed-controls,.timecards-fixed-controls,.settings-container,#employees,.cards{max-width:var(--gr-content)!important}
  .dashboard-fixed-controls,.timecards-fixed-controls{margin-left:auto!important;margin-right:auto!important}
  .dashboard-filters,.timecard-controls-wrap{
    grid-template-columns:1fr!important;
    padding:14px!important;gap:12px!important;border-radius:22px!important;
  }
  .timecard-filters{display:flex!important;flex-direction:column!important;gap:12px!important}
  .dashboard-filters>*,.dashboard-filters #day-controls,.dashboard-filters #week-controls,.dashboard-filters #month-controls,.dashboard-filters #custom-controls,.topbar-actions{width:100%!important}
  .cards{grid-template-columns:1fr!important;gap:14px!important}
  .card{min-height:160px!important;padding:26px!important}
  .employee-settings{grid-template-columns:1fr!important;gap:10px!important}
  .employee-tabs{width:100%!important;display:grid!important;grid-template-columns:1fr 1fr!important}
  .employee-tab{width:100%!important}

  .settings-hub{grid-template-columns:1fr!important;gap:14px!important}
  .settings-hub-row{
    min-height:170px!important;padding:24px 58px!important;align-items:center!important;text-align:center!important;
  }
  .settings-hub-row>span:not(.settings-icon):not(.settings-hub-chevron),.settings-row-copy{align-items:center!important;text-align:center!important;width:100%!important}
  .settings-hub-row strong,.settings-hub-row small{text-align:center!important}
  .settings-hub-row .settings-icon{margin:0 auto!important}
  .settings-hub-chevron{right:22px!important}
  .settings-card{padding:24px!important}
  .settings-section-page .settings-fixed-header{margin-bottom:20px!important}

  .appearance-wrap{width:min(var(--gr-content),calc(100% - 36px))!important;padding:138px 0 56px!important}
  .restaurants-page .main{width:min(var(--gr-content),calc(100% - 36px))!important;padding:138px 0 56px!important}
}

@media(max-width:520px){
  :root{--gr-radius-xl:24px;--gr-radius-lg:20px;--gr-radius-md:16px}
  .main{padding-left:12px!important;padding-right:12px!important}
  .sidebar{left:10px!important;right:10px!important;top:10px!important;height:94px!important;min-height:94px!important;padding-left:18px!important}
  .sidebar .logo{font-size:26px!important}
  .mobile-nav-hamburger{width:54px!important;height:54px!important;flex-basis:54px!important}
  .sidebar.mobile-nav-open{height:min(590px,calc(100vh - 20px))!important;padding:20px!important}
  h1,.topbar h1,.page-header h1,.employees-fixed-controls h1,.settings-fixed-header h1{font-size:40px!important}
  .topbar p,.page-header p,#info,.employees-fixed-controls #info,.settings-fixed-header #info{font-size:16px!important}
  .settings-hub-row{min-height:160px!important;padding:22px 50px!important}
  .card,.employee,.settings-card{padding:22px!important}
}


/* ==========================================================
   v2 — compact consistency pass
   ========================================================== */
:root{--gr-content:1120px;--gr-control-h:50px;--gr-gap:16px;--gr-radius-xl:26px;--gr-radius-lg:20px;--gr-radius-md:15px}
.main{padding-top:38px!important;padding-bottom:58px!important}
.topbar,.page-header,.employees-fixed-controls,.settings-fixed-header{margin-bottom:20px!important}
h1,.topbar h1,.page-header h1,.employees-fixed-controls h1,.settings-fixed-header h1{font-size:clamp(34px,3.6vw,52px)!important;letter-spacing:-2px!important}
.topbar p,.page-header p,#info,.employees-fixed-controls #info,.settings-fixed-header #info{margin-top:8px!important;font-size:15px!important}
.card{min-height:160px!important;padding:24px!important}.card h3{font-size:15px!important;margin-bottom:9px!important}.card .value{font-size:clamp(34px,3.4vw,48px)!important}
.dashboard-fixed-controls,.timecards-fixed-controls{margin-bottom:24px!important}.dashboard-filters,.timecard-controls-wrap{margin-top:16px!important;padding:12px!important;gap:10px!important}.filter-button,.print-btn,.print-button,.export-button,.sf-select-button{padding-left:18px!important;padding-right:18px!important}
.employee-search-wrap{margin-top:16px!important}.employee-search{height:52px!important;font-size:15px!important}.employee-tabs{margin-top:10px!important}.employee-tab{min-height:42px!important;padding:0 17px!important}#employees{gap:16px!important}.employee{padding:24px!important}.employee-name{font-size:21px!important;margin-bottom:14px!important}
body.settings-hub-page .settings-hub-row::before{display:none!important;content:none!important}.settings-hub{gap:12px!important}.settings-hub-row{min-height:138px!important;padding:20px 50px!important;gap:9px!important}.settings-hub-row .settings-icon{width:46px!important;height:46px!important;flex-basis:46px!important;border-radius:13px!important;margin:0 auto!important}.settings-hub-row .settings-icon svg{width:24px!important;height:24px!important;display:block!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important}.settings-hub-row>span:not(.settings-icon):not(.settings-hub-chevron),.settings-row-copy{align-items:center!important;text-align:center!important;width:100%!important}.settings-hub-row strong{font-size:18px!important}.settings-hub-row small{font-size:14px!important}.settings-hub-chevron{right:18px!important;font-size:27px!important}.settings-card{padding:24px!important;margin-bottom:16px!important}.settings-card .section-title,.settings-card h2,.pref-card h2{font-size:21px!important}
.bottom-nav a,.sidebar.mobile-nav-open .bottom-nav a{background:rgba(255,255,255,.82)!important;color:var(--gr-text)!important;border:1px solid rgba(255,255,255,.9)!important;box-shadow:0 5px 16px rgba(31,41,55,.07)!important}.bottom-nav a:hover,.sidebar.mobile-nav-open .bottom-nav a:hover{background:rgba(255,255,255,.96)!important;color:var(--gr-text)!important}.logout-link{color:#c7192d!important}
.restaurants-page .main{padding-top:38px!important}.restaurant-card,.status-card{min-height:94px!important;padding:20px!important}.restaurant-help-popup.compact{position:static!important;transform:none!important;width:100%!important;margin:12px 0 0!important;padding:10px 14px!important;border-radius:15px!important;box-shadow:none!important;background:rgba(255,255,255,.62)!important}
@media(max-width:900px){:root{--gr-content:680px;--gr-control-h:52px;--gr-gap:12px}.main{padding:122px 14px 46px!important}.sidebar{top:12px!important;left:12px!important;right:12px!important;height:92px!important;min-height:92px!important;padding:0 16px 0 20px!important;border-radius:24px!important}.sidebar .logo{font-size:27px!important;letter-spacing:-1.2px!important}.mobile-nav-hamburger{width:54px!important;height:54px!important;flex-basis:54px!important;border-radius:16px!important}.dashboard-fixed-controls .topbar,.timecards-fixed-controls .topbar,.employees-fixed-controls,.settings-fixed-header{display:block!important;visibility:visible!important;opacity:1!important}h1,.topbar h1,.page-header h1,.employees-fixed-controls h1,.settings-fixed-header h1{display:block!important;font-size:36px!important;line-height:1.04!important;letter-spacing:-1.5px!important}.topbar p,.page-header p,#info,.employees-fixed-controls #info,.settings-fixed-header #info{font-size:14px!important}.dashboard-filters,.timecard-controls-wrap{padding:10px!important;gap:9px!important;border-radius:18px!important}.card{min-height:138px!important;padding:20px!important}.card .value{font-size:42px!important}.settings-hub{gap:10px!important}.settings-hub-row{min-height:132px!important;padding:18px 44px!important}.settings-hub-row .settings-icon{width:44px!important;height:44px!important;flex-basis:44px!important}.settings-hub-row strong{font-size:17px!important}.settings-hub-row small{font-size:13.5px!important}.sidebar.mobile-nav-open{height:min(500px,calc(100vh - 24px))!important;padding:18px!important;grid-template-rows:62px 1px 1fr auto!important;row-gap:12px!important}.sidebar.mobile-nav-open .logo{font-size:28px!important}.sidebar.mobile-nav-open .main-nav a{min-height:46px!important;font-size:16px!important}.sidebar.mobile-nav-open .bottom-nav a{min-height:46px!important;font-size:15px!important}.restaurants-page .main,.appearance-wrap{padding-top:122px!important}}
@media(max-width:520px){.main{padding-top:112px!important}.sidebar{height:86px!important;min-height:86px!important}.sidebar .logo{font-size:25px!important}.mobile-nav-hamburger{width:50px!important;height:50px!important;flex-basis:50px!important}h1,.topbar h1,.page-header h1,.employees-fixed-controls h1,.settings-fixed-header h1{font-size:34px!important}.settings-hub-row{min-height:124px!important;padding:17px 42px!important}.settings-hub-row .settings-icon{width:42px!important;height:42px!important;flex-basis:42px!important}.settings-card,.employee,.card{padding:18px!important}}

/* ==========================================================
   v3 — compact header + settings shell cleanup
   ========================================================== */

/* Settings hub cards should float directly on the page, not inside
   a second large glass/card shell inherited from legacy styles. */
body.settings-hub-page .settings-container,
body.settings-hub-page main .settings-container {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

@media (max-width: 900px) {
  /* Closed compact header is ALWAYS only logo + hamburger. */
  .sidebar:not(.mobile-nav-open) {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto !important;
    grid-template-rows: 1fr !important;
    align-items: center !important;
  }
  .sidebar:not(.mobile-nav-open) .main-nav,
  .sidebar:not(.mobile-nav-open) .bottom-nav,
  .sidebar:not(.mobile-nav-open) .mobile-nav-toggle,
  .sidebar:not(.mobile-nav-open) .switch-restaurant-link,
  .sidebar:not(.mobile-nav-open) .logout-link {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .sidebar:not(.mobile-nav-open) .logo {
    grid-column: 1 !important;
    grid-row: 1 !important;
    margin: 0 !important;
  }
  .sidebar:not(.mobile-nav-open) .mobile-nav-hamburger {
    display: inline-flex !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    margin: 0 !important;
  }

  /* Only reveal Switch / Log Out inside the expanded dropdown. */
  .sidebar.mobile-nav-open .bottom-nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .sidebar.mobile-nav-open .bottom-nav a {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: rgba(255,255,255,.82) !important;
    color: var(--gr-text) !important;
    border: 1px solid rgba(255,255,255,.92) !important;
    box-shadow: 0 5px 16px rgba(31,41,55,.07) !important;
  }
  .sidebar.mobile-nav-open .bottom-nav .logout-link {
    color: #c7192d !important;
  }

  /* Settings hub itself has no enclosing shell on compact either. */
  body.settings-hub-page .settings-container {
    margin-top: 0 !important;
  }
}

/* ==========================================================
   v4 — responsive stability + accent consistency
   ========================================================== */

/* Accent must reach every primary action/control. */
.print-btn,
.print-button,
.export-button,
#export-button,
#print-button,
.invite-button,
#create-invite-button,
button.primary,
.btn-primary,
.primary-button,
.settings-save-button,
input[type="checkbox"]:checked + .slider,
.toggle input:checked + .slider,
.switch input:checked + .slider {
  background: var(--gr-accent) !important;
  border-color: var(--gr-accent) !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(var(--gr-accent-rgb), .20) !important;
}

/* Remove leftover structural divider lines in navigation/settings. */
.sidebar .logo { border-bottom: 0 !important; }
.sidebar.mobile-nav-open::after { display:none !important; content:none !important; }
.settings-hub-row { border-bottom: 0 !important; }

/* Settings hub has NO outer card. Each row is its own independent bubble. */
body.settings-hub-page .settings-hub {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:14px !important;
  overflow:visible !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  border-radius:0 !important;
  padding:0 !important;
}
body.settings-hub-page .settings-hub-row {
  background:rgba(255,255,255,.78) !important;
  border:1px solid rgba(255,255,255,.9) !important;
  border-radius:22px !important;
  box-shadow:var(--gr-shadow) !important;
}
body.settings-hub-page .settings-hub-row:hover {
  background:rgba(255,255,255,.9) !important;
  color:var(--gr-text) !important;
}

/* Employee salary selector is a normal full-size control, never a tiny pill. */
.current-pay-box,
.current-pay-grid { width:100% !important; min-width:0 !important; }
.current-pay-grid {
  display:grid !important;
  grid-template-columns:190px minmax(280px, 1fr) !important;
  align-items:center !important;
  gap:18px !important;
}
.current-pay-select {
  width:100% !important;
  min-width:280px !important;
  max-width:520px !important;
  min-height:52px !important;
  padding:0 46px 0 18px !important;
  border-radius:15px !important;
  white-space:nowrap !important;
  line-height:1.2 !important;
}

/* Dashboard/Timecards controls should keep their size and reflow, not shrink/stretch. */
.dashboard-filters,
.timecard-controls-wrap {
  width:fit-content !important;
  max-width:100% !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
.dashboard-filters {
  grid-template-columns:260px 300px 260px !important;
  justify-content:center !important;
}
.timecard-controls-wrap {
  display:grid !important;
  grid-template-columns:260px 300px 260px !important;
  justify-content:center !important;
}
.timecard-filters { display:contents !important; }
.dashboard-filters > *,
.timecard-controls-wrap > *,
.timecard-controls-wrap .timecard-filters > * {
  min-width:0 !important;
}
.filter-button,
.dashboard-filters select,
.dashboard-filters input,
.timecard-controls-wrap select,
.timecard-controls-wrap input,
.print-btn,
.print-button,
.export-button {
  height:56px !important;
  min-height:56px !important;
}

@media (max-width: 1050px) and (min-width: 901px) {
  .dashboard-filters,
  .timecard-controls-wrap {
    grid-template-columns:260px 300px !important;
  }
  .dashboard-filters .print-btn,
  .dashboard-filters .print-button,
  .dashboard-filters .export-button,
  .timecard-controls-wrap #print-button {
    grid-column:1 / -1 !important;
    width:260px !important;
    justify-self:center !important;
  }
}

@media (max-width:900px) {
  :root { --mobile-toolbar-height:92px !important; }

  /* Closed nav is exactly one stable rounded bar. No half-collapsed state. */
  .sidebar,
  .sidebar.mobile-nav-scrolled,
  .sidebar:not(.mobile-nav-open) {
    top:12px !important;
    left:12px !important;
    right:12px !important;
    bottom:auto !important;
    width:auto !important;
    height:92px !important;
    min-height:92px !important;
    max-height:92px !important;
    padding:0 16px 0 20px !important;
    border-radius:26px !important;
    overflow:hidden !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    grid-template-rows:92px !important;
    align-items:center !important;
  }
  .sidebar:not(.mobile-nav-open) .logo {
    grid-column:1 !important;
    grid-row:1 !important;
    align-self:center !important;
    padding:0 !important;
    margin:0 !important;
    font-size:27px !important;
    line-height:1 !important;
  }
  .sidebar:not(.mobile-nav-open) .mobile-nav-hamburger {
    grid-column:2 !important;
    grid-row:1 !important;
    align-self:center !important;
  }

  /* Open menu becomes an overlay; it does not change page spacing. */
  .sidebar.mobile-nav-open {
    height:auto !important;
    min-height:0 !important;
    max-height:calc(100vh - 24px) !important;
    padding:18px !important;
    border-radius:26px !important;
    overflow:auto !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    grid-template-rows:62px auto auto !important;
    row-gap:12px !important;
  }
  .sidebar.mobile-nav-open .logo {
    grid-column:1 !important;
    grid-row:1 !important;
    align-self:center !important;
    padding:0 !important;
    margin:0 !important;
  }
  .sidebar.mobile-nav-open .mobile-nav-hamburger { grid-column:2 !important; grid-row:1 !important; }
  .sidebar.mobile-nav-open .main-nav { grid-column:1/-1 !important; grid-row:2 !important; }
  .sidebar.mobile-nav-open .bottom-nav { grid-column:1/-1 !important; grid-row:3 !important; }

  /* Page always reserves only the CLOSED header height. */
  .main,
  .restaurants-page .main,
  .appearance-wrap {
    padding-top:124px !important;
  }

  /* Controls retain comfortable dimensions, then stack instead of shrinking. */
  .dashboard-filters,
  .timecard-controls-wrap {
    width:min(680px,100%) !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
  }
  .timecard-filters { display:flex !important; flex-direction:column !important; gap:10px !important; }
  .dashboard-filters > *,
  .dashboard-filters #day-controls,
  .dashboard-filters #week-controls,
  .dashboard-filters #month-controls,
  .dashboard-filters #custom-controls,
  .timecard-controls-wrap > *,
  .timecard-controls-wrap .timecard-filters,
  .timecard-controls-wrap .timecard-filters > * {
    width:100% !important;
    min-width:0 !important;
  }

  .current-pay-grid {
    grid-template-columns:1fr !important;
    gap:8px !important;
  }
  .current-pay-select { min-width:0 !important; max-width:none !important; }

  body.settings-hub-page .settings-hub {
    grid-template-columns:1fr !important;
    gap:12px !important;
  }
}

@media (max-width:520px) {
  :root { --mobile-toolbar-height:86px !important; }
  .sidebar,
  .sidebar.mobile-nav-scrolled,
  .sidebar:not(.mobile-nav-open) {
    height:86px !important;
    min-height:86px !important;
    max-height:86px !important;
    grid-template-rows:86px !important;
    border-radius:24px !important;
  }
  .main,
  .restaurants-page .main,
  .appearance-wrap { padding-top:116px !important; }
}

/* ==========================================================
   v6 — compact nav overlay lock
   ========================================================== */
@media (max-width:900px) {
  /* Closed state never morphs with scroll. */
  .sidebar,
  .sidebar.mobile-nav-scrolled,
  .sidebar:not(.mobile-nav-open) {
    top:12px !important;
    left:12px !important;
    right:12px !important;
    bottom:auto !important;
    height:92px !important;
    min-height:92px !important;
    max-height:92px !important;
    border-radius:26px !important;
    overflow:hidden !important;
    transform:none !important;
  }

  /* Open state is a fixed overlay anchored to the same top edge. */
  .sidebar.mobile-nav-open,
  .sidebar.mobile-nav-scrolled.mobile-nav-open {
    top:12px !important;
    left:12px !important;
    right:12px !important;
    bottom:auto !important;
    width:auto !important;
    height:auto !important;
    min-height:0 !important;
    max-height:calc(100vh - 24px) !important;
    padding:18px !important;
    border-radius:26px !important;
    overflow:auto !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    grid-template-rows:62px auto auto !important;
    row-gap:12px !important;
    align-items:start !important;
    background:rgba(242,248,253,.98) !important;
    backdrop-filter:blur(34px) saturate(150%) !important;
    -webkit-backdrop-filter:blur(34px) saturate(150%) !important;
    box-shadow:0 18px 46px rgba(31,41,55,.16), inset 0 1px 0 rgba(255,255,255,.85) !important;
    transform:none !important;
  }

  .sidebar.mobile-nav-open .logo {
    grid-column:1 !important;
    grid-row:1 !important;
    align-self:center !important;
    margin:0 !important;
    padding:0 !important;
  }

  .sidebar.mobile-nav-open .mobile-nav-hamburger {
    grid-column:2 !important;
    grid-row:1 !important;
    align-self:center !important;
    justify-self:end !important;
  }

  .sidebar.mobile-nav-open .main-nav {
    grid-column:1 / -1 !important;
    grid-row:2 !important;
    display:flex !important;
    flex-direction:column !important;
    gap:8px !important;
    width:100% !important;
    margin:0 !important;
    padding:8px 0 0 !important;
    visibility:visible !important;
    opacity:1 !important;
  }

  .sidebar.mobile-nav-open .bottom-nav {
    grid-column:1 / -1 !important;
    grid-row:3 !important;
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
    width:100% !important;
    margin:4px 0 0 !important;
    padding:0 !important;
    visibility:visible !important;
    opacity:1 !important;
  }

  /* Page layout is identical whether the menu is open or closed. */
  body,
  body.gr-nav-scrolled {
    padding-top:0 !important;
  }
  .main,
  .restaurants-page .main,
  .appearance-wrap {
    padding-top:124px !important;
  }
}

@media (max-width:520px) {
  .sidebar,
  .sidebar.mobile-nav-scrolled,
  .sidebar:not(.mobile-nav-open) {
    height:86px !important;
    min-height:86px !important;
    max-height:86px !important;
    border-radius:24px !important;
  }
  .sidebar.mobile-nav-open,
  .sidebar.mobile-nav-scrolled.mobile-nav-open {
    top:10px !important;
    left:10px !important;
    right:10px !important;
    max-height:calc(100vh - 20px) !important;
    border-radius:24px !important;
  }
  .main,
  .restaurants-page .main,
  .appearance-wrap {
    padding-top:116px !important;
  }
}

/* ==========================================================
   v8 — accent completeness + shared Dashboard/Timecards sizing
   ========================================================== */
:root{
  --gr-accent: var(--accent, #0a84ff);
  --gr-accent-rgb: var(--accent-rgb, 10,132,255);
}

/* Every primary interactive surface follows the selected accent. */
.print-btn,
.print-button,
.export-button,
#dashboard-print-button,
#timecards-print-button,
#add-restaurant-button,
.add-button,
.invite-button,
#create-invite-button,
.primary-button,
.primary-btn,
button.primary,
.settings-save-button,
.save-button {
  background: var(--gr-accent) !important;
  background-color: var(--gr-accent) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(var(--gr-accent-rgb), .20) !important;
}

/* Selected/toggle UI follows the chosen accent too. */
.reporting-toggle:checked,
.manual-adjust-toggle:checked,
.job-tip-checkbox:checked,
input[type="checkbox"].ios-switch:checked,
input[type="checkbox"].toggle:checked,
.switch-input:checked,
.segmented button.active,
.employee-tab.active,
.employee-tab[aria-selected="true"],
.save-toast,
.success-check {
  background: var(--gr-accent) !important;
  background-color: var(--gr-accent) !important;
}
.reporting-toggle:focus-visible,
.manual-adjust-toggle:focus-visible,
.job-tip-checkbox:focus-visible {
  box-shadow: 0 0 0 4px rgba(var(--gr-accent-rgb), .22) !important;
}

/* Current nav state always follows the accent instead of legacy blue. */
.sidebar .main-nav a.active,
.sidebar .main-nav a[aria-current="page"] {
  background: var(--gr-accent) !important;
  color:#fff !important;
  box-shadow: 0 8px 22px rgba(var(--gr-accent-rgb), .18) !important;
}

/* Dashboard and Timecards share exactly the same content rail. */
.dashboard-fixed-controls,
.timecards-fixed-controls,
.cards,
#timecards,
.job-section,
.salary-add-wrap {
  width:100% !important;
  max-width:var(--gr-content) !important;
  margin-left:auto !important;
  margin-right:auto !important;
  box-sizing:border-box !important;
}

.dashboard-filters,
.timecard-controls-wrap {
  width:100% !important;
  max-width:var(--gr-content) !important;
  box-sizing:border-box !important;
}

/* Shared card geometry: same glass, radius, padding, and visual weight. */
.card,
.day-card,
.summary-card {
  border-radius:26px !important;
  border:1px solid rgba(255,255,255,.82) !important;
  background:rgba(255,255,255,.72) !important;
  box-shadow:0 14px 32px rgba(31,41,55,.08), inset 0 1px 0 rgba(255,255,255,.84) !important;
  box-sizing:border-box !important;
}
.card {
  min-height:160px !important;
  padding:24px !important;
}
.day-card,
.summary-card {
  padding:24px !important;
  margin-bottom:16px !important;
}

/* Internal Timecard rows use spacing, not separator rules. */
.timecard + .timecard,
.monthly-salary-row + .monthly-salary-row {
  border-top:0 !important;
}

@media (min-width:901px){
  .dashboard-filters,
  .timecard-controls-wrap {
    grid-template-columns:260px 300px minmax(240px,1fr) !important;
  }
  .dashboard-filters .print-btn,
  .dashboard-filters .print-button,
  .dashboard-filters .export-button,
  .timecard-controls-wrap #print-button {
    width:100% !important;
  }
}

@media (max-width:900px){
  .dashboard-fixed-controls,
  .timecards-fixed-controls,
  .cards,
  #timecards,
  .job-section,
  .salary-add-wrap {
    max-width:680px !important;
  }
  .dashboard-filters,
  .timecard-controls-wrap {
    max-width:680px !important;
  }
  .card,
  .day-card,
  .summary-card {
    border-radius:22px !important;
    padding:22px !important;
  }
}

/* ==========================================================
   v9 — unified Dashboard + Timecards filter bar geometry
   ========================================================== */

/* Both pages use the same three-column rail on desktop. */
@media (min-width: 901px) {
  .dashboard-filters,
  .timecard-controls-wrap {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: center !important;
    gap: 22px !important;
    padding: 14px !important;
  }

  /* Timecards has an extra wrapper in the markup; flatten it so the same
     period/date/export geometry is used as Dashboard. */
  .timecard-controls-wrap .timecard-filters {
    display: contents !important;
  }

  /* Column 1 — period selector */
  .dashboard-filters > .sf-select,
  .timecard-controls-wrap .sf-select {
    grid-column: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  /* Column 2 — whichever date/range control is currently visible */
  .dashboard-filters > #day-controls,
  .dashboard-filters > #week-controls,
  .dashboard-filters > #month-controls,
  .dashboard-filters > #custom-controls,
  .timecard-controls-wrap #day-controls,
  .timecard-controls-wrap #week-controls,
  .timecard-controls-wrap #month-controls,
  .timecard-controls-wrap #custom-controls {
    grid-column: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  /* Column 3 — Export */
  .dashboard-filters > .topbar-actions,
  .timecard-controls-wrap > #print-button {
    grid-column: 3 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .dashboard-filters > .topbar-actions {
    display: block !important;
  }

  /* Exact same control height and internal spacing everywhere. */
  .dashboard-filters .sf-select-button,
  .timecard-controls-wrap .sf-select-button,
  .dashboard-filters .filter-button,
  .timecard-controls-wrap .filter-button,
  .dashboard-filters .print-btn,
  .timecard-controls-wrap #print-button {
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}

/* Narrow layouts keep the same control height and stack instead of squeezing. */
@media (max-width: 900px) {
  .dashboard-filters,
  .timecard-controls-wrap,
  .timecard-controls-wrap .timecard-filters {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 12px !important;
  }

  .dashboard-filters > .sf-select,
  .dashboard-filters > #day-controls,
  .dashboard-filters > #week-controls,
  .dashboard-filters > #month-controls,
  .dashboard-filters > #custom-controls,
  .dashboard-filters > .topbar-actions,
  .timecard-controls-wrap .sf-select,
  .timecard-controls-wrap #day-controls,
  .timecard-controls-wrap #week-controls,
  .timecard-controls-wrap #month-controls,
  .timecard-controls-wrap #custom-controls,
  .timecard-controls-wrap > #print-button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .dashboard-filters .sf-select-button,
  .timecard-controls-wrap .sf-select-button,
  .dashboard-filters .filter-button,
  .timecard-controls-wrap .filter-button,
  .dashboard-filters .print-btn,
  .timecard-controls-wrap #print-button {
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    box-sizing: border-box !important;
  }
}


/* ==========================================================
   v10 — mobile Timecards matches Dashboard / Today's Stats
   ========================================================== */
@media (max-width: 900px) {
  /* Cancel the older Timecards-only fixed/stacking treatment. */
  body:has(.timecards-fixed-controls) .main {
    padding-top: 122px !important;
  }

  .timecards-fixed-controls {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-width: var(--gr-content) !important;
    margin: 0 auto 24px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .timecards-fixed-controls .page-header,
  .timecards-fixed-controls .timecard-note,
  .timecards-fixed-controls .timecard-controls-wrap {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .timecards-fixed-controls .page-header {
    margin-bottom: 8px !important;
  }

  .timecards-fixed-controls .page-header h1 {
    margin: 0 !important;
    font-size: 36px !important;
    line-height: 1.04 !important;
    letter-spacing: -1.5px !important;
  }

  .timecards-fixed-controls .timecard-note {
    margin: 0 0 18px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    white-space: nowrap !important;
  }

  .timecards-fixed-controls .timecard-controls-wrap {
    margin: 0 !important;
    padding: 10px !important;
    gap: 9px !important;
    border-radius: 18px !important;
  }

  /* Match Dashboard's stacked mobile filter controls exactly. */
  .timecard-controls-wrap,
  .timecard-controls-wrap .timecard-filters {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }

  .timecard-controls-wrap .sf-select,
  .timecard-controls-wrap #day-controls,
  .timecard-controls-wrap #week-controls,
  .timecard-controls-wrap #month-controls,
  .timecard-controls-wrap #custom-controls,
  .timecard-controls-wrap > #print-button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .timecard-controls-wrap .sf-select-button,
  .timecard-controls-wrap .filter-button,
  .timecard-controls-wrap #print-button {
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
  }

  #timecards {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    max-width: var(--gr-content) !important;
    margin: 0 auto !important;
    padding-top: 0 !important;
  }
}

@media (max-width: 560px) {
  .timecards-fixed-controls .timecard-note {
    white-space: normal !important;
  }
}

/* ==========================================================
   FINAL MOBILE HEADER + ACCESSIBILITY CONSISTENCY PASS
   ========================================================== */

/* Accessibility preferences are applied by appearance.js on <html>. */
html.gr-invert {
  filter: invert(1) hue-rotate(180deg) !important;
  background: #111 !important;
}
html.gr-invert img,
html.gr-invert video,
html.gr-invert canvas,
html.gr-invert picture {
  filter: invert(1) hue-rotate(180deg) !important;
}

html.gr-reduce-motion,
html.gr-reduce-motion *,
html.gr-reduce-motion *::before,
html.gr-reduce-motion *::after {
  scroll-behavior: auto !important;
  animation: none !important;
  transition: none !important;
  transform-duration: 0s !important;
}

html.gr-strong-focus :focus-visible {
  outline: 3px solid var(--accent, #0a84ff) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 5px var(--focus-ring, rgba(10,132,255,.28)) !important;
}

html.gr-large-text body {
  line-height: 1.55 !important;
}
html.gr-large-text p,
html.gr-large-text small,
html.gr-large-text #info,
html.gr-large-text .timecard-note,
html.gr-large-text .settings-hub-row small,
html.gr-large-text .pref-copy small,
html.gr-large-text label,
html.gr-large-text input,
html.gr-large-text select,
html.gr-large-text button,
html.gr-large-text a {
  font-size: 1.1em !important;
}
html.gr-large-text .card h3,
html.gr-large-text .employee-name,
html.gr-large-text .settings-hub-row strong,
html.gr-large-text .settings-card h2,
html.gr-large-text .pref-copy strong {
  font-size: 1.12em !important;
}

/* Accent must reach Settings as well as the rest of the app. */
.settings-hub-row .settings-icon,
.settings-hub-row:hover .settings-icon,
.pref-card .toggle input:checked + .track,
.settings-section-page button:not(.danger):not(.logout-link),
.settings-section-page .primary-button,
.settings-section-page .save-button,
.settings-section-page .invite-button,
.settings-section-page .create-invite,
.settings-section-page input[type="checkbox"]:checked,
.settings-section-page input[type="radio"]:checked {
  background-color: var(--accent, #0a84ff) !important;
  border-color: var(--accent, #0a84ff) !important;
}
.settings-detail-back,
.settings-detail-back:visited,
.settings-section-page a:not(.danger):not(.logout-link):focus-visible {
  color: var(--accent, #0a84ff) !important;
}

/* Settings chevrons: geometrically centered in every card. */
.settings-hub-row {
  position: relative !important;
}
.settings-hub-row .settings-hub-chevron {
  position: absolute !important;
  right: 22px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  height: 32px !important;
  line-height: 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
}

/* All main mobile page headers share one exact system. */
@media (max-width: 900px) {
  :root {
    --gr-mobile-heading-x: 20px;
    --gr-mobile-heading-size: 42px;
    --gr-mobile-subtitle-size: 16px;
    --gr-mobile-heading-gap: 10px;
    --gr-mobile-heading-bottom: 24px;
  }

  /* Do not let max-width centering move one page header differently from another. */
  .dashboard-fixed-controls > .topbar,
  .timecards-fixed-controls > .page-header,
  .employees-fixed-controls,
  body.settings-hub-page .settings-fixed-header,
  body.settings-section-page .settings-fixed-header {
    width: auto !important;
    max-width: none !important;
    margin-left: var(--gr-mobile-heading-x) !important;
    margin-right: var(--gr-mobile-heading-x) !important;
  }

  .dashboard-fixed-controls > .topbar,
  .timecards-fixed-controls > .page-header,
  body.settings-hub-page .settings-fixed-header,
  body.settings-section-page .settings-fixed-header {
    margin-top: 34px !important;
    margin-bottom: var(--gr-mobile-heading-bottom) !important;
    padding: 0 !important;
  }

  /* Employees contains search/tabs too, so only normalize its heading text block. */
  .employees-fixed-controls {
    margin-top: 34px !important;
  }

  .dashboard-fixed-controls > .topbar h1,
  .timecards-fixed-controls > .page-header h1,
  .employees-fixed-controls > h1,
  body.settings-hub-page .settings-fixed-header > h1,
  body.settings-section-page .settings-fixed-header > h1 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: var(--gr-mobile-heading-size) !important;
    line-height: 1.04 !important;
    letter-spacing: -1.8px !important;
    font-weight: 750 !important;
  }

  .dashboard-fixed-controls > .topbar p,
  .timecards-fixed-controls > .timecard-note,
  .employees-fixed-controls > #info,
  body.settings-hub-page .settings-fixed-header > #info,
  body.settings-section-page .settings-fixed-header > #info {
    margin-top: var(--gr-mobile-heading-gap) !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    font-size: var(--gr-mobile-subtitle-size) !important;
    line-height: 1.45 !important;
    color: #6e6e73 !important;
    font-weight: 400 !important;
  }

  /* Timecards subtitle lives outside page-header; align it to the identical x edge. */
  .timecards-fixed-controls > .timecard-note {
    width: auto !important;
    max-width: none !important;
    margin-left: var(--gr-mobile-heading-x) !important;
    margin-right: var(--gr-mobile-heading-x) !important;
    margin-top: calc(-1 * var(--gr-mobile-heading-bottom) + var(--gr-mobile-heading-gap)) !important;
    margin-bottom: var(--gr-mobile-heading-bottom) !important;
    white-space: nowrap !important;
  }

  /* Dashboard subtitle is inside topbar. */
  .dashboard-fixed-controls > .topbar p {
    white-space: nowrap !important;
  }

  /* Settings hub shouldn't show a self-referential Back to Settings control. */
  body.settings-hub-page .settings-fixed-header > .settings-detail-back {
    display: none !important;
  }
}

@media (max-width: 620px) {
  :root {
    --gr-mobile-heading-size: 38px;
    --gr-mobile-subtitle-size: 15px;
  }

  /* On genuinely narrow phones subtitles may wrap rather than overflow. */
  .timecards-fixed-controls > .timecard-note,
  .dashboard-fixed-controls > .topbar p {
    white-space: normal !important;
  }
}

/* ==========================================================
   v11 — final Namecheap upload polish
   ========================================================== */

/* Keep report-page backgrounds fixed so the outer background stays still. */
body:has(.report-page) {
  background:
    linear-gradient(135deg, #e7f1fa 0%, #f3f5fb 58%, #edeafb 100%) fixed !important;
  background-size: cover !important;
  min-height: 100vh !important;
}

body:has(.report-page) .report-page {
  position: relative !important;
  z-index: 1 !important;
}

body:has(.report-page) .toolbar,
body:has(.report-page) .screen-toolbar {
  z-index: 1200 !important;
}

/* Dashboard and Timecards dropdowns must always float above cards/content. */
.dashboard-fixed-controls,
.timecards-fixed-controls,
.dashboard-filters,
.timecard-controls-wrap,
.dashboard-filters > #day-controls,
.dashboard-filters > #week-controls,
.dashboard-filters > #month-controls,
.dashboard-filters > #custom-controls,
.timecard-controls-wrap #day-controls,
.timecard-controls-wrap #week-controls,
.timecard-controls-wrap #month-controls,
.timecard-controls-wrap #custom-controls,
.topbar,
.page-header {
  position: relative !important;
  z-index: 40 !important;
  overflow: visible !important;
}

.dashboard-filters .sf-select,
.timecard-controls-wrap .sf-select {
  position: relative !important;
  z-index: 60 !important;
}

.dashboard-filters .sf-select.open,
.timecard-controls-wrap .sf-select.open {
  z-index: 6100 !important;
}

.dashboard-filters .sf-select-menu,
.timecard-controls-wrap .sf-select-menu {
  z-index: 6200 !important;
}

.cards,
#timecards,
.job-section,
.salary-add-wrap,
.employee-list,
.calendar-panel,
.sf-calendar {
  position: relative !important;
  z-index: 1 !important;
}

/* Lock the page and blur the full viewport whenever a modal/backdrop is open. */
body:has(.restaurant-help-backdrop.show),
body:has(.sf-modal-backdrop.show),
body:has(.salary-confirm-backdrop.show),
body:has(.export-modal-backdrop.show),
body:has(.app-alert-backdrop.show),
body:has(.monthly-final-backdrop.show) {
  overflow: hidden !important;
}

.restaurant-help-backdrop.show,
.sf-modal-backdrop.show,
.salary-confirm-backdrop.show,
.export-modal-backdrop.show,
.app-alert-backdrop.show,
.monthly-final-backdrop.show {
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(233, 238, 246, 0.34) !important;
  backdrop-filter: blur(28px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(145%) !important;
  z-index: 3500 !important;
}

.restaurant-help-popup,
.sf-modal,
.export-modal,
.salary-confirm-modal,
.app-alert-modal,
.monthly-final-modal {
  z-index: 3501 !important;
}

/* Settings section action controls should match the neutral white cards. */
.settings-section-page .invite-button,
.settings-section-page .danger-button,
.settings-section-page .cancel-invite-button,
.settings-section-page .remove-viewer-button,
.settings-section-page .copy-button,
.settings-section-page .sf-select-button,
.settings-section-page select,
.settings-section-page .viewer-readonly-access,
.settings-section-page summary {
  background: rgba(255, 255, 255, 0.86) !important;
  color: var(--gr-text, #1d1d1f) !important;
  border: 1px solid rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.08) !important;
  backdrop-filter: blur(20px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(145%) !important;
}

.settings-section-page .invite-button,
.settings-section-page .danger-button,
.settings-section-page .cancel-invite-button,
.settings-section-page .remove-viewer-button,
.settings-section-page .copy-button,
.settings-section-page .sf-select-button,
.settings-section-page select {
  min-height: 54px !important;
  border-radius: 16px !important;
  font-weight: 700 !important;
}

.settings-section-page .invite-button:hover,
.settings-section-page .danger-button:hover,
.settings-section-page .cancel-invite-button:hover,
.settings-section-page .remove-viewer-button:hover,
.settings-section-page .copy-button:hover,
.settings-section-page .sf-select-button:hover,
.settings-section-page select:hover {
  background: rgba(255, 255, 255, 0.96) !important;
  transform: none !important;
  filter: none !important;
}

.settings-section-page .danger-button {
  color: #c7192d !important;
}

.settings-section-page .sf-select-button::after {
  border-right-color: #707684 !important;
  border-bottom-color: #707684 !important;
}

.settings-section-page .access-actions,
.settings-section-page .pending-inline-actions,
.settings-section-page .invite-row,
.settings-section-page .danger-row {
  align-items: center !important;
}

.settings-section-page .pending-inline-actions,
.settings-section-page .access-actions {
  gap: 12px !important;
}

.settings-section-page .danger-row {
  gap: 20px !important;
}

.settings-section-page .invite-row > .sf-select,
.settings-section-page .access-actions > .sf-select,
.settings-section-page .setting-row > .sf-select {
  width: auto !important;
  min-width: 180px !important;
}

/* Make the circular Settings back chevron truly centered. */
.settings-detail-back {
  gap: 12px !important;
}

.settings-back-chevron {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-size: 0 !important;
}

.settings-back-chevron svg,
.settings-hub-chevron svg {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 2.6 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.settings-hub-chevron {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0 !important;
}

/* ==========================================================
   v12 — verified final cleanup
   ========================================================== */

/* Settings: neutral white controls. Accent is for states/toggles/icons only. */
html body.settings-section-page .settings-card .sf-select .sf-select-button,
html body.settings-section-page .settings-card .invite-button,
html body.settings-section-page .settings-card .cancel-invite-button,
html body.settings-section-page .settings-card .remove-viewer-button,
html body.settings-section-page .settings-card .copy-button,
html body.settings-section-page .settings-card .danger-button,
html body.settings-section-page .settings-card #create-invite-button,
html body.settings-section-page .settings-card #show-transfer-owner,
html body.settings-section-page .settings-card #danger-disconnect-square,
html body.settings-section-page .settings-card #show-delete-confirm {
  background: rgba(255,255,255,.90) !important;
  background-image: none !important;
  color: #1d1d1f !important;
  border: 1px solid rgba(60,60,67,.14) !important;
  box-shadow: 0 7px 20px rgba(31,41,55,.08), inset 0 1px 0 rgba(255,255,255,.9) !important;
  filter: none !important;
}

html body.settings-section-page .settings-card .danger-button,
html body.settings-section-page .settings-card #show-transfer-owner,
html body.settings-section-page .settings-card #danger-disconnect-square,
html body.settings-section-page .settings-card #show-delete-confirm {
  color: #b42318 !important;
}

html body.settings-section-page .settings-card .invite-button:hover,
html body.settings-section-page .settings-card .cancel-invite-button:hover,
html body.settings-section-page .settings-card .remove-viewer-button:hover,
html body.settings-section-page .settings-card .copy-button:hover,
html body.settings-section-page .settings-card .danger-button:hover,
html body.settings-section-page .settings-card .sf-select .sf-select-button:hover {
  background: rgba(255,255,255,.98) !important;
  transform: translateY(-1px) !important;
}

/* Tip-Out rows: compact, consistent white dropdowns instead of accent bars. */
body.settings-section-tipout .setting-row {
  grid-template-columns: 260px minmax(260px, 420px) !important;
  justify-content: start !important;
  align-items: center !important;
  gap: 28px !important;
}
body.settings-section-tipout .setting-row > .sf-select {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 420px !important;
}
body.settings-section-tipout .sf-select-button {
  width: 100% !important;
  min-height: 54px !important;
  padding: 0 46px 0 18px !important;
  border-radius: 16px !important;
}

/* Users: action controls use the same neutral glass-button language. */
body.settings-section-users .invite-row {
  display: grid !important;
  grid-template-columns: minmax(320px,1fr) 210px 170px !important;
  gap: 14px !important;
  align-items: center !important;
}
body.settings-section-users .invite-row .invite-email-group,
body.settings-section-users .invite-row .invite-input,
body.settings-section-users .invite-row > .sf-select,
body.settings-section-users .invite-row .invite-button {
  width: 100% !important;
  min-width: 0 !important;
}
body.settings-section-users .invite-row .invite-input,
body.settings-section-users .invite-row .sf-select-button,
body.settings-section-users .invite-row .invite-button {
  min-height: 54px !important;
  height: 54px !important;
  border-radius: 16px !important;
}
body.settings-section-users .cancel-invite-button {
  min-height: 44px !important;
  padding: 0 18px !important;
  border-radius: 14px !important;
}
body.settings-section-users .danger-row .danger-button {
  min-width: 190px !important;
}

/* Square danger actions: white buttons with red text, matching Switch / Log Out surfaces. */
body.settings-section-square .danger-row .danger-button {
  min-width: 210px !important;
  min-height: 54px !important;
  padding: 0 22px !important;
  border-radius: 16px !important;
  white-space: nowrap !important;
}

/* Employees desktop salary editor: a clean label/control grid, no overlapping labels. */
@media (min-width: 901px) {
  .employee .employee-settings {
    gap: 0 !important;
  }
  .employee .current-pay-box {
    padding: 0 0 16px !important;
    margin: 0 !important;
    border-top: 0 !important;
  }
  .employee .current-pay-grid,
  .employee .tax-reporting-row {
    display: grid !important;
    grid-template-columns: 190px minmax(300px, 560px) !important;
    justify-content: start !important;
    align-items: center !important;
    column-gap: 28px !important;
    width: 100% !important;
    padding: 16px 0 !important;
    margin: 0 !important;
  }
  .employee .current-pay-grid + .current-pay-grid,
  .employee .monthly-current-only .current-pay-grid,
  .employee .tax-reporting-row {
    border-top: 1px solid rgba(60,60,67,.10) !important;
  }
  .employee .current-pay-grid .setting-label,
  .employee .tax-reporting-row .setting-label {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    align-self: center !important;
  }
  .employee .current-pay-select,
  .employee .monthly-current-rate,
  .employee .daily-current-rate,
  .employee .monthly-start-date,
  .employee .monthly-starting-partial-rate,
  .employee .monthly-ending-partial-rate {
    width: 100% !important;
    max-width: 560px !important;
    min-width: 0 !important;
    min-height: 54px !important;
    height: 54px !important;
    border-radius: 16px !important;
  }
  .employee .monthly-current-only {
    gap: 0 !important;
  }
  .employee .monthly-proration-note {
    max-width: 750px !important;
    margin: 0 0 12px 218px !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
  .employee .tax-reporting-row label {
    justify-self: start !important;
  }
}

/* Employees mobile: center search + segmented control and keep matching widths. */
@media (max-width: 900px) {
  .employees-fixed-controls .employee-search-wrap,
  .employees-fixed-controls .employee-tabs {
    width: min(100%, 680px) !important;
    max-width: 680px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .employees-fixed-controls .employee-search-wrap {
    margin-top: 22px !important;
    margin-bottom: 14px !important;
  }
  .employees-fixed-controls .employee-tabs {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    padding: 6px !important;
    margin-top: 0 !important;
    margin-bottom: 22px !important;
  }
  .employees-fixed-controls .employee-tab {
    width: 100% !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .employees-fixed-controls + #employees,
  #employees {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Small Settings layouts stack cleanly rather than squeezing. */
@media (max-width: 900px) {
  body.settings-section-tipout .setting-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  body.settings-section-tipout .setting-row > .sf-select {
    max-width: none !important;
  }
  body.settings-section-users .invite-row {
    grid-template-columns: 1fr !important;
  }
  body.settings-section-users .danger-row,
  body.settings-section-square .danger-row {
    align-items: stretch !important;
  }
  body.settings-section-users .danger-row .danger-button,
  body.settings-section-square .danger-row .danger-button {
    width: 100% !important;
  }
}


/* ==========================================================
   v13 — employee salary editor final alignment
   ========================================================== */

/* The employee editor itself should be one vertical stack. Its individual
   rows provide the label/control columns; a second outer grid caused overlap. */
@media (min-width: 901px) {
  .employee .employee-settings {
    display: block !important;
    width: 100% !important;
  }

  .employee .current-pay-box,
  .employee .non-monthly-controls,
  .employee .salary-current-only,
  .employee .tax-reporting-row {
    width: 100% !important;
  }

  /* Monthly Salary amount has no redundant label. Keep its input in the
     same control column as the Salary Type dropdown and Start Date field. */
  .employee .monthly-salary-row .monthly-salary-label {
    display: none !important;
  }

  .employee .monthly-salary-row .monthly-current-rate {
    grid-column: 2 !important;
  }

  /* The explanatory paragraph begins on the exact Salary Type label edge. */
  .employee .monthly-proration-note {
    width: 100% !important;
    max-width: none !important;
    margin: 6px 0 10px 0 !important;
    padding: 0 !important;
    text-align: left !important;
  }
}

@media (max-width: 900px) {
  .employee .monthly-salary-row .monthly-salary-label {
    display: none !important;
  }

  .employee .monthly-salary-row .monthly-current-rate {
    grid-column: 1 !important;
    width: 100% !important;
  }

  .employee .monthly-proration-note {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
  }
}

/* ==========================================================
   v14 — monthly salary note belongs under Start Date
   ========================================================== */
@media (min-width: 901px) {
  .employee .monthly-proration-note {
    margin: 10px 0 18px 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
    text-align: left !important;
  }
}

@media (max-width: 900px) {
  .employee .monthly-proration-note {
    margin: 10px 0 18px !important;
    padding: 0 !important;
    width: 100% !important;
  }
}

/* ==========================================================
   v12 — dropdown/calendar popovers match their trigger exactly
   ========================================================== */

/* Period selector menus stay attached to and exactly as wide as the trigger. */
.dashboard-filters .sf-select,
.timecard-controls-wrap .sf-select {
  position: relative !important;
  overflow: visible !important;
}

.dashboard-filters .sf-select-menu,
.timecard-controls-wrap .sf-select-menu {
  top: calc(100% + 6px) !important;
  left: 0 !important;
  right: auto !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Date/range popovers stay attached to and exactly as wide as their trigger. */
.dashboard-filters #day-controls,
.dashboard-filters #week-controls,
.dashboard-filters #month-controls,
.dashboard-filters #custom-controls,
.timecard-controls-wrap #day-controls,
.timecard-controls-wrap #week-controls,
.timecard-controls-wrap #month-controls,
.timecard-controls-wrap #custom-controls {
  position: relative !important;
  overflow: visible !important;
}

.dashboard-filters .calendar-panel,
.timecard-controls-wrap .calendar-panel {
  top: calc(100% + 6px) !important;
  left: 0 !important;
  right: auto !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  transform: none !important;
}

@media (max-width: 900px) {
  .dashboard-filters .sf-select-menu,
  .timecard-controls-wrap .sf-select-menu,
  .dashboard-filters .calendar-panel,
  .timecard-controls-wrap .calendar-panel {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: auto !important;
  }
}

/* ==========================================================
   v15 — correctly anchor filter menus/calendars to their triggers
   ========================================================== */

/* A previous global layering rule made .calendar-panel relative, which pulled
   it into the page/grid. These popovers must be absolute inside their own
   period/date control wrappers. */
.dashboard-filters .sf-select-menu,
.timecard-controls-wrap .sf-select-menu {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  right: auto !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  z-index: 6400 !important;
  transform: none !important;
}

.dashboard-filters #day-controls > .calendar-panel,
.dashboard-filters #week-controls > .calendar-panel,
.dashboard-filters #month-controls > .calendar-panel,
.dashboard-filters #custom-controls > .calendar-panel,
.timecard-controls-wrap #day-controls > .calendar-panel,
.timecard-controls-wrap #week-controls > .calendar-panel,
.timecard-controls-wrap #month-controls > .calendar-panel,
.timecard-controls-wrap #custom-controls > .calendar-panel {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  right: auto !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  z-index: 6400 !important;
  transform: none !important;
  margin: 0 !important;
}

/* The trigger wrappers themselves are the positioning anchors. */
.dashboard-filters > .sf-select,
.dashboard-filters > #day-controls,
.dashboard-filters > #week-controls,
.dashboard-filters > #month-controls,
.dashboard-filters > #custom-controls,
.timecard-controls-wrap .sf-select,
.timecard-controls-wrap #day-controls,
.timecard-controls-wrap #week-controls,
.timecard-controls-wrap #month-controls,
.timecard-controls-wrap #custom-controls {
  position: relative !important;
  overflow: visible !important;
}

/* Keep seven calendar columns inside the trigger width instead of expanding
   the popover's intrinsic width. */
.dashboard-filters .calendar-grid,
.timecard-controls-wrap .calendar-grid,
.dashboard-filters .calendar-weekdays,
.timecard-controls-wrap .calendar-weekdays {
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
}

/* ==========================================================
   v12 — restaurant Tips & Tricks full-viewport blur
   ========================================================== */
body.restaurants-page.restaurant-help-modal-open {
  overflow: hidden !important;
}

body.restaurants-page.restaurant-help-modal-open::after {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2999 !important;
  pointer-events: auto !important;
  background: rgba(241, 246, 252, 0.30) !important;
  backdrop-filter: blur(30px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(135%) !important;
}

/* The old nested backdrop should only catch clicks; the body pseudo-layer
   is what performs the visual blur across the entire viewport. */
body.restaurants-page .restaurant-help-backdrop.show {
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 3000 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.restaurants-page .restaurant-help-popup.open-modal {
  position: fixed !important;
  z-index: 3002 !important;
}

/* v9 — Employees mobile heading centered */
@media (max-width: 900px) {
  .employees-fixed-controls {
    text-align: center !important;
  }

  .employees-fixed-controls > h1,
  .employees-fixed-controls > #info {
    width: 100% !important;
    max-width: 680px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }
}

/* =========================================================
   v11 — Employees mobile matches Timecards visual language
   ========================================================= */
@media (max-width: 900px) {
  .employees-fixed-controls {
    width: auto !important;
    max-width: none !important;
    margin: 34px 20px 26px !important;
    padding: 0 !important;
    text-align: left !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .employees-fixed-controls > h1 {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    font-size: 42px !important;
    line-height: 1.04 !important;
    letter-spacing: -1.8px !important;
    font-weight: 750 !important;
  }

  .employees-fixed-controls > #info {
    width: auto !important;
    max-width: 760px !important;
    margin: 12px 0 0 !important;
    padding: 0 !important;
    text-align: left !important;
    color: #6e6e73 !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
    font-weight: 400 !important;
  }

  .employee-controls-card {
    width: 100% !important;
    margin: 28px 0 0 !important;
    padding: 12px !important;
    border: 1px solid rgba(255,255,255,.86) !important;
    border-radius: 28px !important;
    background: rgba(255,255,255,.34) !important;
    box-shadow: 0 18px 44px rgba(55,65,81,.10) !important;
    -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
    backdrop-filter: blur(24px) saturate(150%) !important;
    box-sizing: border-box !important;
  }

  .employees-fixed-controls .employee-search-wrap {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .employees-fixed-controls .employee-search {
    width: 100% !important;
    height: 58px !important;
    padding: 0 18px !important;
    border: 1px solid rgba(209,213,219,.9) !important;
    border-radius: 20px !important;
    background: rgba(255,255,255,.92) !important;
    color: #1d1d1f !important;
    font-size: 17px !important;
    box-shadow: 0 8px 22px rgba(15,23,42,.05) !important;
  }

  .employees-fixed-controls .employee-search::placeholder {
    color: #9b9ba1 !important;
  }

  .employees-fixed-controls .employee-tabs {
    width: 100% !important;
    max-width: none !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    margin: 12px 0 0 !important;
    padding: 6px !important;
    border: 1px solid rgba(255,255,255,.82) !important;
    border-radius: 22px !important;
    background: rgba(255,255,255,.56) !important;
    box-sizing: border-box !important;
  }

  .employees-fixed-controls .employee-tab {
    width: 100% !important;
    min-height: 52px !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: transparent !important;
    color: #374151 !important;
    font-size: 16px !important;
    font-weight: 750 !important;
    box-shadow: none !important;
  }

  .employees-fixed-controls .employee-tab.active {
    background: var(--accent-color, #0a84ff) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--accent-color, #0a84ff) 28%, transparent) !important;
  }

  #employees {
    width: auto !important;
    max-width: none !important;
    margin: 0 20px !important;
    padding: 0 0 28px !important;
  }

  #employees .employee {
    width: 100% !important;
    margin: 0 0 16px !important;
    padding: 22px !important;
    border: 1px solid rgba(255,255,255,.88) !important;
    border-radius: 28px !important;
    background: rgba(255,255,255,.72) !important;
    box-shadow: 0 16px 42px rgba(15,23,42,.08) !important;
    -webkit-backdrop-filter: blur(22px) saturate(145%) !important;
    backdrop-filter: blur(22px) saturate(145%) !important;
    box-sizing: border-box !important;
  }

  #employees .employee-name {
    margin: 0 0 22px !important;
    color: #1d1d1f !important;
    font-size: 22px !important;
    line-height: 1.18 !important;
    font-weight: 800 !important;
    letter-spacing: -.4px !important;
  }

  #employees .employee-settings {
    gap: 16px !important;
  }

  #employees .current-pay-box {
    padding-top: 0 !important;
    border-top: 0 !important;
  }

  #employees .current-pay-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    align-items: stretch !important;
  }

  #employees .setting-label {
    color: #5f6368 !important;
    font-size: 15px !important;
    font-weight: 750 !important;
  }

  #employees .current-pay-select,
  #employees .current-pay-rate,
  #employees .monthly-start-date {
    width: 100% !important;
    max-width: none !important;
    min-height: 56px !important;
    padding: 0 16px !important;
    border: 1px solid rgba(209,213,219,.92) !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,.94) !important;
    color: #1f2937 !important;
    font-size: 16px !important;
    font-weight: 650 !important;
    box-shadow: 0 8px 20px rgba(15,23,42,.05) !important;
    box-sizing: border-box !important;
  }

  #employees .employee-pay-summary {
    min-height: 56px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 16px !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,.78) !important;
    color: #374151 !important;
    font-size: 16px !important;
    font-weight: 750 !important;
  }

  #employees .monthly-proration-note {
    margin-top: 4px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
  }
}

@media (max-width: 520px) {
  .employees-fixed-controls {
    margin-left: 16px !important;
    margin-right: 16px !important;
  }
  .employees-fixed-controls > h1 {
    font-size: 38px !important;
  }
  .employees-fixed-controls > #info {
    font-size: 15px !important;
  }
  .employee-controls-card {
    margin-top: 24px !important;
    border-radius: 24px !important;
    padding: 10px !important;
  }
  #employees {
    margin-left: 16px !important;
    margin-right: 16px !important;
  }
  #employees .employee {
    padding: 18px !important;
    border-radius: 24px !important;
  }
}

/* =========================================================
   v12 — Employees mobile centered, Timecards aesthetics
   ========================================================= */
@media (max-width: 900px) {
  .employees-fixed-controls {
    width: 100% !important;
    max-width: var(--gr-content, 680px) !important;
    margin: 34px auto 28px !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .employees-fixed-controls > h1 {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-size: var(--gr-mobile-heading-size, 42px) !important;
    line-height: 1.04 !important;
    letter-spacing: -1.8px !important;
    font-weight: 750 !important;
  }

  .employees-fixed-controls > #info {
    width: min(100%, 620px) !important;
    max-width: 620px !important;
    margin: var(--gr-mobile-heading-gap, 12px) auto 0 !important;
    padding: 0 !important;
    text-align: center !important;
    color: #6e6e73 !important;
    font-size: var(--gr-mobile-subtitle-size, 16px) !important;
    line-height: 1.45 !important;
    font-weight: 400 !important;
  }

  .employee-controls-card {
    width: min(100%, 680px) !important;
    max-width: 680px !important;
    margin: 28px auto 0 !important;
    padding: 14px !important;
    border: 1px solid rgba(255,255,255,.88) !important;
    border-radius: 28px !important;
    background: rgba(255,255,255,.34) !important;
    box-shadow: 0 18px 44px rgba(55,65,81,.10) !important;
    -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
    backdrop-filter: blur(24px) saturate(150%) !important;
    box-sizing: border-box !important;
  }

  .employees-fixed-controls .employee-search-wrap {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
  }

  .employees-fixed-controls .employee-search {
    width: 100% !important;
    height: 58px !important;
    margin: 0 auto !important;
    padding: 0 18px !important;
    border: 1px solid rgba(209,213,219,.92) !important;
    border-radius: 20px !important;
    background: rgba(255,255,255,.94) !important;
    color: #1d1d1f !important;
    font-size: 17px !important;
    box-shadow: 0 8px 22px rgba(15,23,42,.05) !important;
    box-sizing: border-box !important;
    text-align: left !important;
  }

  .employees-fixed-controls .employee-tabs {
    width: 100% !important;
    max-width: none !important;
    margin: 12px auto 0 !important;
    padding: 6px !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    border: 1px solid rgba(255,255,255,.84) !important;
    border-radius: 22px !important;
    background: rgba(255,255,255,.58) !important;
    box-sizing: border-box !important;
  }

  .employees-fixed-controls .employee-tab {
    width: 100% !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: transparent !important;
    color: #374151 !important;
    font-size: 16px !important;
    font-weight: 750 !important;
    text-align: center !important;
    box-shadow: none !important;
  }

  .employees-fixed-controls .employee-tab.active {
    background: var(--accent-color, #0a84ff) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--accent-color, #0a84ff) 28%, transparent) !important;
  }

  #employees {
    width: 100% !important;
    max-width: var(--gr-content, 680px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 520px) {
  .employees-fixed-controls {
    margin-top: 32px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .employees-fixed-controls > h1 {
    font-size: 38px !important;
  }

  .employees-fixed-controls > #info {
    font-size: 15px !important;
    width: min(100%, 560px) !important;
  }

  .employee-controls-card {
    width: 100% !important;
    margin-top: 24px !important;
    padding: 10px !important;
    border-radius: 24px !important;
  }

  #employees {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* ==========================================================
   v13 — shared page-heading rhythm + Restaurants shell match
   Dashboard / Timecards / Employees / Restaurants
   ========================================================== */

/* Desktop: use Today's Stats as the canonical heading rhythm. */
@media (min-width: 901px) {
  .timecards-fixed-controls > .page-header {
    margin: 0 0 6px !important;
    padding: 0 !important;
    max-width: none !important;
  }

  .timecards-fixed-controls > .page-header h1,
  .employees-fixed-controls > h1,
  .restaurants-page .page-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 42px !important;
    line-height: 1.08 !important;
    letter-spacing: -1.7px !important;
    font-weight: 750 !important;
  }

  .timecards-fixed-controls > .timecard-note,
  .employees-fixed-controls > #info,
  .restaurants-page .page-description {
    margin-top: 6px !important;
    margin-bottom: 28px !important;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
    color: #6e6e73 !important;
    font-weight: 400 !important;
  }

  .employees-fixed-controls > h1 {
    margin-bottom: 0 !important;
  }

  .restaurants-page .main,
  .restaurants-page .page .main {
    width: min(900px, calc(100vw - 56px)) !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 142px 0 72px !important;
  }

  .restaurants-page .page-title {
    margin-bottom: 0 !important;
  }
}

/* Restaurants header: match the clean app glass bubble, not the old public-page bar. */
.restaurants-page .header {
  overflow: hidden !important;
  background: linear-gradient(145deg, rgba(255,255,255,.68), rgba(245,250,255,.42)) !important;
  border: 1px solid rgba(255,255,255,.90) !important;
  box-shadow: 0 18px 45px rgba(31,45,61,.09) !important;
  backdrop-filter: blur(34px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(34px) saturate(180%) !important;
}

.restaurants-page .header .logo {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.restaurants-page .header::before,
.restaurants-page .header::after,
.restaurants-page .header .logo::before,
.restaurants-page .header .logo::after {
  display: none !important;
  content: none !important;
}

/* Mobile: match Today's Stats title/subtitle placement exactly. */
@media (max-width: 900px) {
  .restaurants-page .header {
    top: 12px !important;
    left: 12px !important;
    right: 12px !important;
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    height: 92px !important;
    min-height: 92px !important;
    padding: 0 20px !important;
    border-radius: 24px !important;
  }

  .restaurants-page .header .logo {
    font-size: 27px !important;
    line-height: 1 !important;
    letter-spacing: -1.2px !important;
  }

  .restaurants-page .main,
  .restaurants-page .page .main {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 122px 14px 48px !important;
  }

  .restaurants-page .page-title,
  .restaurants-page .page-description {
    width: auto !important;
    max-width: none !important;
    margin-left: var(--gr-mobile-heading-x, 20px) !important;
    margin-right: var(--gr-mobile-heading-x, 20px) !important;
    text-align: left !important;
  }

  .restaurants-page .page-title {
    margin-top: 34px !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    font-size: var(--gr-mobile-heading-size, 42px) !important;
    line-height: 1.04 !important;
    letter-spacing: -1.8px !important;
    font-weight: 750 !important;
  }

  .restaurants-page .page-description {
    margin-top: var(--gr-mobile-heading-gap, 10px) !important;
    margin-bottom: var(--gr-mobile-heading-bottom, 24px) !important;
    padding: 0 !important;
    font-size: var(--gr-mobile-subtitle-size, 16px) !important;
    line-height: 1.45 !important;
    color: #6e6e73 !important;
    font-weight: 400 !important;
  }

  .restaurants-page .restaurant-list,
  .restaurants-page .add-section {
    width: 100% !important;
    max-width: none !important;
  }
}

@media (max-width: 520px) {
  .restaurants-page .header {
    height: 86px !important;
    min-height: 86px !important;
  }

  .restaurants-page .header .logo {
    font-size: 25px !important;
  }

  .restaurants-page .main,
  .restaurants-page .page .main {
    padding-top: 112px !important;
  }
}


/* ==========================================================
   v14 — unified page title/subtitle rhythm (Employees matches Timecards)
   ========================================================== */

/* Desktop: Employees title/subtitle uses the same left-aligned rhythm as Timecards. */
@media (min-width: 901px) {
  .employees-fixed-controls {
    width: 100% !important;
    max-width: var(--gr-content, 1120px) !important;
    margin: 0 auto 28px !important;
    padding: 0 !important;
    display: block !important;
    text-align: left !important;
  }

  .employees-fixed-controls > h1 {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    font-size: 42px !important;
    line-height: 1.08 !important;
    letter-spacing: -1.7px !important;
    font-weight: 750 !important;
  }

  .employees-fixed-controls > #info {
    width: 100% !important;
    max-width: none !important;
    margin: 6px 0 28px !important;
    padding: 0 !important;
    text-align: left !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
    color: #6e6e73 !important;
    font-weight: 400 !important;
  }
}

/* Mobile: Employees heading/subtitle should match Timecards, not the centered variant. */
@media (max-width: 900px) {
  .employees-fixed-controls {
    width: auto !important;
    max-width: none !important;
    margin: 34px var(--gr-mobile-heading-x, 20px) 28px !important;
    padding: 0 !important;
    display: block !important;
    text-align: left !important;
    align-items: stretch !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .employees-fixed-controls > h1 {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    font-size: var(--gr-mobile-heading-size, 42px) !important;
    line-height: 1.04 !important;
    letter-spacing: -1.8px !important;
    font-weight: 750 !important;
  }

  .employees-fixed-controls > #info {
    width: auto !important;
    max-width: none !important;
    margin: var(--gr-mobile-heading-gap, 10px) 0 var(--gr-mobile-heading-bottom, 24px) !important;
    padding: 0 !important;
    text-align: left !important;
    font-size: var(--gr-mobile-subtitle-size, 16px) !important;
    line-height: 1.45 !important;
    color: #6e6e73 !important;
    font-weight: 400 !important;
  }

  /* Keep the controls card visually aligned with the Timecards filter card. */
  .employee-controls-card {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 12px !important;
    border: 1px solid rgba(255,255,255,.88) !important;
    border-radius: 28px !important;
    background: rgba(255,255,255,.34) !important;
    box-shadow: 0 18px 44px rgba(55,65,81,.10) !important;
    -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
    backdrop-filter: blur(24px) saturate(150%) !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 520px) {
  .employees-fixed-controls {
    margin: 32px 16px 26px !important;
  }

  .employees-fixed-controls > h1 {
    font-size: 38px !important;
  }

  .employees-fixed-controls > #info {
    font-size: 15px !important;
  }
}


/* ==========================================================
   v15 — Settings + Dashboard use the same page-heading system
   as Timecards / Employees on desktop and mobile
   ========================================================== */

/* Desktop: same title size, subtitle style, and vertical rhythm. */
@media (min-width: 901px) {
  .dashboard-fixed-controls > .topbar,
  body.settings-hub-page .settings-fixed-header {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 28px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    text-align: left !important;
  }

  .dashboard-fixed-controls > .topbar h1,
  body.settings-hub-page .settings-fixed-header > h1 {
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    font-size: 42px !important;
    line-height: 1.08 !important;
    letter-spacing: -1.7px !important;
    font-weight: 750 !important;
  }

  .dashboard-fixed-controls > .topbar p,
  body.settings-hub-page .settings-fixed-header > #info {
    margin: 6px 0 0 !important;
    padding: 0 !important;
    text-align: left !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
    color: #6e6e73 !important;
    font-weight: 400 !important;
  }

  body.settings-hub-page .settings-fixed-header > .settings-detail-back {
    display: none !important;
  }
}

/* Mobile: identical x-position, title scale, subtitle scale, and spacing. */
@media (max-width: 900px) {
  .dashboard-fixed-controls > .topbar,
  body.settings-hub-page .settings-fixed-header {
    width: auto !important;
    max-width: none !important;
    margin: 34px var(--gr-mobile-heading-x, 20px) var(--gr-mobile-heading-bottom, 24px) !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    text-align: left !important;
  }

  .dashboard-fixed-controls > .topbar h1,
  body.settings-hub-page .settings-fixed-header > h1 {
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    font-size: var(--gr-mobile-heading-size, 42px) !important;
    line-height: 1.04 !important;
    letter-spacing: -1.8px !important;
    font-weight: 750 !important;
  }

  .dashboard-fixed-controls > .topbar p,
  body.settings-hub-page .settings-fixed-header > #info {
    width: auto !important;
    max-width: none !important;
    margin: var(--gr-mobile-heading-gap, 10px) 0 0 !important;
    padding: 0 !important;
    text-align: left !important;
    font-size: var(--gr-mobile-subtitle-size, 16px) !important;
    line-height: 1.45 !important;
    color: #6e6e73 !important;
    font-weight: 400 !important;
    white-space: normal !important;
  }

  body.settings-hub-page .settings-fixed-header > .settings-detail-back {
    display: none !important;
  }
}

@media (max-width: 520px) {
  .dashboard-fixed-controls > .topbar,
  body.settings-hub-page .settings-fixed-header {
    margin-left: 16px !important;
    margin-right: 16px !important;
  }

  .dashboard-fixed-controls > .topbar h1,
  body.settings-hub-page .settings-fixed-header > h1 {
    font-size: 38px !important;
  }

  .dashboard-fixed-controls > .topbar p,
  body.settings-hub-page .settings-fixed-header > #info {
    font-size: 15px !important;
  }
}

/* ==========================================================
   v16 — Employees mobile equal left/right gutters
   ========================================================== */
@media (max-width: 900px) {
  .employees-fixed-controls,
  #employees {
    width: calc(100% - 40px) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  .employees-fixed-controls {
    margin-top: 34px !important;
    margin-bottom: 28px !important;
  }

  .employee-controls-card,
  #employees .employee {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 520px) {
  .employees-fixed-controls,
  #employees {
    width: calc(100% - 32px) !important;
  }

  .employees-fixed-controls {
    margin-top: 32px !important;
    margin-bottom: 26px !important;
  }
}
