html { scrollbar-gutter: stable; }
#sections:not([hidden]) {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .8rem;
}
.main-sections {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0;
  border: 0;
}
.main-sections a, #sections .sign-out {
  min-height: 40px;
  border: 1px solid #c9d2cc;
  border-radius: 8px;
  padding: .45rem .8rem;
  background: white;
  color: #24382f;
  white-space: nowrap;
}
.main-sections a:hover, #sections .sign-out:hover {
  background: #edf3ee;
  border-color: #73917f;
}
.main-sections a[aria-current] {
  background: #195e44;
  border-color: #195e44;
  color: white;

}
#sections .sign-out {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  flex-shrink: 0;
}
#tabs:empty { display: none; }
#tabs:not(:empty) {
  display: flex;
  flex-wrap: nowrap;
  gap: .25rem;
  margin: .5rem 0 1rem;
  padding: .15rem .45rem 0;
  background: #edf3ee;
  border: 1px solid #d0d8d3;
  border-radius: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
#tabs button {
  font-weight: 600;
  flex: none;
  padding: .55rem .7rem;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #405a4c;
  font-size: .9rem;
  white-space: nowrap;
}
#tabs button:hover { background: #e1ebe3; }
#tabs button[aria-current] {
  border-bottom-color: #195e44;
  color: #164c38;

}
#tabs button:focus-visible { outline-offset: -3px; }
.employee-badges {
  display: inline-flex;
  align-items: center;
  gap: .2em;
  vertical-align: middle;
}
.employee-badges .detail-badge { display: inline-flex; }
.employee-badges .detail-badge .pixel { width: 1em; height: 1em; }
#team-scroll .calendar-absence {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
#team-scroll .calendar-absence .pixel { width: 2.5em; height: 2.5em; }
#team-scroll .calendar-absence .vacation-icon { width: 3.125em; height: 3.125em; }

@media (max-width: 560px) {
  .main-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 1;
  }
  .main-sections a, #sections .sign-out { padding-inline: .55rem; }
}

.main-sections a { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; font:inherit; font-weight:600; }
.account-actions,.signed-in { display:flex; align-items:center; gap:.4rem; min-width:0; }
.signed-in { font-weight:600; }
.signed-in svg { flex:none; }
#signed-in-name { max-width:14rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#team-scroll th.current-employee,.shift-person.current-employee { outline:2px solid #bd4458; outline-offset:-2px; }
.coverage-legend { margin:.7rem 0 .2rem; font-weight:600; }
.coverage-legend small { font-weight:400; }
.coverage-scroll { overflow-x:auto; scrollbar-width:thin; }
.coverage-scroll :is(.days,.month-grid) { grid-template-columns:repeat(7,minmax(max-content,1fr)); max-width:none; }
.coverage-cell { display:grid; justify-items:center; align-content:center; gap:3px; padding:.45rem .25rem; font-variant-numeric:tabular-nums; line-height:1.18; }
.coverage-cell.covered { background:#d9eed5; color:#204d34; }
.coverage-cell.short { background:#fff1df; color:#704319; }
.coverage-cell.unrated { background:#f1f2f1; color:#49534d; }
.coverage-cell[aria-pressed=true] { outline:2px solid #246052; outline-offset:-2px; }
.coverage-count,.coverage-hours { display:grid; grid-template-columns:1fr auto 1fr; align-items:baseline; width:100%; text-align:center; }
.coverage-count { font-size:1.05rem; font-weight:700; }
.coverage-hours { font-size:.84rem; }
.coverage-cell i { font:inherit; opacity:.52; }
@media(max-width:650px){
 #sections:not([hidden]) { flex-wrap:wrap; align-items:center; }
 .main-sections { width:100%; flex:auto; }
 .account-actions { margin-left:auto; }
 #signed-in-name { max-width:calc(100vw - 10rem); }
 .coverage-cell { padding:.36rem .14rem; }
 .coverage-count { font-size:.87rem; }
 .coverage-hours { font-size:.72rem; }
}

.panel .coverage-heading {font-size:clamp(16px,2vw,18px)}
.staff-heading,.staff-steps,.employee-heading,.filter-actions {display:flex;align-items:center}
.staff-heading {justify-content:space-between;gap:12px}
.staff-heading h2 {display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.staff-steps {flex:none;gap:4px}
.staff-steps button {width:36px;height:36px;padding:0;font-size:18px}
.employee-heading {gap:2px;justify-content:space-between}
.employee-heading .sort-day {width:auto;text-align:left;min-width:0;font-size:clamp(11px,2vw,14px)}
#overview-filter-button {flex:none;display:grid;place-items:center;width:22px;height:26px;padding:0;background:transparent;border:0;border-radius:5px;color:#356651}
#overview-filter-button:hover,#overview-filter-button[data-active=true] {background:#cfe6d6}
#overview-job-filter {width:min(340px,94vw)}
#overview-job-filter h2 {margin:0}
#overview-job-filter p {font-size:14px}
.job-options label {display:flex;align-items:center;gap:8px;margin:0;padding:8px 0;cursor:pointer}
.filter-actions {justify-content:flex-end;gap:8px;margin-top:14px}

#account-menu{position:relative}#account-menu summary{cursor:pointer;list-style:none}#account-menu summary::-webkit-details-marker{display:none}.account-dropdown{position:absolute;right:0;top:calc(100% + 8px);z-index:30;min-width:185px;padding:6px;background:white;border:1px solid #d4dcd4;border-radius:10px;box-shadow:0 8px 24px #143a3526}.account-dropdown button{display:block;width:100%;border:0;text-align:left;white-space:nowrap}.account-dropdown button:hover{background:#eef3ed}.rest-videos{display:flex;flex-direction:column;align-items:center;gap:3px;padding:3px 1px}.rest-videos a{display:block;font-size:11px;text-decoration:none;color:#175eb8}.rest-videos a:nth-child(2){color:#7539a6}.rest-videos a:hover{text-decoration:underline}.rest-videos>button{font-size:12px}

/* Primary navigation uses the same underlined style as messenger sections. */
#sections .main-sections{display:flex;flex-wrap:nowrap;gap:12px;min-width:0;flex:1;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid #dfe5e7;overscroll-behavior-x:contain}
#sections .main-sections::-webkit-scrollbar{display:none}
#sections .main-sections a{position:relative;flex:none;min-height:44px;padding:10px 5px 12px;border:0;border-radius:0;background:transparent;color:#85898e;font-size:15px;font-weight:600;box-shadow:none}
#sections .main-sections a:hover{color:#0782ff;background:transparent}
#sections .main-sections a[aria-current]{color:#0782ff;background:transparent;border:0}
#sections .main-sections a[aria-current]::after{content:"";position:absolute;bottom:0;left:5px;right:5px;height:3px;background:#0782ff;border-radius:3px 3px 0 0}
@media(max-width:650px){#sections .main-sections{flex:0 0 100%;width:100%;gap:14px}#sections .main-sections a{font-size:14px}}
