/* SchoolDay v216.3: one-row staff header.
   This file deliberately loads after the inherited header styles. Keep header
   layout changes here so older release breakpoints cannot compete with it. */

.admin-body .site-header.admin-staff-header-v2163 {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr) !important;
  grid-template-areas: "brand year actions" !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 76px !important;
  height: auto !important;
  gap: clamp(.7rem, 1.6vw, 1.4rem) !important;
  padding: .62rem clamp(.75rem, 1.7vw, 1.55rem) !important;
  overflow: visible !important;
  text-align: left !important;
}

.admin-body .admin-staff-header-v2163 .header-brand {
  grid-area: brand !important;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  justify-self: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  gap: clamp(.45rem, .9vw, .8rem) !important;
  overflow: hidden;
}

.admin-body .admin-staff-header-v2163 .admin-logo-action-v211 {
  display: inline-grid !important;
  flex: 0 0 auto !important;
  place-items: center;
  width: auto !important;
  min-width: 44px !important;
  max-width: 78px !important;
  min-height: 44px !important;
  padding: .1rem !important;
}

.admin-body .admin-staff-header-v2163 .site-logo,
.admin-body .admin-staff-header-v2163 .admin-thin-fallback-logo-v210 {
  display: block;
  width: auto !important;
  max-width: 72px !important;
  height: auto !important;
  max-height: 46px !important;
  object-fit: contain;
}

.admin-body .admin-staff-header-v2163 .site-logo[hidden] { display: none !important; }
.admin-body .admin-staff-header-v2163 .admin-logo-action-v211 .site-logo:not([hidden]) ~ .admin-thin-fallback-logo-v210 { display: none !important; }

.admin-body .admin-staff-header-v2163 .change-school-button {
  flex: 0 0 auto !important;
  align-self: center !important;
  width: auto !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: .46rem .68rem !important;
  font-size: .82rem !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

.admin-body .admin-staff-header-v2163 .admin-header-title-stack-v209 {
  display: block !important;
  flex: 1 1 auto;
  min-width: 0 !important;
  overflow: hidden;
}

.admin-body .admin-staff-header-v2163 .admin-header-title-stack-v209 .eyebrow { display: none !important; }
.admin-body .admin-staff-header-v2163 .admin-header-title-stack-v209 h1 {
  margin: 0 !important;
  max-width: 100%;
  font-size: clamp(1.08rem, 1.55vw, 1.48rem) !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-body .admin-staff-header-v2163 .admin-school-year-control-v209 {
  grid-area: year !important;
  position: relative !important;
  display: block !important;
  justify-self: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}

.admin-body .admin-staff-header-v2163 .admin-school-year-current-v209 {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  gap: .48rem !important;
}

.admin-body .admin-staff-header-v2163 .admin-banner-year {
  display: block !important;
  flex: 0 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  font-size: clamp(.92rem, 1.25vw, 1.12rem) !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}

.admin-body .admin-staff-header-v2163 .admin-school-year-change-v209 {
  position: static !important;
  display: none !important;
  flex: 0 0 auto !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: .38rem .62rem !important;
  transform: none !important;
  font-size: .78rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.admin-body .admin-staff-header-v2163 .admin-school-year-control-v209.school-year-ready-v209 .admin-school-year-change-v209 {
  display: inline-flex !important;
}

.admin-body .admin-staff-header-v2163 > nav {
  grid-area: actions !important;
  position: static !important;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  justify-self: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  gap: clamp(.38rem, .8vw, .65rem) !important;
}

.admin-body .admin-staff-header-v2163 > nav > a,
.admin-body .admin-staff-header-v2163 > nav > button,
.admin-body .admin-staff-header-v2163 #signOutButton {
  flex: 0 0 auto;
  min-height: 38px !important;
  padding: .46rem .68rem !important;
  font-size: .82rem !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

.admin-body .admin-staff-header-v2163 .admin-zoom-controls {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  padding: .2rem .3rem !important;
  gap: .24rem !important;
}

.admin-body .admin-staff-header-v2163 .admin-zoom-controls button {
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
}

.admin-body .admin-staff-header-v2163 #adminZoomValue {
  min-width: 2.65rem !important;
  font-size: .8rem !important;
}

.admin-body .admin-staff-header-v2163 .admin-account-stack-v210 {
  display: grid !important;
  flex: 0 0 auto;
  justify-items: end !important;
  min-width: 0 !important;
  gap: .1rem !important;
}

.admin-body .admin-staff-header-v2163 .admin-header-user-summary-v210 {
  display: block !important;
  width: 100%;
  max-width: 170px !important;
  margin: 0 !important;
  color: inherit !important;
  font-size: .64rem !important;
  line-height: 1.05 !important;
  text-align: right !important;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: .86;
}

/* Remove lower-priority controls before either side can invade the centred year. */
@media (max-width: 1240px) {
  .admin-body .admin-staff-header-v2163 #adminZoomControls { display: none !important; }
}

@media (max-width: 1050px) {
  .admin-body .admin-staff-header-v2163 > nav > a { display: none !important; }
  .admin-body .admin-staff-header-v2163 { gap: .55rem !important; }
}

/* Thin/mobile: exactly three visual zones on one row. The logo is the school/
   public action, the year itself opens the chooser, and Sign out stays right. */
@media (max-width: 900px) {
  .admin-body .site-header.admin-staff-header-v2163 {
    grid-template-columns: minmax(64px, 1fr) minmax(0, auto) minmax(64px, 1fr) !important;
    grid-template-areas: "brand year actions" !important;
    min-height: 56px !important;
    gap: .35rem !important;
    padding: .34rem .48rem !important;
  }

  .admin-body .admin-staff-header-v2163 .header-brand {
    justify-self: start !important;
    justify-content: flex-start !important;
    overflow: visible;
  }

  .admin-body .admin-staff-header-v2163 .change-school-button,
  .admin-body .admin-staff-header-v2163 .admin-header-title-stack-v209,
  .admin-body .admin-staff-header-v2163 > nav > a,
  .admin-body .admin-staff-header-v2163 #adminZoomControls,
  .admin-body .admin-staff-header-v2163 #changeSchoolYearButton {
    display: none !important;
  }

  .admin-body .admin-staff-header-v2163 .admin-logo-action-v211 {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    min-height: 40px !important;
    padding: .12rem !important;
  }

  .admin-body .admin-staff-header-v2163 .site-logo,
  .admin-body .admin-staff-header-v2163 .admin-thin-fallback-logo-v210 {
    max-width: 40px !important;
    max-height: 36px !important;
  }

  .admin-body .admin-staff-header-v2163 .admin-school-year-control-v209,
  .admin-body .admin-staff-header-v2163 .admin-school-year-current-v209 {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .admin-body .admin-staff-header-v2163 .admin-banner-year {
    max-width: min(54vw, 230px) !important;
    padding: .34rem .48rem !important;
    border: 1px solid color-mix(in srgb, currentColor 68%, transparent) !important;
    border-radius: .58rem !important;
    background: color-mix(in srgb, currentColor 10%, transparent) !important;
    font-size: clamp(.7rem, 3vw, .84rem) !important;
    line-height: 1 !important;
    cursor: pointer !important;
  }

  .admin-body .admin-staff-header-v2163 > nav {
    justify-self: end !important;
    justify-content: flex-end !important;
  }

  .admin-body .admin-staff-header-v2163 .admin-account-stack-v210 {
    justify-items: end !important;
  }

  .admin-body .admin-staff-header-v2163 #signOutButton {
    min-height: 31px !important;
    padding: .3rem .46rem !important;
    font-size: .7rem !important;
  }

  .admin-body .admin-staff-header-v2163 .admin-header-user-summary-v210 {
    display: block !important;
    max-width: 80px !important;
    font-size: 0 !important;
    text-align: right !important;
  }

  .admin-body .admin-staff-header-v2163 .admin-header-user-summary-v210::after {
    content: attr(data-short-name);
    display: block;
    max-width: 80px;
    color: inherit;
    font-size: .58rem;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 390px) {
  .admin-body .site-header.admin-staff-header-v2163 {
    gap: .2rem !important;
    padding-inline: .3rem !important;
  }

  .admin-body .admin-staff-header-v2163 .admin-logo-action-v211 {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
  }

  .admin-body .admin-staff-header-v2163 .site-logo,
  .admin-body .admin-staff-header-v2163 .admin-thin-fallback-logo-v210 {
    max-width: 36px !important;
    max-height: 34px !important;
  }

  .admin-body .admin-staff-header-v2163 .admin-banner-year {
    max-width: 100% !important;
    padding-inline: .28rem !important;
    font-size: .66rem !important;
  }

  .admin-body .admin-staff-header-v2163 #signOutButton {
    padding-inline: .34rem !important;
    font-size: .64rem !important;
  }
}
