:root {
  --bg: #e8f1f0;
  --bg-deep: #0f2e2b;
  --surface: #ffffff;
  --ink: #142a28;
  --ink-soft: #3d5652;
  --accent: #0d7377;
  --accent-hot: #c45c26;
  --line: rgba(15, 46, 43, 0.12);
  --ok: #1f7a4d;
  --warn: #9a6b00;
  --danger: #a33b2b;
  --shadow: none;
  --radius: 18px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  overflow-x: hidden;
}
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(13, 115, 119, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(196, 92, 38, 0.14), transparent 50%),
    linear-gradient(180deg, #f4faf9 0%, var(--bg) 45%, #d9ebe8 100%);
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: rgba(15, 46, 43, 0.92);
  color: #f3faf8;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}
.brand a {
  font-family: var(--display);
  font-size: 1.35rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.header-menu { display: contents; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 40px;
  margin-left: auto;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  flex: 1;
}
.main-nav a {
  color: rgba(243, 250, 248, 0.88);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.main-nav a:hover { color: #fff; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: rgba(243, 250, 248, 0.8);
}

@media (max-width: 700px) {
  .site-header {
    gap: 0.5rem;
    padding: 0.7rem 0.9rem;
  }
  .brand a { font-size: 1.15rem; }
  .menu-toggle { display: block; }
  .header-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.8rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }
  .header-menu.is-open { display: flex; }
  .main-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .main-nav a {
    display: block;
    padding: 0.7rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
  }
  .user-chip {
    justify-content: space-between;
    padding: 0.2rem 0.25rem;
  }
}

.page {
  width: min(1280px, calc(100% - 1.5rem));
  max-width: 100%;
  margin: 1.5rem auto 3rem;
  overflow-x: hidden;
}
.page.wide { width: min(1280px, calc(100% - 1.5rem)); max-width: 100%; }
.page.board-page {
  width: 100%;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}
/* Master day schedule may scroll sideways inside its sheet wrap only. */
.page.schedule-page {
  overflow-x: visible;
}

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.15;
  margin: 0 0 0.5rem;
}
h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.lede { color: var(--ink-soft); margin: 0 0 1.25rem; max-width: 46rem; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  max-width: 100%;
  overflow-x: hidden;
}
.panel.schedule-sheet {
  overflow-x: visible;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 800px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.home-hero {
  padding: 2.5rem 0 1rem;
}
.home-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  max-width: 14ch;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  /* Keep soft card shadows from being clipped into hard square edges */
  padding: 0.25rem;
  overflow: visible;
}
.module-card {
  display: block;
  padding: 1.35rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(15, 46, 43, 0.08);
  box-shadow: none;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.module-card:hover {
  text-decoration: none;
  border-color: rgba(13, 115, 119, 0.28);
  box-shadow: none;
  background: #f7fbfb;
}
.module-card h2 { font-size: 1.35rem; margin: 0 0 0.45rem; }
.module-card p { margin: 0; color: var(--ink-soft); }

/* Phone: one continuous module list instead of floating cards with gray gutters. */
@media (max-width: 700px) {
  .home-hero {
    padding: 1.25rem 0 0.35rem;
  }
  .home-hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
  }
  .module-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 0.75rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
    overflow: hidden;
  }
  .module-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--line);
    padding: 1.05rem 1.1rem;
  }
  .module-card:last-child {
    border-bottom: 0;
  }
  .module-card:hover,
  .module-card:focus-visible {
    transform: none;
    box-shadow: none;
    background: rgba(13, 115, 119, 0.04);
    border-color: transparent;
    border-bottom-color: var(--line);
  }
  .module-card:last-child:hover,
  .module-card:last-child:focus-visible {
    border-bottom-color: transparent;
  }
  .module-card h2 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
  }
  .module-card p {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  /* Stacked page panels: white boxes only, no outer shadow shell. */
  .panel {
    margin-bottom: 0.7rem;
    border-radius: 14px;
    box-shadow: none;
    background: #fff;
  }
  .panel + .panel {
    margin-top: -0.15rem;
  }
  .bunks-picker-panel.has-selection {
    margin-bottom: 0.55rem;
  }
  .bunks-picker-panel.has-selection + .panel {
    margin-top: 0;
  }
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
.field-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
input:not([type]),
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="search"],
select,
textarea {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: #fff;
  font: inherit;
  color: inherit;
  margin-bottom: 0.85rem;
  box-sizing: border-box;
}
input:not([type]):focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(13, 115, 119, 0.35);
  outline-offset: 1px;
  border-color: var(--accent);
}
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%233d5652' d='M1.41.59 6 5.17 10.59.59 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 0.7rem;
  padding-right: 2.4rem;
  cursor: pointer;
}
select::-ms-expand {
  display: none;
}
textarea {
  min-height: 110px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.05); text-decoration: none; }
.btn-secondary { background: var(--bg-deep); }
.btn-hot { background: var(--accent-hot); }
.btn-ghost {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.85rem; }

.row-actions-edit-deactivate {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  vertical-align: middle;
}
.row-actions-edit-deactivate form {
  display: block;
  margin: 0;
}
.btn-block { width: 100%; }

.flash {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-weight: 600;
}
.flash-success { background: #d8f3e4; color: var(--ok); }
.flash-error { background: #f8d9d4; color: var(--danger); }
.flash-info { background: #dceff0; color: var(--accent); }

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }

.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
}
.search-results li {
  border-bottom: 1px solid var(--line);
}
.search-results button,
.search-results a {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0.85rem 0.25rem;
  font: inherit;
  cursor: pointer;
  color: inherit;
}
.search-results button:hover,
.search-results a:hover {
  background: rgba(13, 115, 119, 0.08);
}
.selected-members {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.65rem 0;
}
.member-chip {
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(13, 115, 119, 0.3);
  border-radius: 999px;
  background: rgba(13, 115, 119, 0.1);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
}
.member-chip:hover {
  color: #fff;
  background: var(--accent);
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.login-panel {
  width: min(420px, 100%);
  padding: 2rem;
  background: #fff;
  border-radius: 24px;
  box-shadow: none;
  border: 1px solid var(--line);
}
.login-panel h1 {
  font-size: 2.2rem;
  margin-bottom: 0.25rem;
}
.login-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.85rem 0 1.1rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}
.login-remember input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--accent);
}
.login-apply {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}
.login-apply .btn {
  text-align: center;
  white-space: normal;
  line-height: 1.25;
  padding: 0.7rem 0.85rem;
}
.login-alt-link {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.92rem;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}
.stat {
  flex: 1 1 140px;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(15, 46, 43, 0.06);
}
.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
}
.stat span { color: var(--ink-soft); font-size: 0.9rem; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1rem;
}
.toolbar .field { flex: 1 1 180px; }
.toolbar .field.date-field { flex: 0 1 auto; }

.date-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.date-nav-dow {
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.95rem;
  min-width: 8.5rem;
  text-align: center;
}
.date-nav input[type="date"] {
  width: auto;
  margin-bottom: 0;
}
.date-nav-btn {
  min-width: 2.4rem;
  padding: 0.5rem 0.6rem;
  font-size: 1.2rem;
  line-height: 1;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(13, 115, 119, 0.12);
  color: var(--accent);
}
.badge-hot { background: rgba(196, 92, 38, 0.15); color: var(--accent-hot); }
.badge-lock { background: rgba(15, 46, 43, 0.12); color: var(--bg-deep); }

.note-list { list-style: none; padding: 0; margin: 0; }
.note-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.editable-note {
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.12s ease, padding 0.12s ease;
}
.editable-note:hover,
.editable-note:focus-visible {
  background: rgba(13, 115, 119, 0.06);
  outline: none;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}
.note-meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}
.note-dialog {
  width: min(620px, calc(100vw - 2rem));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(15, 46, 43, 0.3);
}
.note-dialog::backdrop {
  background: rgba(7, 24, 22, 0.55);
}
.note-dialog textarea {
  min-height: 160px;
}
.profile-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
}
.profile-actions .btn {
  width: 100%;
  text-align: center;
}
.profile-identity {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin: 0 0 1.1rem;
}
.profile-identity-text {
  min-width: 0;
  flex: 1;
}
.profile-identity-text h1 {
  margin: 0 0 0.25rem;
}
.profile-campus-now {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--ink);
}
.profile-campus-now strong {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.profile-identity-text .lede {
  margin: 0;
}
.profile-admin-photo-btn {
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 50%;
  flex-shrink: 0;
  line-height: 0;
}
.profile-admin-photo-btn:focus-visible {
  outline: 3px solid var(--accent, #0d7377);
  outline-offset: 2px;
}
.profile-admin-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #e8eef2;
  border: 2px solid var(--line);
}
.profile-photo-dialog {
  padding: 0;
  border: 0;
  border-radius: 16px;
  max-width: min(92vw, 640px);
  background: transparent;
  box-shadow: none;
}
.profile-photo-dialog::backdrop {
  background: rgba(7, 24, 22, 0.7);
}
.profile-photo-dialog-inner {
  margin: 0;
  padding: 0.75rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(15, 46, 43, 0.35);
  text-align: center;
}
.profile-photo-dialog-inner img {
  display: block;
  width: 100%;
  max-height: min(80vh, 640px);
  object-fit: contain;
  border-radius: 10px;
  background: #e8eef2;
}
.profile-photo-dialog-inner .btn {
  margin-top: 0.75rem;
}
.file-attendance .inline-clear-absence {
  display: inline-block;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.note-dialog label {
  display: block;
  margin-top: 0.65rem;
}
.note-dialog label:first-of-type {
  margin-top: 0;
}
.note-dialog h2 {
  margin-top: 0;
}
.note-dialog input[type="date"],
.note-dialog input[type="text"],
.note-dialog select {
  width: 100%;
}

/* Dismissal screen display */
body.board-display {
  background: #071816;
  color: #f7fffd;
}
.board-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 2vh 3vw;
}
.board-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  opacity: 0.75;
  font-size: clamp(1rem, 2vw, 1.4rem);
}
.board-location {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: #7fd4cf;
}
.board-names {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5vh;
}
.board-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.8rem, 8vw, 7rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  animation: boardIn 0.45s ease both;
}
.board-name:nth-child(1) { color: #fff; }
.board-name:nth-child(2) { color: #ffe1c8; }
.board-name:nth-child(3) { color: #b8fff4; }
.board-empty {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  opacity: 0.35;
}
@keyframes boardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.caller-search { font-size: 1.15rem; }
.call-btn {
  width: 100%;
  text-align: left;
  margin-bottom: 0.5rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.9rem 1rem;
  font: inherit;
  cursor: pointer;
}
.call-btn strong { display: block; }
.call-btn span { color: var(--ink-soft); font-size: 0.9rem; }

.gender-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0.85rem 0 0.75rem;
}
.gender-tab {
  min-height: 3rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  color: var(--ink-soft);
}
.gender-tab.is-on {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(13, 115, 119, 0.22);
}
.gender-tab[data-gender="girl"].is-on {
  background: #9b4d6c;
  border-color: #9b4d6c;
  box-shadow: 0 8px 20px rgba(155, 77, 108, 0.25);
}

.gender-tabs[hidden],
.group-tabs[hidden] {
  display: none !important;
}

.group-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.85rem 0 0.75rem;
}
.group-tab {
  flex: 0 0 auto;
  min-width: 3.5rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.55rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  color: var(--ink-soft);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  white-space: nowrap;
}
.group-tab.is-on {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(13, 115, 119, 0.22);
}
.group-tab.group-tab-girl.is-on {
  background: #9b4d6c;
  border-color: #9b4d6c;
  box-shadow: 0 8px 20px rgba(155, 77, 108, 0.25);
}
.attendance-tab-label {
  margin: 0.8rem 0 -0.45rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.bus-tabs {
  grid-template-columns: repeat(auto-fit, minmax(4.5rem, 1fr));
}
.bus-tab.is-on {
  background: #c45c26;
  border-color: #c45c26;
  box-shadow: 0 8px 20px rgba(196, 92, 38, 0.24);
}
.bus-check-btn {
  background: #fff7f1;
  border-color: rgba(196, 92, 38, 0.24);
  justify-content: space-between;
  gap: 0.5rem;
}
.bus-check-btn.is-checked {
  background: #e8f7ef;
  border-color: rgba(36, 130, 78, 0.42);
  color: #176638;
}
.bus-checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  min-width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 800;
}
.bus-check-btn.is-checked .bus-checkmark {
  background: #268653;
  color: #fff;
}

.collapsible-form-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font: inherit;
  font-weight: 700;
  touch-action: manipulation;
  user-select: none;
}
.collapsible-form-summary::-webkit-details-marker {
  display: none;
}
.collapsible-form-summary::before {
  content: "+";
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.15s ease;
}
.collapsible-form[open] > .collapsible-form-summary::before {
  transform: rotate(45deg);
}
.collapsible-form-summary:hover,
.collapsible-form-summary:focus-visible {
  filter: brightness(1.05);
  outline: none;
}
.collapsible-form[open] > .collapsible-form-summary {
  margin-bottom: 1rem;
}

.camper-add-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
}
.camper-add-actions > .collapsible-form {
  flex: 1 1 auto;
  min-width: min(100%, 16rem);
}
.camper-add-actions > .collapsible-form:not([open]) {
  flex: 0 0 auto;
}
.camper-bulk-btn {
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-weight: 700;
  background: #fff;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.camper-bulk-btn:hover,
.camper-bulk-btn:focus-visible {
  filter: brightness(0.97);
  outline: none;
}

.pager {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}
.magic-link-panel {
  border: 2px solid var(--accent);
}
.magic-link-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.magic-link-row input {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
}
.form-section-title {
  margin: 1.4rem 0 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}
.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
}
.inline-check input {
  width: auto;
  margin: 0;
}

.pad-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.pad-head h1 {
  margin: 0;
}
.pad-head-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
}
.pad-head-actions .btn {
  text-align: center;
  white-space: nowrap;
}
.pad-head-actions-row {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
}
.pad-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  touch-action: manipulation;
}
.pad-toggle:hover,
.pad-toggle:focus-visible {
  border-color: rgba(13, 115, 119, 0.4);
  color: var(--accent);
  outline: none;
}
.pad-toggle-arrow {
  font-size: 0.9rem;
  line-height: 1;
  transition: transform 0.15s ease;
}
.pad-toggle.is-collapsed .pad-toggle-arrow {
  transform: rotate(-90deg);
}
.pad-top.is-collapsed {
  display: none;
}

.attend-toggle {
  font-weight: 700;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.attend-toggle.is-absent {
  background: #fdecec;
  border-color: rgba(176, 42, 42, 0.55);
  color: #8f2020;
}
.attend-toggle.is-absent:hover,
.attend-toggle.is-absent:focus-visible {
  background: #fbdada;
  border-color: rgba(176, 42, 42, 0.75);
}
.attend-toggle.is-present {
  background: #d8f3e4;
  border-color: rgba(31, 122, 77, 0.6);
  color: #146239;
}
.attend-toggle.is-present:hover,
.attend-toggle.is-present:focus-visible {
  background: #c4ecd6;
  border-color: rgba(31, 122, 77, 0.8);
}
.attend-toggle.is-early-dismissal:not(.is-present) {
  background: #fff4b8;
  border-color: rgba(180, 140, 20, 0.55);
  color: #6b5200;
  font-weight: 700;
}
.attend-toggle.is-early-dismissal:not(.is-present):hover,
.attend-toggle.is-early-dismissal:not(.is-present):focus-visible {
  background: #ffec8a;
  border-color: rgba(180, 140, 20, 0.75);
}
.attend-toggle.is-early-dismissal:disabled {
  opacity: 1;
  cursor: default;
}
.attend-toggle.is-day-absent:not(.is-present) {
  background: #fff4b8;
  border-color: rgba(180, 140, 20, 0.55);
  color: #6b5200;
  font-weight: 700;
}
.attend-toggle.is-day-absent:not(.is-present):hover,
.attend-toggle.is-day-absent:not(.is-present):focus-visible {
  background: #ffec8a;
  border-color: rgba(180, 140, 20, 0.75);
}
.attend-toggle.is-day-absent:disabled {
  opacity: 1;
  cursor: default;
}

.staff-att-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.25rem;
  flex-wrap: wrap;
}
.staff-att-time,
.staff-att-time-view {
  min-width: 7.5rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
.staff-att-time:disabled {
  opacity: 0.55;
}
.staff-att-time-view {
  color: var(--ink-soft);
}

.letter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.85rem 0 1.1rem;
  padding: 0.55rem;
  background: rgba(15, 46, 43, 0.04);
  border-radius: 16px;
  border: 1px solid var(--line);
}
.letter-chip {
  min-width: 2.55rem;
  min-height: 2.55rem;
  padding: 0.4rem 0.55rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 1px 2px rgba(15, 46, 43, 0.06);
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}
.letter-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(13, 115, 119, 0.35);
}
.letter-chip:active {
  transform: scale(0.96);
}
.letter-chip.is-on {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(13, 115, 119, 0.28);
}

.name-pad {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.45rem;
  overflow: visible;
  padding: 0.2rem 0.1rem 0.4rem;
}
.name-pad.name-pad-buddy {
  display: block;
  grid-template-columns: none;
}
.arrival-name {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.3rem;
}
.arrival-name .name-btn {
  min-width: 0;
}
.arrival-absent {
  border: 1px solid rgba(163, 52, 52, 0.28);
  border-radius: 10px;
  background: #fff5f5;
  color: #8f2f2f;
  padding: 0.4rem 0.55rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}
.arrival-absent:hover,
.arrival-absent:focus-visible {
  background: #ffe7e7;
  border-color: rgba(163, 52, 52, 0.55);
  outline: none;
}
.attendance-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.8rem 0 1rem;
}
.attendance-summary > * {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.name-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 2.6rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 46, 43, 0.12);
  background: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(15, 46, 43, 0.05);
  transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease, background 0.1s ease;
}
.name-btn-label {
  display: block;
}
.name-btn-meta {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted, #5a6b68);
  line-height: 1.2;
}
.name-btn:hover,
.name-btn:focus-visible {
  border-color: rgba(13, 115, 119, 0.45);
  outline: none;
  box-shadow: 0 4px 12px rgba(13, 115, 119, 0.12);
  transform: translateY(-1px);
  text-decoration: none;
}
.name-btn:active {
  transform: scale(0.98);
}
.name-btn-carpool {
  background: #fff7f1;
  border-color: rgba(196, 92, 38, 0.22);
}
.name-btn.is-called {
  background: #d8f3e4;
  border-color: rgba(31, 122, 77, 0.45);
  color: var(--ok);
}
.name-btn:disabled {
  opacity: 0.65;
}


.schedule-grid {
  display: grid;
  gap: 0.75rem;
}
.slot-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem;
  background: #fff;
}
.slot-card.locked { border-color: rgba(196, 92, 38, 0.45); background: #fff7f1; }
.assign-chip {
  display: inline-block;
  margin: 0.2rem 0.25rem 0 0;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  background: rgba(13, 115, 119, 0.1);
  font-size: 0.85rem;
}
.schedule-sheet.panel {
  padding: 1rem 1rem 0.85rem;
}
.schedule-sheet > h2,
.schedule-sheet > .panel-heading {
  margin-bottom: 0.65rem;
}
.schedule-sheet > .panel-heading h2 {
  margin: 0;
}
.schedule-sheet-wrap {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  overflow-anchor: none;
  margin: 0 -1rem -0.85rem;
  max-width: none;
  border-top: 1px solid #b0b0b0;
  background: #fff;
}
.schedule-sheet-grid {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: "Segoe UI", Calibri, Candara, "Helvetica Neue", sans-serif;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: #1f1f1f;
  overflow-anchor: none;
}
.schedule-sheet-grid th,
.schedule-sheet-grid td {
  border: 1px solid #c6c6c6 !important;
  padding: 0 !important;
  vertical-align: middle;
  text-align: center;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: #000 !important;
  background: #fff;
  min-width: 7.5rem;
  max-width: 7.5rem;
  width: 7.5rem;
  height: auto;
  min-height: 1.85rem;
}
/* Day schedule activity cells: empty = two lines tall (not the swim totals row). */
#day-schedule-panel .schedule-sheet-grid tbody td {
  min-height: 3rem;
}
#day-schedule-panel .schedule-sheet-grid tbody .sheet-cell-form .sheet-cell-input,
#day-schedule-panel .schedule-sheet-grid tbody .sheet-cell-text {
  min-height: calc((1.25em * 2) + 0.5rem);
}
.schedule-sheet-grid thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f2f2f2 !important;
  font-weight: 700;
  text-align: center;
  padding: 0.35rem 0.3rem !important;
  box-shadow: inset 0 -1px 0 #9e9e9e;
}
.schedule-sheet-grid .sheet-corner,
.schedule-sheet-grid .sheet-group-col {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #f2f2f2 !important;
  min-width: 5.75rem !important;
  max-width: 5.75rem !important;
  width: 5.75rem !important;
  font-weight: 700;
  padding: 0.25rem 0.4rem !important;
  box-shadow: inset -1px 0 0 #9e9e9e;
}
.schedule-sheet-grid .sheet-group-count {
  font-weight: 600;
  color: #555;
  margin-left: 0.15rem;
}
.schedule-sheet-grid tfoot .sheet-swim-totals-row th,
.schedule-sheet-grid tfoot .sheet-swim-totals-row td {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: #eceff1 !important;
  font-weight: 700;
  text-align: center;
  padding: 0.35rem 0.3rem !important;
  box-shadow: inset 0 1px 0 #9e9e9e;
  color: #000 !important;
}
.schedule-sheet-grid tfoot .sheet-swim-totals-label {
  z-index: 3;
  text-align: left;
  background: #e0e0e0 !important;
}
.schedule-sheet-grid tfoot .sheet-swim-total.has-swim-total {
  background: #e3f2fd !important;
}
.schedule-sheet-grid thead .sheet-corner {
  z-index: 3;
  background: #e6e6e6 !important;
  text-align: center;
  color: #000 !important;
}
.schedule-sheet-grid tbody tr:nth-child(even) td {
  background: #fafafa;
}
.schedule-sheet-grid tbody tr:nth-child(even) .sheet-group-col {
  background: #ececec !important;
}
.schedule-sheet-grid tbody tr:hover td {
  background: #e8f2ff !important;
}
.schedule-sheet-grid tbody tr:hover .sheet-group-col {
  background: #d9e8fb !important;
}
.sheet-col-time {
  display: block;
  font-size: 0.55rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  padding: 0 0.1rem;
  max-width: 100%;
  box-sizing: border-box;
  letter-spacing: -0.01em;
}
.schedule-sheet-grid td.is-open {
  background: #fffdf5;
}
.schedule-sheet-grid tbody tr:nth-child(even) td.is-open {
  background: #fff9e8;
}
body.is-schedule-painting {
  cursor: copy;
  user-select: none;
  -webkit-user-select: none;
}
body.is-schedule-painting .schedule-sheet-wrap {
  touch-action: none;
}
body.is-schedule-painting .schedule-sheet-grid .sheet-cell-input,
body.is-schedule-painting .schedule-sheet-grid .sheet-cell-form {
  pointer-events: none;
  caret-color: transparent;
}
.schedule-sheet-grid td.is-paint-hover {
  outline: 2px solid var(--accent, #0d7377);
  outline-offset: -2px;
}
body.is-schedule-selecting {
  cursor: cell;
  user-select: none;
  -webkit-user-select: none;
}
body.is-schedule-selecting .schedule-sheet-wrap {
  touch-action: none;
}
body.is-schedule-selecting .schedule-sheet-grid .sheet-cell-input,
body.is-schedule-selecting .schedule-sheet-grid .sheet-cell-form {
  pointer-events: none;
  caret-color: transparent;
}
.schedule-sheet-grid td.is-cell-selected {
  outline: 2px solid var(--accent, #0d7377);
  outline-offset: -2px;
  position: relative;
  z-index: 1;
}
.schedule-sheet-grid td.is-cell-selected.is-cell-active {
  outline-width: 3px;
  box-shadow: inset 0 0 0 1px rgba(13, 115, 119, 0.55);
}
.schedule-sheet-grid .sheet-cell-input[readonly] {
  caret-color: transparent;
  cursor: cell;
  user-select: none;
  -webkit-user-select: none;
}
.schedule-sheet-grid td.is-editing .sheet-cell-input {
  caret-color: auto;
  cursor: text;
  user-select: text;
  -webkit-user-select: text;
  outline: none;
}
.week-sched-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.week-sched-head h2 { margin: 0; }
.week-sched-group {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: rgba(13, 115, 119, 0.12);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  vertical-align: middle;
}
.week-sched-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.week-sched-nav-btn {
  min-width: 2.25rem;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
  font-size: 1.15rem;
  line-height: 1;
  text-decoration: none;
}
.week-sched-nav-btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}
.week-sched-nav-label {
  min-width: 7.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}
.week-sched-weekpick {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}
.week-sched-weekpick label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.week-sched-weekpick select {
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-weight: 600;
}

.week-sched-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 0 -0.25rem;
  padding: 0 0.25rem 0.15rem;
}
.week-sched {
  width: 100%;
  min-width: 36rem;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.week-sched th,
.week-sched td {
  border: none;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.week-sched thead th {
  background: var(--bg-deep);
  color: #eafaf7;
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.55rem 0.5rem;
  font-size: 0.85rem;
}
.week-sched thead th.is-today {
  background: var(--accent);
}
.week-sched .ws-day {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.25;
  white-space: nowrap;
}
.week-sched tbody th.ws-time-col,
.week-sched thead th.ws-time-col {
  width: 5.5rem;
  min-width: 5.5rem;
  position: sticky;
  left: 0;
  z-index: 2;
}
.week-sched thead th.ws-time-col {
  z-index: 3;
  background: var(--bg-deep);
}
.week-sched tbody th.ws-time-col {
  background: #f4faf9;
  color: #000;
  font-weight: 700;
  font-size: 0.8rem;
  text-align: right;
  padding: 0.4rem 0.55rem;
  white-space: nowrap;
  box-shadow: 1px 0 0 var(--line);
}
.week-sched .ws-time-end {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: #333;
}
.week-sched td {
  padding: 0.4rem 0.55rem;
  min-width: 5.5rem;
  color: #000;
}
.week-sched tbody tr:last-child th,
.week-sched tbody tr:last-child td {
  border-bottom: none;
}
.week-sched th:last-child,
.week-sched td:last-child {
  border-right: none;
}
.week-sched tbody tr:nth-child(even) td.ws-filled {
  background: #f7fbfa;
}
.week-sched td.is-today {
  background: rgba(13, 115, 119, 0.06);
}
.week-sched .ws-activity {
  display: block;
  line-height: 1.3;
  font-size: 0.85rem;
  font-weight: 600;
  color: #000;
  white-space: normal;
  word-break: break-word;
}
.week-sched .ws-dash {
  color: rgba(20, 42, 40, 0.25);
  font-weight: 700;
}
.week-sched td.ws-open {
  background: repeating-linear-gradient(
    45deg,
    #fbfdfc,
    #fbfdfc 6px,
    #f2f7f6 6px,
    #f2f7f6 12px
  );
  text-align: center;
}

.week-trips {
  margin-top: 1.1rem;
}
.week-trips h3 {
  margin: 0 0 0.5rem;
}
.week-trips ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.week-trips li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(196, 92, 38, 0.28);
  border-left: 4px solid var(--accent-hot);
  border-radius: 16px;
  background: #fff7f1;
}
.week-trip-day {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--accent-hot);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.week-trip-name {
  font-weight: 600;
  color: var(--ink);
}
.week-trip-lunch {
  margin-left: auto;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: rgba(196, 92, 38, 0.14);
  color: var(--accent-hot);
  font-size: 0.72rem;
  font-weight: 700;
}

.day-trip-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.day-trip-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.9rem 1.05rem;
  border: 1px solid rgba(13, 115, 119, 0.18);
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
}
.day-trip-main {
  min-width: 0;
  flex: 1 1 14rem;
}
.day-trip-name {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.day-trip-bunks {
  margin: 0 0 0.35rem;
  color: var(--ink-soft);
  line-height: 1.35;
}
.day-trip-buses {
  margin: 0 0 0.45rem;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.4;
}
.day-trip-buses li { margin: 0.15rem 0; }
.trip-bus-assign {
  margin: 0.85rem 0 1rem;
}
.trip-bus-bunk-rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem 1rem;
  margin-top: 0.5rem;
}
.trip-bus-bunk-row.is-hidden { display: none; }
.trip-bus-bunk-row label {
  margin-bottom: 0.25rem;
}
.trip-bus-bunk-row input {
  margin-bottom: 0;
}
.lunch-trip-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}
.lunch-trip-card {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(15, 46, 43, 0.1);
  border-radius: 14px;
  background: #fff;
}
.lunch-trip-card-head h3 {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
}
.lunch-trip-card-head p {
  margin: 0 0 0.65rem;
}
.lunch-trip-buses {
  margin-top: 0.75rem;
}
.lunch-trip-buses h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}
.lunch-trip-buses ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}
.day-trip-lunch {
  margin: 0;
  display: inline-block;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: rgba(13, 115, 119, 0.1);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
}
.day-trip-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.day-trip-actions form {
  display: inline;
  margin: 0;
}
.day-trip-card.has-activity-color {
  border-color: transparent;
}
.day-trip-card.has-activity-color .day-trip-lunch {
  background: rgba(255, 255, 255, 0.55);
  color: inherit;
}
.sheet-cell-form {
  margin: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sheet-cell-form .sheet-cell-input,
.sheet-cell-form input[type="text"],
.sheet-cell-form textarea.sheet-cell-input {
  display: block;
  width: 100%;
  min-height: 1.85rem;
  height: auto;
  border: 0;
  margin: 0;
  padding: 0.25rem 0.3rem;
  background: transparent;
  font: inherit;
  color: #000;
  box-shadow: none;
  border-radius: 0;
  text-align: center;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25;
  resize: none;
  overflow: hidden;
  field-sizing: content;
}
.sheet-cell-text {
  display: block;
  width: 100%;
  padding: 0.25rem 0.3rem;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25;
}
.sheet-cell-form .sheet-cell-input:focus,
.sheet-cell-form input[type="text"]:focus,
.sheet-cell-form textarea.sheet-cell-input:focus {
  outline: 2px solid #2b7fff;
  outline-offset: -2px;
  background: #fff;
}
.sheet-cell-form .sheet-cell-input::placeholder,
.sheet-cell-form input[type="text"]::placeholder,
.sheet-cell-form textarea.sheet-cell-input::placeholder {
  color: #b0b0b0;
  font-style: italic;
  text-align: center;
}
.schedule-sheet-grid td.has-activity-color,
.schedule-sheet-grid tbody tr:nth-child(even) td.has-activity-color,
.schedule-sheet-grid tbody tr:hover td.has-activity-color {
  background-color: var(--sa-bg) !important;
  color: #000 !important;
}
.schedule-sheet-grid td.has-activity-color .sheet-cell-form .sheet-cell-input,
.schedule-sheet-grid td.has-activity-color .sheet-cell-form input[type="text"] {
  color: #000 !important;
}
.schedule-sheet-grid td.has-activity-color .sheet-cell-form .sheet-cell-input:focus,
.schedule-sheet-grid td.has-activity-color .sheet-cell-form input[type="text"]:focus {
  background: #fff;
  color: #000 !important;
}
.week-sched td.has-activity-color {
  background-color: var(--sa-bg) !important;
  color: #000 !important;
}
.week-sched td.has-activity-color .ws-activity {
  color: #000 !important;
}
.week-trips li.has-activity-color {
  background-color: var(--sa-bg);
  color: #000;
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
}
.week-trips li.has-activity-color .week-trip-lunch {
  color: #000;
  opacity: 0.85;
}

.color-picker-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.color-picker-row input[type="color"] {
  width: 2.6rem;
  height: 2.4rem;
  padding: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.color-picker-row #color_hex {
  flex: 1;
}
.color-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}
.color-preset {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 46, 43, 0.18);
  cursor: pointer;
  padding: 0;
}
.color-preset:hover,
.color-preset:focus-visible {
  outline: 2px solid rgba(13, 115, 119, 0.45);
  outline-offset: 2px;
}
.activity-color-chip {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(15, 46, 43, 0.12);
}
@media (min-width: 1100px) {
  .page.wide.schedule-page {
    width: min(1680px, calc(100% - 1rem));
  }
}

@media (max-width: 800px) {
  .page {
    width: calc(100% - 1rem);
    margin-left: auto;
    margin-right: auto;
  }
  .page.wide.schedule-page {
    width: calc(100% - 1rem);
  }
  .site-header {
    max-width: 100%;
    overflow-x: hidden;
  }
  .date-nav {
    flex-wrap: wrap;
    max-width: 100%;
  }
  .date-nav-dow {
    min-width: 0;
    font-size: 0.85rem;
    flex: 1 1 auto;
  }
  .toolbar .field {
    flex: 1 1 100%;
    min-width: 0;
  }
  .toolbar .field.date-field {
    flex: 1 1 100%;
  }
  .magic-link-row {
    flex-wrap: wrap;
    max-width: 100%;
  }
  .magic-link-row input {
    min-width: 0;
    width: 100%;
  }
  /* Contained scroll only for non-master tables — avoid growing the page. */
  .table-wrap {
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }
  /* Week bunk schedule: sideways scroll + sticky time (readable on phones). */
  .week-sched-panel .week-sched-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    margin: 0 -0.75rem;
    padding: 0 0.75rem 0.25rem;
  }
  .week-sched {
    table-layout: fixed;
    width: max-content;
    min-width: 100%;
    border-radius: 10px;
  }
  .week-sched .ws-day {
    font-size: 0.68rem;
  }
  .week-sched tbody th.ws-time-col,
  .week-sched thead th.ws-time-col {
    width: 3.6rem;
    min-width: 3.6rem;
    font-size: 0.68rem;
    white-space: normal;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }
  .week-sched thead th {
    padding: 0.35rem 0.25rem;
  }
  .week-sched td {
    min-width: 5.75rem;
    max-width: 7rem;
    width: 6.25rem;
    padding: 0.28rem 0.25rem;
    font-size: 0.7rem;
  }
  .week-sched .ws-activity {
    font-size: 0.66rem;
    line-height: 1.25;
    word-break: break-word;
  }
  .week-sched-nav-label {
    min-width: 0;
    font-size: 0.85rem;
  }
  /* Master day schedule: only place that scrolls sideways on purpose. */
  .schedule-sheet.panel {
    overflow-x: visible;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .schedule-sheet-wrap {
    margin: 0 -0.75rem -0.85rem;
    max-width: calc(100% + 1.5rem);
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }
  .schedule-sheet-grid th,
  .schedule-sheet-grid td {
    min-width: 5.5rem;
    max-width: 5.5rem;
    width: 5.5rem;
  }
  .sheet-col-time {
    font-size: 0.45rem;
  }
  .schedule-sheet-grid .sheet-corner,
  .schedule-sheet-grid .sheet-group-col {
    min-width: 4.25rem !important;
    max-width: 4.25rem !important;
    width: 4.25rem !important;
  }
}

.bunk-counselor-list {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
}
.bunk-counselor-list li {
  padding: 0.15rem 0;
}
.bunk-view-menu {
  position: relative;
}
.bunk-view-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 40;
  min-width: 13.5rem;
  max-height: min(70vh, 24rem);
  overflow: auto;
  padding: 0.55rem 0.65rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  box-shadow: 0 8px 24px rgba(20, 30, 40, 0.12);
}
.bunk-view-option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.28rem 0.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
.bunk-view-option input {
  margin: 0;
  accent-color: var(--accent);
}
body.bunk-hide-counselors [data-bunk-section="counselors"],
body.bunk-hide-birthdate [data-bunk-col="birthdate"],
body.bunk-hide-tshirt [data-bunk-col="tshirt"],
body.bunk-hide-bagel [data-bunk-col="bagel"],
body.bunk-hide-travel [data-bunk-col="travel"],
body.bunk-hide-address [data-bunk-col="address"],
body.bunk-hide-mother [data-bunk-col="mother"],
body.bunk-hide-mother_phone [data-bunk-col="mother_phone"],
body.bunk-hide-father [data-bunk-col="father"],
body.bunk-hide-father_phone [data-bunk-col="father_phone"],
body.bunk-hide-medical [data-bunk-col="medical"],
body.bunk-hide-schedule #bunk-schedule,
body.bunk-hide-break_sheet #bunk-break-sheet {
  display: none !important;
}
.bunk-roster-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}
.bunk-roster-list li {
  margin: 0;
  padding: 0.2rem 0;
  border: 0;
  line-height: 1.35;
  font-size: 0.95rem;
}
.bunk-roster-list a {
  text-decoration: none;
  font-weight: 600;
}
.bunk-roster-list a:hover,
.bunk-roster-list a:focus-visible {
  text-decoration: underline;
}
.bunks-picker-panel.has-selection .pad-top.is-collapsed {
  display: none;
}

.muted { color: var(--ink-soft); }
.stack-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.allergy-summary {
  padding: 0.75rem 0.9rem;
  border-left: 4px solid var(--accent-hot);
  border-radius: 8px;
  background: rgba(196, 92, 38, 0.1);
}

.week-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 0.7rem;
  margin: 0.85rem 0 1.1rem;
}
.week-picker label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 68px;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, rgba(232, 241, 240, 0.7));
  box-shadow: 0 3px 10px rgba(15, 46, 43, 0.07);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.week-picker label:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 115, 119, 0.4);
  box-shadow: 0 7px 16px rgba(15, 46, 43, 0.11);
}
.week-picker label:has(input:checked) {
  border-color: var(--accent);
  background: linear-gradient(145deg, rgba(13, 115, 119, 0.16), rgba(255, 255, 255, 0.95));
  box-shadow: 0 5px 14px rgba(13, 115, 119, 0.15), inset 0 0 0 1px rgba(13, 115, 119, 0.12);
}
.week-picker label:has(input:focus-visible) {
  outline: 3px solid rgba(13, 115, 119, 0.25);
  outline-offset: 2px;
}
.week-picker input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--accent);
}
.week-picker strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}
.week-picker small {
  display: block;
  margin-top: 0.15rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.group-toggle-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(3.5rem, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}
.group-toggle-picker label {
  position: relative;
  margin: 0;
  cursor: pointer;
}
.group-toggle-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.group-toggle-picker span {
  display: block;
  padding: 0.6rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-align: center;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.group-toggle-picker small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.75;
}
.group-toggle-picker input:checked + span {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.group-toggle-picker input:focus-visible + span {
  outline: 3px solid rgba(13, 115, 119, 0.25);
  outline-offset: 2px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.panel-heading h2 {
  margin: 0;
}
.panel-heading-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.panel-heading-actions .inline-form {
  display: inline;
  margin: 0;
}

@media print {
  body.print-bagels-only *,
  body.print-bunk-only *,
  body.print-day-schedule-only *,
  body.print-buddy-only *,
  body.print-break-sheet-only *,
  body.print-all-bunk-weeks-only * {
    visibility: hidden;
  }
  body.print-bagels-only #bagel-day-panel,
  body.print-bagels-only #bagel-day-panel *,
  body.print-bunk-only #bunk-detail-panel,
  body.print-bunk-only #bunk-detail-panel *,
  body.print-day-schedule-only #day-schedule-panel,
  body.print-day-schedule-only #day-schedule-panel *,
  body.print-buddy-only #buddy-sheet,
  body.print-buddy-only #buddy-sheet *,
  body.print-break-sheet-only #break-sheet-panel,
  body.print-break-sheet-only #break-sheet-panel *,
  body.print-all-bunk-weeks-only #all-bunk-week-schedules,
  body.print-all-bunk-weeks-only #all-bunk-week-schedules * {
    visibility: visible;
  }
  body.print-bagels-only #bagel-day-panel,
  body.print-bunk-only #bunk-detail-panel,
  body.print-day-schedule-only #day-schedule-panel,
  body.print-buddy-only #buddy-sheet,
  body.print-break-sheet-only #break-sheet-panel,
  body.print-all-bunk-weeks-only #all-bunk-week-schedules {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: #fff;
  }
  /* Bunk bagel roster: hide page chrome with display:none so it doesn't leave a blank first page */
  body.print-bunk-bagels-only .site-header,
  body.print-bunk-bagels-only .site-footer,
  body.print-bunk-bagels-only main.page > *:not(#bunk-bagel-roster-panel) {
    display: none !important;
  }
  body.print-bunk-bagels-only #bunk-bagel-roster-panel,
  body.print-bunk-bagels-only #bunk-bagel-roster-panel[hidden] {
    display: block !important;
    position: static;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: #fff;
  }
  body.print-bunk-bagels-only .bunk-bagel-roster-block {
    margin: 0;
    break-before: auto;
    break-after: auto;
    page-break-before: auto;
    page-break-after: auto;
  }
  /* One break between bunks — no forced blank second page */
  body.print-bunk-bagels-only .bunk-bagel-page-break {
    break-after: page;
    page-break-after: always;
    display: block;
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }
  body.print-bunk-bagels-only .bunk-bagel-roster-date {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
  }
  body.print-bunk-bagels-only .bunk-bagel-roster-block h3 {
    margin: 0 0 0.35rem;
    break-after: avoid;
    page-break-after: avoid;
  }
  body.print-bunk-bagels-only .bunk-bagel-roster-block h4 {
    margin: 0.75rem 0 0.25rem;
    break-after: avoid;
    page-break-after: avoid;
  }
  body.print-buddy-only .no-print,
  body.print-buddy-only .buddy-swap-hint,
  body.print-break-sheet-only .no-print,
  body.print-all-bunk-weeks-only .no-print {
    display: none !important;
  }
  body.print-buddy-only .buddy-name-btn {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    font-weight: 400;
    color: #000 !important;
  }
  body.print-buddy-only tr.buddy-ability-mismatch td {
    background: #fdecea !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body.print-buddy-only tr.buddy-ability-mismatch .buddy-name-btn {
    color: #8f2020 !important;
    font-weight: 700 !important;
  }
  body.print-day-schedule-only #day-schedule-panel .schedule-sheet-wrap {
    overflow: visible;
    margin: 0;
  }
  body.print-day-schedule-only #day-schedule-panel .schedule-sheet-grid {
    width: 100%;
  }
  body.print-day-schedule-only #day-schedule-panel .sheet-cell-input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.2rem 0.35rem !important;
  }
  body.print-break-sheet-only #break-sheet-panel .schedule-sheet-wrap {
    overflow: visible;
    margin: 0;
  }
  body.print-break-sheet-only #break-sheet-panel .break-sheet-grid {
    width: 100%;
  }
  body.print-break-sheet-only #break-sheet-panel .break-sheet-input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.2rem 0.35rem !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body.print-break-sheet-only #break-sheet-panel td.is-blocked,
  body.print-break-sheet-only #break-sheet-panel .break-sheet-blocked {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body.print-all-bunk-weeks-only #all-bunk-week-schedules {
    display: block !important;
  }
  body.print-all-bunk-weeks-only .bunk-week-print-block {
    break-after: page;
    page-break-after: always;
    break-inside: avoid;
    page-break-inside: avoid;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: #fff;
  }
  body.print-all-bunk-weeks-only .bunk-week-print-block:last-child {
    break-after: auto;
    page-break-after: auto;
  }
  body.print-all-bunk-weeks-only .bunk-week-print-block .week-sched-head {
    margin: 0 0 0.25rem;
    gap: 0.25rem;
  }
  body.print-all-bunk-weeks-only .bunk-week-print-block .week-sched-head h2 {
    font-size: 0.95rem;
    line-height: 1.2;
    margin: 0;
  }
  body.print-all-bunk-weeks-only .bunk-week-print-block .week-sched-group {
    margin-left: 0.25rem;
    padding: 0.05rem 0.4rem;
    font-size: 0.8rem;
    border-radius: 4px;
  }
  body.print-all-bunk-weeks-only .bunk-week-print-block .week-sched-wrap {
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  body.print-all-bunk-weeks-only .bunk-week-print-block .week-sched {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border: 1pt solid #000;
    border-radius: 0;
    overflow: visible;
    font-size: 0.62rem;
  }
  /* B&W-friendly: no activity colors when printing all bunk schedules. */
  body.print-all-bunk-weeks-only .bunk-week-print-block td.has-activity-color,
  body.print-all-bunk-weeks-only .bunk-week-print-block .has-activity-color,
  body.print-all-bunk-weeks-only .bunk-week-print-block li.has-activity-color {
    background: transparent !important;
    background-color: transparent !important;
    color: #000 !important;
    -webkit-print-color-adjust: economy;
    print-color-adjust: economy;
  }
  body.print-all-bunk-weeks-only .bunk-week-print-block td.has-activity-color .ws-activity,
  body.print-all-bunk-weeks-only .bunk-week-print-block .week-trip-lunch {
    color: #000 !important;
  }
  body.print-all-bunk-weeks-only .bunk-week-print-block .week-sched th,
  body.print-all-bunk-weeks-only .bunk-week-print-block .week-sched td {
    border: 0.6pt solid #000 !important;
    background: #fff !important;
    color: #000 !important;
    padding: 0.12rem 0.2rem !important;
    vertical-align: top;
    -webkit-print-color-adjust: economy;
    print-color-adjust: economy;
  }
  body.print-all-bunk-weeks-only .bunk-week-print-block .week-sched thead th,
  body.print-all-bunk-weeks-only .bunk-week-print-block .week-sched thead th.is-today,
  body.print-all-bunk-weeks-only .bunk-week-print-block .week-sched tbody th.ws-time-col {
    background: #fff !important;
    color: #000 !important;
    font-weight: 700;
    font-size: 0.62rem;
    padding: 0.15rem 0.2rem !important;
  }
  body.print-all-bunk-weeks-only .bunk-week-print-block .week-sched .ws-day {
    font-size: 0.68rem;
    line-height: 1.1;
  }
  body.print-all-bunk-weeks-only .bunk-week-print-block .week-sched .ws-day-date {
    display: block;
    font-size: 0.58rem;
    font-weight: 600;
    line-height: 1.1;
  }
  body.print-all-bunk-weeks-only .bunk-week-print-block .week-sched tbody th.ws-time-col,
  body.print-all-bunk-weeks-only .bunk-week-print-block .week-sched thead th.ws-time-col {
    width: 3.4rem;
    min-width: 3.4rem;
    max-width: 3.4rem;
    position: static;
    box-shadow: none;
    white-space: nowrap;
  }
  body.print-all-bunk-weeks-only .bunk-week-print-block .week-sched .ws-time-end {
    font-size: 0.52rem;
    line-height: 1.05;
  }
  body.print-all-bunk-weeks-only .bunk-week-print-block .week-sched td {
    min-width: 0;
  }
  body.print-all-bunk-weeks-only .bunk-week-print-block .week-sched td.is-today,
  body.print-all-bunk-weeks-only .bunk-week-print-block .week-sched tbody tr:nth-child(even) td.ws-filled {
    background: #fff !important;
  }
  body.print-all-bunk-weeks-only .bunk-week-print-block .week-sched td.ws-filled {
    font-weight: 600;
  }
  body.print-all-bunk-weeks-only .bunk-week-print-block .week-sched .ws-activity {
    font-size: 0.58rem;
    line-height: 1.15;
    font-weight: 600;
  }
  body.print-all-bunk-weeks-only .bunk-week-print-block .week-sched .ws-dash {
    font-size: 0.55rem;
  }
  body.print-all-bunk-weeks-only .bunk-week-print-block .week-sched-group,
  body.print-all-bunk-weeks-only .bunk-week-print-block .week-sched-head h2,
  body.print-all-bunk-weeks-only .bunk-week-print-block .week-sched-nav-label {
    color: #000 !important;
  }
  body.print-all-bunk-weeks-only .bunk-week-print-block .week-trips {
    margin-top: 0.3rem;
  }
  body.print-all-bunk-weeks-only .bunk-week-print-block .week-trips h3 {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
  }
  body.print-all-bunk-weeks-only .bunk-week-print-block .week-trips ul {
    gap: 0.2rem;
  }
  body.print-all-bunk-weeks-only .bunk-week-print-block .week-trips li {
    background: transparent !important;
    border: 0.6pt solid #000;
    border-radius: 0;
    padding: 0.12rem 0.3rem;
    color: #000 !important;
    font-size: 0.58rem;
    line-height: 1.2;
  }
}

/* Keep single-bunk schedule print compact when the week grid is included. */
@media print {
  body.print-bunk-only #bunk-schedule .week-sched-wrap {
    overflow: visible;
    margin: 0;
  }
  body.print-bunk-only #bunk-schedule .week-sched {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 0.68rem;
  }
  body.print-bunk-only #bunk-schedule .week-sched th,
  body.print-bunk-only #bunk-schedule .week-sched td {
    padding: 0.18rem 0.25rem !important;
  }
  body.print-bunk-only #bunk-schedule .week-sched .ws-activity {
    font-size: 0.62rem;
    line-height: 1.2;
  }
  body.print-bunk-only #bunk-schedule .week-sched tbody th.ws-time-col,
  body.print-bunk-only #bunk-schedule .week-sched thead th.ws-time-col {
    width: 3.6rem;
    min-width: 3.6rem;
    position: static;
    box-shadow: none;
  }
}

.buddy-sheet-panel .panel-heading {
  margin-bottom: 0.75rem;
}
.buddy-date-toolbar {
  margin: 0 0 1rem;
  padding: 0;
}
.buddy-date-toolbar .date-field {
  margin: 0;
}
.buddy-sheet-title {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin: 0.25rem 0 0.85rem;
  color: #000;
}
.buddy-sheet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  color: #000;
}
.buddy-sheet-meta label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}
.buddy-sheet-meta input[type="text"] {
  width: 5.5rem;
  margin: 0;
  padding: 0.25rem 0.4rem;
  border: none;
  border-bottom: 1px solid #333;
  border-radius: 0;
  background: transparent;
}
.buddy-meta-value {
  min-width: 4rem;
  border-bottom: 1px solid #333;
  padding: 0 0.35rem 0.1rem;
}
.buddy-sheet-wrap {
  overflow-x: auto;
}
.buddy-sheet-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.82rem;
  color: #000;
  background: #fff;
}
.buddy-sheet-grid th,
.buddy-sheet-grid td {
  border: 1px solid #333 !important;
  padding: 0.25rem 0.35rem !important;
  vertical-align: middle;
  text-align: center;
  background: #fff !important;
  color: #000 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.buddy-sheet-grid thead th {
  font-weight: 700;
  line-height: 1.2;
  background: #f3f3f3 !important;
}
.buddy-sheet-grid .buddy-col-ability {
  width: 5.2rem;
}
.buddy-sheet-grid .buddy-col-num {
  width: 2.2rem;
  font-weight: 700;
}
.buddy-sheet-grid .buddy-col-name {
  width: auto;
  text-align: left !important;
}
.buddy-name-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.2rem 0.3rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: #000;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
}
.buddy-name-btn.is-empty {
  font-weight: 400;
  color: #888;
}
.buddy-name-btn:hover,
.buddy-name-btn:focus-visible {
  background: rgba(13, 115, 119, 0.12);
  outline: none;
}
.buddy-name-btn.is-selected {
  background: rgba(13, 115, 119, 0.22);
  box-shadow: inset 0 0 0 2px var(--accent, #0d7377);
}
.buddy-swap-hint {
  margin: 0 0 0.75rem;
}
.buddy-sheet-grid .buddy-col-mark {
  width: 4.2rem;
}
.buddy-sheet-grid td.buddy-mark-span {
  vertical-align: middle !important;
  background: #fff !important;
  border-bottom-width: 3px !important;
}
.buddy-sheet-grid td.buddy-mark-span input[type="text"] {
  min-height: 2.6rem;
  height: 100%;
  text-align: center;
}
.buddy-sheet-grid .buddy-col-block {
  background: #ececec !important;
}
.buddy-sheet-grid tr.buddy-pair-end td {
  border-bottom-width: 3px !important;
}
.buddy-sheet-grid tr.buddy-ability-mismatch td {
  background: #fdecea !important;
}
.buddy-sheet-grid tr.buddy-ability-mismatch td.buddy-mark-span {
  background: #fdecea !important;
}
.buddy-sheet-grid tr.buddy-ability-mismatch .buddy-col-ability select {
  border-color: rgba(176, 42, 42, 0.65);
  color: #8f2020;
  background-color: #fff5f5;
}
.buddy-sheet-grid tr.buddy-ability-mismatch .buddy-name-btn {
  color: #8f2020;
  font-weight: 700;
}
.buddy-sheet-grid tr.buddy-triple-head td {
  text-align: left !important;
  font-weight: 700;
  background: #f5f5f5 !important;
}
.buddy-sheet-grid input[type="text"] {
  width: 100%;
  margin: 0;
  padding: 0.2rem 0.3rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  color: #000;
  box-shadow: none;
}
.buddy-sheet-grid .buddy-col-ability select {
  width: 100%;
  margin: 0;
  padding: 0.25rem 1.55rem 0.25rem 0.3rem;
  border: 1px solid rgba(15, 46, 43, 0.28);
  border-radius: 6px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%233d5652' d='M1.41.59 6 5.17 10.59.59 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.4rem center;
  background-size: 0.65rem;
  font: inherit;
  font-weight: 700;
  color: #000;
  text-align: center;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.buddy-sheet-grid .buddy-col-name input[type="text"] {
  text-align: left;
}
.buddy-sheet.is-readonly .buddy-sheet-grid td {
  height: 1.7rem;
}
.buddy-sheet-notes {
  margin: 0.9rem 0 0.4rem;
  padding-left: 1.1rem;
  color: #000;
  font-size: 0.82rem;
  line-height: 1.45;
}
.buddy-sheet-notes li {
  margin-bottom: 0.25rem;
}
.buddy-sheet-legend {
  margin: 0.4rem 0 0;
  color: #000;
  font-size: 0.82rem;
}

@media (max-width: 800px) {
  .name-pad.name-pad-buddy {
    padding: 0;
  }
  .buddy-sheet-panel .panel-heading {
    gap: 0.4rem;
    margin-bottom: 0.45rem;
  }
  .buddy-sheet-panel .panel-heading h2 {
    font-size: 1.1rem;
  }
  .buddy-date-toolbar {
    margin-bottom: 0.55rem;
  }
  .buddy-date-toolbar .date-nav {
    width: 100%;
    flex-wrap: nowrap;
    gap: 0.3rem;
  }
  .buddy-date-toolbar .date-nav-btn {
    min-width: 2.4rem;
    padding: 0.4rem 0.45rem;
  }
  .buddy-date-toolbar .date-nav-dow {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.8rem;
  }
  .buddy-date-toolbar .date-nav-input {
    max-width: 8.5rem;
  }
  .buddy-swap-hint {
    font-size: 0.8rem;
    margin-bottom: 0.45rem;
  }
  .buddy-sheet-title {
    font-size: 1.15rem;
    margin: 0 0 0.4rem;
  }
  .buddy-sheet-meta {
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.78rem;
  }
  .buddy-sheet-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
  }
  .buddy-sheet-grid {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 0.62rem;
  }
  .buddy-sheet-grid th,
  .buddy-sheet-grid td {
    padding: 0.12rem 0.15rem !important;
  }
  .buddy-sheet-grid thead th {
    font-size: 0.58rem;
    line-height: 1.15;
  }
  .buddy-sheet-grid thead th small {
    font-size: 0.52rem;
  }
  .buddy-sheet-grid .buddy-col-ability {
    width: 2.7rem;
  }
  .buddy-sheet-grid .buddy-col-num {
    width: 1.35rem;
    font-size: 0.6rem;
  }
  .buddy-sheet-grid .buddy-col-mark {
    width: 2.15rem;
  }
  .buddy-sheet-grid .buddy-col-ability select {
    padding: 0.1rem 0.95rem 0.1rem 0.1rem;
    border-radius: 3px;
    font-size: 0.62rem;
    background-position: right 0.2rem center;
    background-size: 0.45rem;
  }
  .buddy-name-btn {
    padding: 0.12rem 0.15rem;
    font-size: 0.62rem;
    line-height: 1.2;
    font-weight: 600;
  }
  .buddy-sheet-grid input[type="text"] {
    padding: 0.1rem 0.12rem;
    font-size: 0.62rem;
  }
  .buddy-sheet-notes,
  .buddy-sheet-legend {
    font-size: 0.68rem;
    line-height: 1.35;
  }
  .buddy-sheet-notes {
    margin-top: 0.6rem;
    padding-left: 0.9rem;
  }
}

@media (max-width: 420px) {
  .buddy-sheet-grid {
    font-size: 0.55rem;
  }
  .buddy-sheet-grid thead th {
    font-size: 0.5rem;
  }
  .buddy-sheet-grid .buddy-col-ability {
    width: 2.35rem;
  }
  .buddy-sheet-grid .buddy-col-num {
    width: 1.15rem;
  }
  .buddy-sheet-grid .buddy-col-mark {
    width: 1.85rem;
  }
  .buddy-name-btn,
  .buddy-sheet-grid input[type="text"],
  .buddy-sheet-grid .buddy-col-ability select {
    font-size: 0.55rem;
  }
}

.break-sheet-panel {
  margin-top: 1rem;
}
.break-sheet-grid .break-sheet-input,
.break-sheet-grid .break-sheet-claim,
.break-sheet-week .break-sheet-input,
.break-sheet-week .break-sheet-claim {
  width: 100%;
  min-height: 2.4rem;
  margin: 0;
  padding: 0.35rem 0.4rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 0.85rem;
  color: inherit;
  text-align: center;
  box-shadow: none;
  box-sizing: border-box;
}
.break-sheet-grid .break-sheet-claim,
.break-sheet-week .break-sheet-claim {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent, #0d7377);
}
.break-sheet-grid td.is-open .break-sheet-claim,
.break-sheet-week td.is-open .break-sheet-claim,
.break-sheet-week td.is-open .break-sheet-input::placeholder {
  color: #8a9a97;
  font-weight: 500;
}
.break-sheet-grid td.is-filled .break-sheet-claim,
.break-sheet-grid td.is-filled .break-sheet-input,
.break-sheet-week td.is-filled .break-sheet-claim,
.break-sheet-week td.is-filled .break-sheet-input {
  font-weight: 700;
  color: #000;
}
.break-sheet-week .break-sheet-input:focus {
  outline: 2px solid #2b7fff;
  outline-offset: -2px;
  background: #fff;
}
.break-sheet-grid td.is-mine,
.break-sheet-week td.is-mine {
  background: rgba(13, 115, 119, 0.12) !important;
}
.break-sheet-grid .break-sheet-ro,
.break-sheet-week .break-sheet-ro {
  display: block;
  padding: 0.35rem 0.4rem;
  font-size: 0.85rem;
  text-align: center;
}
.break-sheet-grid .break-sheet-claim.is-mine,
.break-sheet-week .break-sheet-claim.is-mine {
  color: var(--accent, #0d7377);
}
.break-sheet-grid .break-sheet-claim:disabled,
.break-sheet-week .break-sheet-claim:disabled {
  cursor: default;
  opacity: 0.95;
}
.break-sheet-week .break-sheet-claim.is-day-locked,
.break-sheet-week .break-sheet-claim:disabled.is-day-locked {
  opacity: 0.45;
  cursor: not-allowed;
  color: #8a9a97;
  font-weight: 500;
}
.break-sheet-grid td.is-blocked,
.break-sheet-week td.is-blocked {
  background: #eceff1 !important;
  color: #78909c;
}
.break-sheet-grid .break-sheet-blocked,
.break-sheet-week .break-sheet-blocked {
  display: block;
  padding: 0.35rem 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #78909c;
}
.break-sheet-grid .break-sheet-claim:not(:disabled):hover,
.break-sheet-grid .break-sheet-claim:not(:disabled):focus-visible,
.break-sheet-week .break-sheet-claim:not(:disabled):hover,
.break-sheet-week .break-sheet-claim:not(:disabled):focus-visible {
  background: rgba(13, 115, 119, 0.1);
  outline: none;
}

/* Public registration portal */
.badge-ok { background: rgba(13, 115, 119, 0.14); color: var(--accent, #0d7377); }
.reg-body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(165deg, #e8f2f2 0%, #f7f5f0 45%, #eef4f1 100%);
  color: #1a2a2a;
}
.reg-season-year {
  color: #c62828;
  font-weight: 700;
}
.reg-header {
  background: #0d3d40;
  color: #f5f9f8;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.reg-header-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
}
.reg-header-user .btn {
  color: #f5f9f8;
  border-color: rgba(255,255,255,0.25);
}
.reg-family-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.reg-family-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(13, 61, 64, 0.1);
}
.reg-family-list li:last-child { border-bottom: 0; }
.reg-family-list .badge { margin: 0 0.4rem; }
.reg-family-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: flex-end;
}
.reg-inline-form {
  display: inline;
  margin: 0;
}
.reg-bagel-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.reg-bagel-form select {
  min-width: 10rem;
  margin: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.reg-view-dl {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) 1fr;
  gap: 0.35rem 1rem;
  margin: 0.75rem 0 0;
}
.reg-view-dl dt {
  margin: 0;
  font-weight: 600;
  color: #345;
}
.reg-view-dl dd {
  margin: 0;
}
.reg-view-form-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}
.reg-view-form-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(13, 61, 64, 0.1);
}
.reg-view-form-row:last-child { border-bottom: 0; }
.ef-form-readonly {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}
.ef-form-readonly .ef-dropzone,
.ef-form-readonly .ef-keep-file {
  display: none;
}
@media print {
  .no-print { display: none !important; }
  .reg-panel { break-inside: avoid; box-shadow: none; border: 0; }
}
.reg-brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.reg-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}
.reg-main:has(.reg-option-grid) {
  max-width: 860px;
}
.reg-brand a {
  color: inherit;
  text-decoration: none;
}
.reg-option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.reg-option-card {
  display: block;
  padding: 1.15rem 1.2rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(13, 61, 64, 0.12);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(13, 61, 64, 0.06);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.reg-option-card:hover,
.reg-option-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(13, 115, 119, 0.4);
  box-shadow: 0 6px 18px rgba(13, 115, 119, 0.12);
  outline: none;
  text-decoration: none;
  color: inherit;
}
.reg-option-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  line-height: 1.25;
  color: #0d3d40;
}
.reg-option-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #556;
}
@media (max-width: 640px) {
  .reg-option-grid {
    grid-template-columns: 1fr;
  }
}
.reg-footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  color: #6a7a78;
  font-size: 0.85rem;
}
.reg-panel h1 { margin-top: 0; }
.reg-panel .lede { font-size: 1.05rem; line-height: 1.45; color: #334; }
.reg-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.reg-step {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  color: #4a5a58;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(13, 61, 64, 0.12);
}
.reg-step.is-active {
  background: #0d7377;
  color: #fff;
  border-color: #0d7377;
}
.reg-resume { margin: 0 0 1rem; font-size: 0.85rem; }
.reg-form label {
  display: block;
  margin: 0.65rem 0 0.25rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.reg-form input,
.reg-form select,
.reg-form textarea {
  width: 100%;
  box-sizing: border-box;
}
.reg-span-2 { grid-column: 1 / -1; }
.reg-camper-card,
.reg-form-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(13, 61, 64, 0.1);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  scroll-margin-top: 1rem;
}
.reg-camper-card-head,
.reg-form-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.reg-camper-card-head h2,
.reg-form-card-head h2,
.reg-form-card-head h3 {
  margin: 0;
  font-size: 1.1rem;
}
.reg-section-title {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.15rem;
}
.reg-form-body {
  white-space: pre-wrap;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #334;
  margin: 0.5rem 0 1rem;
}
.photo-upload {
  margin: 0.75rem 0 0.25rem;
}
.photo-upload-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.photo-upload-preview {
  flex: 0 0 4.5rem;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 10px;
  border: 1px dashed rgba(13, 61, 64, 0.28);
  background:
    linear-gradient(180deg, rgba(13, 115, 119, 0.06), rgba(13, 61, 64, 0.04)),
    #f7faf9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-upload-preview.has-photo {
  border-style: solid;
  border-color: rgba(13, 61, 64, 0.16);
  background: #fff;
}
.photo-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-upload-controls {
  flex: 1;
  min-width: 0;
}
.photo-upload-input {
  max-width: 100%;
  font-size: 0.88rem;
}
.photo-upload-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
}
.photo-upload-remove {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.45rem 0 0;
  font-weight: 500;
  font-size: 0.88rem;
  cursor: pointer;
}
.photo-upload-remove input {
  width: auto;
  min-height: 0;
  margin: 0;
}
.reg-photo-thumb {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(13, 61, 64, 0.14);
  vertical-align: middle;
  margin: 0 0.5rem 0.35rem 0;
}
.reg-week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.5rem;
}
.reg-week-chip {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0;
  padding: 0.5rem 0.55rem;
  border: 1px solid rgba(13, 61, 64, 0.15);
  border-radius: 8px;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}
.reg-week-chip input { width: auto; margin-top: 0.15rem; }
.reg-week-chip span { display: flex; flex-direction: column; line-height: 1.2; }
.reg-week-chip small { font-weight: 500; color: #6a7a78; margin-top: 0.15rem; }

.enroll-dates {
  color: #4b3f8f;
  font-size: 1.2rem;
  margin: 0 0 1rem;
}
.enroll-tuition-wrap {
  overflow-x: auto;
  margin-bottom: 1rem;
}
.enroll-tuition {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.enroll-tuition th,
.enroll-tuition td {
  border: 1px solid rgba(13, 61, 64, 0.18);
  padding: 0.55rem 0.75rem;
  text-align: left;
}
.enroll-tuition th {
  background: rgba(13, 115, 119, 0.08);
  font-weight: 700;
}
.enroll-copy p {
  margin: 0 0 0.75rem;
  line-height: 1.45;
}
.enroll-week-dates {
  margin: 1rem 0 1.25rem;
}
.enroll-week-dates ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}
.enroll-week-dates li {
  margin: 0.2rem 0;
}
.enroll-alert {
  color: #c0392b;
  font-weight: 700;
  margin: 0 0 0.35rem;
}
.enroll-cert {
  margin: 0 0 1.25rem;
}
.enroll-camper {
  margin: 1.25rem 0 1.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(13, 61, 64, 0.12);
}
.enroll-camper-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}
.enroll-selection {
  margin: 0 0 0.85rem;
}
.enroll-option {
  margin-bottom: 0.75rem;
  border: 1px solid rgba(13, 61, 64, 0.16);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.enroll-option.is-selected {
  border-color: rgba(13, 115, 119, 0.45);
  box-shadow: 0 0 0 1px rgba(13, 115, 119, 0.2);
}
.enroll-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #fff;
}
.enroll-option-label {
  font-weight: 700;
  font-size: 1.05rem;
}
.enroll-add-btn {
  flex: 0 0 auto;
  background: #2f5aa8;
  border-color: #2f5aa8;
  color: #fff;
  white-space: nowrap;
}
.enroll-add-btn:hover {
  filter: brightness(1.05);
}
.enroll-option.is-selected .enroll-add-btn {
  background: #0d7377;
  border-color: #0d7377;
}
.enroll-option-body {
  padding: 0.75rem 1rem 1rem;
  background: #f3f5f7;
  border-top: 1px solid rgba(13, 61, 64, 0.1);
}
.enroll-option-choices {
  display: grid;
  gap: 0.45rem;
}
.enroll-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 500;
}
.enroll-choice input {
  width: auto;
  margin: 0.15rem 0 0;
}
.enroll-choice.is-checked,
.enroll-choice:has(input:checked) {
  border-color: rgba(47, 90, 168, 0.45);
  background: rgba(47, 90, 168, 0.06);
}
.enroll-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.25rem;
}
.enroll-actions .btn {
  background: #2f5aa8;
  border-color: #2f5aa8;
  min-width: 11rem;
}

.enroll-q-intro {
  margin: 0 0 1.25rem;
}
.enroll-q-intro p {
  margin: 0 0 0.55rem;
  line-height: 1.45;
}
.enroll-q-card {
  margin: 0 0 1.5rem;
  padding: 0;
  border: 1px solid rgba(13, 61, 64, 0.12);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  max-width: 100%;
}
.enroll-q-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  background: #5cb85c;
  color: #fff;
  min-width: 0;
}
.enroll-q-banner h1 {
  margin: 0;
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  color: inherit;
  font-weight: 700;
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: anywhere;
}
.enroll-q-avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.7);
  flex: 0 0 auto;
}
.enroll-q-body {
  padding: 1.1rem 1.1rem 1.25rem;
  max-width: 100%;
  min-width: 0;
}
.enroll-questions-form .enroll-q-body > h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}
.enroll-questions-form .enroll-q-body > h3 {
  margin: 1.25rem 0 0.55rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(13, 61, 64, 0.1);
  font-size: 1.05rem;
}
.enroll-questions-form .enroll-q-body > h3:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0.85rem;
}
.enroll-questions-form .enroll-q-body > label {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.enroll-questions-form .enroll-q-body > select,
.enroll-questions-form .enroll-q-body > textarea,
.enroll-questions-form .enroll-q-body > input,
.enroll-questions-form .enroll-q-body > .phone-input {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}
.enroll-questions-form .enroll-q-body > textarea {
  background: #f3f5f7;
  min-height: 6rem;
  resize: vertical;
}
.enroll-questions-form .enroll-q-body > .phone-input {
  margin-bottom: 0.35rem;
}
.enroll-questions-form .enroll-q-body .phone-input__local {
  min-width: 0;
}
.enroll-questions-panel,
.enroll-questions-form {
  max-width: 100%;
  overflow-x: hidden;
}

.enroll-forms-banner {
  margin: -0.25rem -0.25rem 1rem;
  border-radius: 10px;
}
.enroll-forms-intro {
  margin: 0 0 1.25rem;
}
.enroll-forms-intro p {
  margin: 0 0 0.55rem;
  line-height: 1.45;
}
.enroll-forms-section {
  margin: 0 0 1.5rem;
}
.enroll-forms-section-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}
.enroll-forms-camper-name {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.05rem;
}
.enroll-forms-card {
  margin: 0 0 1rem;
  border: 1px solid rgba(13, 61, 64, 0.12);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(13, 61, 64, 0.06);
}
.enroll-forms-card-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(13, 61, 64, 0.1);
  font-size: 1rem;
  background: #fafbfc;
}
.enroll-form-row {
  border-bottom: 1px solid rgba(13, 61, 64, 0.08);
  scroll-margin-top: 1rem;
}
.enroll-form-row:last-child {
  border-bottom: 0;
}
.enroll-form-main {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: inherit;
}
.enroll-form-main:hover {
  background: rgba(47, 90, 168, 0.04);
}
.enroll-form-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 6px;
  background: rgba(13, 61, 64, 0.08);
  font-weight: 700;
  color: #2f5aa8;
}
.enroll-form-row.is-past-due .enroll-form-icon {
  background: rgba(192, 57, 43, 0.12);
  color: #c0392b;
}
.enroll-form-copy {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
}
.enroll-form-title {
  color: #2f5aa8;
  font-weight: 650;
  line-height: 1.3;
}
.enroll-form-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.enroll-form-tag {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  background: #5a6570;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.enroll-form-tag.is-required {
  background: #c0392b;
}
.enroll-form-tag.is-ok {
  background: #0d7377;
}
.enroll-form-due {
  color: #6a7a78;
  font-size: 0.88rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.enroll-form-due.is-late {
  color: #c0392b;
  font-weight: 650;
}
.enroll-form-detail {
  padding: 0 1rem 1rem 3.6rem;
  background: #f7f8fa;
  border-top: 1px solid rgba(13, 61, 64, 0.08);
}
.enroll-form-row.is-open .enroll-form-main {
  background: rgba(47, 90, 168, 0.06);
}
@media (max-width: 640px) {
  .enroll-form-main {
    grid-template-columns: 2rem 1fr;
  }
  .enroll-form-due {
    grid-column: 2;
    white-space: normal;
  }
  .enroll-form-detail {
    padding-left: 1rem;
  }
}

/* Individual enrollment form pages */
.ef-page {
  max-width: 920px;
  margin: 0 auto 2rem;
}
.ef-chrome {
  background: #fff;
  border: 1px solid rgba(13, 61, 64, 0.12);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 1px 4px rgba(13, 61, 64, 0.06);
}
.ef-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.15rem;
  background: linear-gradient(90deg, #4cae4c 0%, #6cc06c 55%, #7ed07e 100%);
  color: #fff;
}
.ef-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 40%, #dfe4ea 0 38%, transparent 39%),
    radial-gradient(circle at 50% 88%, #dfe4ea 0 42%, transparent 43%),
    #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  flex: 0 0 auto;
}
.ef-banner-text {
  margin: 0;
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  line-height: 1.3;
}
.ef-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  padding: 1rem 1.25rem 0.35rem;
  flex-wrap: wrap;
}
.ef-step {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: #8a9492;
  min-width: 4.5rem;
  flex: 1 1 0;
}
.ef-step-num {
  font-size: 0.75rem;
  font-weight: 650;
}
.ef-step-dot {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  border: 2px solid #d5dbda;
  background: #fff;
  position: relative;
}
.ef-step.is-done .ef-step-num { color: #4cae4c; }
.ef-step.is-done .ef-step-dot {
  border-color: #4cae4c;
  background: #4cae4c;
}
.ef-step.is-done .ef-step-dot::after {
  content: '';
  position: absolute;
  left: 0.38rem;
  top: 0.22rem;
  width: 0.38rem;
  height: 0.7rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ef-step.is-active .ef-step-num,
.ef-step.is-active .ef-step-label {
  color: #2f5aa8;
  font-weight: 700;
}
.ef-step.is-active .ef-step-dot {
  border-color: #2f5aa8;
  background: #2f5aa8;
  box-shadow: inset 0 0 0 4px #fff;
}
.ef-step-label {
  font-size: 0.85rem;
  font-weight: 600;
}
.ef-step-line {
  flex: 1 1 1.5rem;
  height: 3px;
  background: #e1e6e5;
  margin: 0 0.15rem;
  margin-bottom: 1.15rem;
  align-self: center;
  min-width: 1rem;
}
.ef-step-line.is-done {
  background: #4cae4c;
}
.ef-chrome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0.65rem 1.15rem 1rem;
}
.ef-back {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  background: #4a5560;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ef-back:hover {
  background: #3a444c;
  color: #fff;
}
.ef-card {
  background: #fff;
  border: 1px solid rgba(13, 61, 64, 0.12);
  border-radius: 12px;
  padding: 1.25rem 1.35rem 1.4rem;
  box-shadow: 0 1px 4px rgba(13, 61, 64, 0.06);
}
.ef-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.15rem, 2.8vw, 1.4rem);
  color: #1f2a2e;
  line-height: 1.3;
}
.ef-complete {
  margin: 0 0 1rem;
}
.ef-doc {
  color: #333;
  line-height: 1.55;
  margin-bottom: 1.15rem;
}
.ef-doc h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}
.ef-doc p,
.ef-doc ul,
.ef-doc ol {
  margin: 0 0 0.85rem;
}
.ef-doc ul,
.ef-doc ol {
  padding-left: 1.25rem;
}
.ef-sub {
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: none;
}
.ef-section {
  margin: 1.35rem 0 0.75rem;
  font-size: 1.05rem;
}
.ef-alert {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 0.9rem;
  background: #2f5aa8;
  color: #fff;
  border-radius: 4px;
  line-height: 1.45;
}
.ef-form label {
  display: block;
  margin: 0.85rem 0 0.3rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: #333;
}
.ef-form input[type="text"],
.ef-form input[type="date"],
.ef-form input:not([type]),
.ef-form select,
.ef-form textarea {
  width: 100%;
  box-sizing: border-box;
  background: #f0f2f5;
  border: 1px solid #d7dde3;
  border-radius: 6px;
  min-height: 2.7rem;
  padding: 0.65rem 0.8rem;
}
.ef-form textarea {
  min-height: 5.5rem;
  resize: vertical;
}
.ef-form .req {
  color: #c0392b;
}
.ef-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.ef-mandatory {
  margin: 0;
  color: #555;
  font-size: 0.9rem;
}
.ef-mandatory .req {
  color: #c0392b;
}
.ef-submit {
  background: #8a99e3;
  border-color: #8a99e3;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  min-width: 7.5rem;
}
.ef-submit:hover {
  background: #7688d8;
  border-color: #7688d8;
  color: #fff;
}
.ef-download {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.35rem 0 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  background: #fff;
  color: #2f5aa8;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}
.ef-download:hover {
  background: #f7f9fc;
  color: #2f5aa8;
}
.ef-download-icon {
  font-size: 1.1rem;
}
.ef-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 9rem;
  margin: 0.75rem 0;
  border: 2px dashed #b8c0c7;
  border-radius: 8px;
  background: #fafbfc;
  cursor: pointer;
  text-align: center;
  padding: 1.25rem;
}
.ef-dropzone:hover,
.ef-dropzone.has-file {
  border-color: #2f5aa8;
  background: #f3f7fd;
}
.ef-dropzone-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.ef-dropzone {
  position: relative;
}
.ef-dropzone-text {
  color: #5a6570;
  font-weight: 650;
}
.ef-uploaded {
  margin: 0.35rem 0 0.5rem;
}
.ef-keep-file {
  display: flex !important;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500 !important;
}
.ef-keep-file input {
  width: auto;
  min-height: 0;
}
.ef-transport-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0 0.5rem;
}
.ef-transport-card {
  border: 1px solid #d5dbe0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.ef-transport-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  background: #4a5560;
  color: #fff;
  font-weight: 700;
}
.ef-transport-body {
  padding: 0.85rem;
}
.ef-transport-body label {
  margin-top: 0;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 700px) {
  .ef-stepper {
    gap: 0.15rem;
  }
  .ef-step-line {
    display: none;
  }
  .ef-transport-grid {
    grid-template-columns: 1fr;
  }
}

.address-mode-row {
  margin: 0 0 0.75rem;
}
.address-mode-row .btn {
  text-transform: none;
}

.reg-honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
  pointer-events: none;
}
.apply-main {
  max-width: 780px;
}
.apply-copy p {
  line-height: 1.45;
  margin: 0 0 0.85rem;
}
.apply-alert {
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  background: rgba(196, 92, 38, 0.1);
  border: 1px solid rgba(196, 92, 38, 0.25);
}
.apply-form h2 {
  margin: 1.5rem 0 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(13, 61, 64, 0.12);
}
.apply-form h3 {
  margin: 1.1rem 0 0.5rem;
  font-size: 1.05rem;
}
.apply-add-parent2 {
  margin-top: 0.35rem;
}
.apply-parent2 {
  margin-top: 0.25rem;
}
.apply-camper + .apply-camper {
  margin-top: 0.5rem;
  padding-top: 0.25rem;
}
.reg-camper-card[id^="camper-"] {
  scroll-margin-top: 5.5rem;
}
.phone-input {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 2.85rem;
  margin-bottom: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box;
}
.phone-input:focus-within {
  outline: 2px solid rgba(13, 115, 119, 0.35);
  outline-offset: 1px;
}
.phone-input.is-open {
  z-index: 30;
}
.phone-input__dial {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
  margin: 0;
  padding: 0 0.7rem;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 12px 0 0 12px;
  background: rgba(13, 61, 64, 0.04);
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.phone-input__dial:hover {
  background: rgba(13, 115, 119, 0.1);
}
.phone-input__flag {
  font-size: 1.05rem;
  line-height: 1;
}
.phone-input__code {
  letter-spacing: 0.01em;
}
.phone-input__caret {
  font-size: 0.7rem;
  opacity: 0.65;
}
.phone-input__local {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  min-height: 2.85rem !important;
  margin: 0 !important;
  padding: 0.7rem 0.85rem !important;
  border: 0 !important;
  border-radius: 0 12px 12px 0 !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}
.phone-input__menu {
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  z-index: 40;
  width: min(100%, 19rem);
  max-height: 16rem;
  overflow: auto;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(13, 61, 64, 0.14);
}
.phone-input__menu li {
  margin: 0;
}
.phone-input__option {
  display: grid;
  grid-template-columns: 1.4rem 1fr auto;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.8rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.phone-input__option:hover,
.phone-input__option[aria-selected="true"] {
  background: rgba(13, 115, 119, 0.1);
}
.phone-input__option-flag {
  font-size: 1.05rem;
  line-height: 1;
}
.phone-input__option-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.phone-input__option-code {
  color: rgba(13, 61, 64, 0.7);
  font-weight: 600;
}
.apply-robot {
  margin: 1.25rem 0 1rem !important;
}
.apply-captcha {
  margin: 1.35rem 0 1.1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(13, 61, 64, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
}
.apply-captcha-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.45rem 0 0.65rem;
}
.apply-captcha-image {
  display: block;
  border: 1px solid rgba(13, 61, 64, 0.18);
  border-radius: 6px;
  background: #f4f7f6;
}
.apply-captcha input {
  max-width: 14rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
@media (max-width: 560px) {
  .reg-stepper { flex-direction: column; }
  .reg-camper-card-head { flex-wrap: wrap; }
}

/* Printable blank health / immunization forms */
.print-form-body {
  margin: 0;
  background: #e8eaed;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  line-height: 1.35;
}
.print-form-toolbar {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  padding: 0.85rem;
  background: #fff;
  border-bottom: 1px solid #ccc;
  position: sticky;
  top: 0;
  z-index: 5;
}
.print-form {
  max-width: 8.5in;
  margin: 0.75rem auto 1.5rem;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.pf-page {
  padding: 0.45in 0.5in;
  box-sizing: border-box;
}
.pf-header {
  margin-bottom: 0.45rem;
}
.pf-header-brand {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.pf-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.5rem;
}
.pf-star {
  color: #1f4e9a;
  font-size: 1.6rem;
  line-height: 1;
}
.pf-brand-text {
  color: #2e7d32;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.pf-header-main {
  flex: 1;
}
.pf-header-main h1,
.pf-header-center h1 {
  margin: 0;
  font-size: 1.15rem;
  text-align: center;
}
.pf-header-center h2 {
  margin: 0.15rem 0 0.55rem;
  font-size: 1rem;
  text-align: center;
  font-weight: 700;
}
.pf-header-sub {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-top: 0.2rem;
}
.pf-page-num {
  margin-left: auto;
  font-weight: 700;
}
.pf-box {
  border: 1.5px solid #111;
  padding: 0.4rem 0.5rem;
  margin: 0 0 0.4rem;
}
.pf-section-title {
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 0 0 0.35rem;
  font-size: 0.86rem;
}
.pf-note {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
}
.pf-row {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  margin: 0.2rem 0;
}
.pf-wrap {
  flex-wrap: wrap;
}
.pf-field {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
}
.pf-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.pf-three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
}
.pf-stack {
  display: grid;
  gap: 0.28rem;
}
.pf-tight {
  gap: 0.18rem;
}
.pf-indent {
  margin: 0.25rem 0 0 1.1rem;
}
.pf-cb {
  display: inline-block;
  width: 0.72rem;
  height: 0.72rem;
  border: 1.25px solid #111;
  vertical-align: -0.1rem;
  margin-right: 0.15rem;
  background: #fff;
}
.pf-cb-label {
  margin-right: 0.45rem;
}
.pf-line,
.pf-filled {
  display: inline-block;
  border-bottom: 1px solid #111;
  min-height: 1em;
  padding: 0 0.15rem 0.05rem;
  vertical-align: bottom;
}
.pf-filled {
  font-weight: 650;
}
.pf-block {
  display: block;
  width: 100%;
  min-height: 1.05rem;
  margin: 0.2rem 0;
}
.pf-lines {
  margin-top: 0.2rem;
}
.pf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.pf-table th,
.pf-table td {
  border: 1px solid #111;
  padding: 0.2rem 0.28rem;
  vertical-align: middle;
}
.pf-table th {
  background: #f3f3f3;
  font-weight: 700;
}
.pf-center {
  text-align: center;
}
.pf-stamp {
  margin-top: 0.55rem;
  min-height: 3.5rem;
  border: 1px dashed #666;
  padding: 0.35rem;
  font-weight: 700;
}
.pf-dash {
  border: 0;
  border-top: 1px dashed #666;
  margin: 0.5rem 0;
}
.pf-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.45rem;
  font-size: 0.72rem;
}
.pf-turn {
  font-weight: 700;
}
.pf-muted,
.pf-hint {
  color: #555;
  font-size: 0.78rem;
}
.pf-id-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.55rem;
  font-size: 0.86rem;
}
.pf-vax-list,
.pf-vax {
  margin: 0 0 0.4rem;
}
.pf-vax-head {
  margin-bottom: 0.15rem;
}
.pf-diamond {
  color: #111;
  font-size: 0.7rem;
}
.pf-vax-dates,
.pf-vax-sub {
  margin: 0.15rem 0 0.25rem 0.9rem;
}
.pf-dose {
  display: inline-block;
  margin: 0 0.55rem 0.2rem 0;
  white-space: nowrap;
}
.pf-date-slot {
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: 0.02em;
}
@media (max-width: 800px) {
  .pf-two-col,
  .pf-three-col,
  .pf-id-grid {
    grid-template-columns: 1fr;
  }
  .print-form {
    margin: 0;
    box-shadow: none;
  }
}
@media print {
  .no-print,
  .print-form-toolbar {
    display: none !important;
  }
  .print-form-body {
    background: #fff;
  }
  .print-form {
    max-width: none;
    margin: 0;
    box-shadow: none;
  }
  .pf-page {
    padding: 0;
  }
  .pf-page-break {
    break-before: page;
    page-break-before: always;
  }
  .pf-table th {
    background: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Begin staff application */
.staff-begin-body {
  margin: 0;
  min-height: 100vh;
  background: #e9ecef;
  color: #222;
  font-family: Arial, Helvetica, sans-serif;
}
.staff-begin {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
  display: grid;
  gap: 0.85rem;
}
.staff-begin-card {
  background: #fff;
  border: 1px solid #d5dbe0;
  border-radius: 4px;
  padding: 1.35rem 1.4rem 1.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.staff-begin-card h1 {
  margin: 0 0 0.85rem;
  text-align: center;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  line-height: 1.25;
  color: #1f2a2e;
}
.staff-begin-blue {
  color: #2f5aa8;
  margin: 0 0 0.65rem;
  line-height: 1.45;
}
.staff-begin-card p {
  margin: 0 0 0.65rem;
  line-height: 1.45;
}
.staff-begin-card a {
  color: #2f5aa8;
}
.staff-begin-mandatory {
  margin-top: 0.85rem !important;
  margin-bottom: 0 !important;
}
.staff-begin-mandatory .req,
.staff-begin-form .req {
  color: #c0392b;
}
.staff-begin-form label {
  display: block;
  margin: 0.75rem 0 0.3rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.staff-begin-form input[type="text"],
.staff-begin-form input[type="email"],
.staff-begin-form input[type="password"],
.staff-begin-form input[type="tel"],
.staff-begin-form .phone-input__local {
  width: 100%;
  box-sizing: border-box;
  background: #f0f2f5;
  border: 1px solid #d7dde3;
  border-radius: 6px;
  min-height: 2.7rem;
  padding: 0.65rem 0.8rem;
}
.staff-begin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.staff-begin-password {
  position: relative;
}
.staff-begin-password input {
  padding-right: 3.4rem;
}
.staff-begin-eye {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #667;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.35rem 0.45rem;
}
.staff-begin-submit {
  margin-top: 1.1rem;
  background: #8a99e3;
  border-color: #8a99e3;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.staff-begin-submit:hover {
  background: #7688d8;
  border-color: #7688d8;
  color: #fff;
}
.staff-begin-signin {
  text-align: center;
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
}
.staff-begin-signin p {
  margin: 0;
}
@media (max-width: 640px) {
  .staff-begin-grid {
    grid-template-columns: 1fr;
  }
}

/* Staff application / profile process (10 steps) */
.staff-process-body {
  margin: 0;
  min-height: 100vh;
  background: #e8eaed;
  color: #222;
  font-family: Arial, Helvetica, sans-serif;
}
.staff-process-top {
  background: #2f6fed;
  color: #fff;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.staff-process-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.staff-process-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #cfd8e3 center/cover no-repeat;
  border: 2px solid rgba(255,255,255,0.55);
  flex-shrink: 0;
}
.staff-process-name {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
}
.staff-process-sub {
  font-size: 0.92rem;
  opacity: 0.92;
}
.staff-process-top-actions .btn {
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.staff-process-flash {
  margin: 0.75rem 1rem 0;
}
.staff-process-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 1rem;
  padding: 1rem;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}
.staff-process-nav {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 0.85rem 0.5rem 0.85rem 0.35rem;
}
.staff-process-nav-title {
  margin: 0 0.65rem 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.staff-process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.staff-process-step a {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  text-decoration: none;
  color: #6b7280;
}
.staff-process-step.is-current a {
  background: #f1f3f5;
  color: #1f2937;
}
.staff-process-step.is-done a {
  color: #374151;
}
.staff-process-step-icon {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: #c5cad3;
  color: #fff;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.staff-process-step.is-current .staff-process-step-icon {
  background: #2f6fed;
  box-shadow: 0 0 0 3px rgba(47,111,237,0.2);
}
.staff-process-step.is-done .staff-process-step-icon {
  background: #2f6fed;
}
.staff-process-step-num {
  display: block;
  font-size: 0.78rem;
  line-height: 1.2;
}
.staff-process-step-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
}
.staff-process-main {
  min-width: 0;
}
.staff-process-tools {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
}
.staff-process-tools a {
  color: #2f6fed;
}
.staff-process-heading {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f2937;
}
.staff-process-heading span {
  color: #2f6fed;
}
.staff-process-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  padding: 1.1rem 1.15rem 1.25rem;
}
.staff-photo-card {
  padding: 0;
  overflow: hidden;
}
.staff-photo-banner {
  position: relative;
  height: 170px;
  background: linear-gradient(180deg, #2f6fed 0 48%, #fff 48% 100%);
  margin-bottom: 0.5rem;
}
.staff-photo-banner-name {
  position: absolute;
  left: 1.1rem;
  top: 1rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
}
.staff-photo-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -35%);
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: #9aa3af center/cover no-repeat;
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.staff-photo-form {
  padding: 1.5rem 1.15rem 1.25rem;
  display: grid;
  gap: 1rem;
  justify-items: center;
}
.staff-photo-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #4b5563;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.85rem 1.35rem;
  border-radius: 4px;
  cursor: pointer;
}
.staff-photo-upload-btn input {
  display: none;
}
.staff-process-form {
  display: grid;
  gap: 0.85rem;
}
.staff-process-form textarea {
  width: 100%;
  min-height: 6rem;
}
.staff-process-fieldset {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.75rem 0.85rem 0.95rem;
  margin: 0 0 0.65rem;
}
.staff-process-fieldset legend {
  padding: 0 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
}
.staff-process-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
  width: 100%;
}
.staff-process-continue {
  background: #6b5bb8;
  border-color: #6b5bb8;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.staff-process-continue:hover {
  background: #5a4aa3;
  border-color: #5a4aa3;
  color: #fff;
}
.staff-basic-form {
  display: grid;
  gap: 1rem;
}
.staff-basic-section {
  margin: 0;
}
.staff-basic-h {
  margin: 0 0 0.55rem;
  color: #1e3a8a;
  font-size: 1.15rem;
  font-weight: 700;
}
.staff-basic-hint {
  margin: 0 0 0.85rem;
  color: #4b5563;
  font-size: 0.92rem;
}
.staff-pos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}
.staff-pos-card {
  display: block;
  background: #fff;
  border: 1px solid #d8dee6;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  padding: 0.85rem 0.95rem;
  cursor: pointer;
}
.staff-pos-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}
.staff-pos-title {
  font-weight: 700;
  color: #111827;
}
.staff-pos-blurb {
  display: block;
  color: #4b5563;
  font-size: 0.88rem;
  line-height: 1.35;
}
.staff-basic-two {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}
.staff-basic-fields {
  display: grid;
  gap: 0.75rem;
}
.staff-basic-fields label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #1f2937;
}
.staff-basic-fields .req {
  color: #c62828;
}
.staff-basic-fields input,
.staff-basic-fields select {
  width: 100%;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 0.55rem 0.65rem;
}
.staff-ssn-wrap {
  position: relative;
}
.staff-ssn-wrap input {
  padding-right: 2.4rem;
}
.staff-ssn-eye {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.staff-address-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}
.staff-address-head .staff-basic-h {
  margin: 0;
}
.staff-address-toggle {
  display: inline-flex;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}
.staff-address-toggle label {
  margin: 0;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #4b5563;
  cursor: pointer;
}
.staff-address-toggle label.is-on {
  background: #1e3a8a;
  color: #fff;
}
.staff-address-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.staff-address-note {
  background: #eef1f4;
  color: #4b5563;
  border-radius: 4px;
  padding: 0.55rem 0.75rem;
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
}
.staff-city-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.7fr;
  gap: 0.65rem;
}
.staff-span-all {
  grid-column: 1 / -1;
}
.staff-basic-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.staff-mandatory-legend {
  margin: 0;
  font-weight: 700;
}
.staff-mandatory-legend .req {
  color: #c62828;
}
@media (max-width: 860px) {
  .staff-basic-two,
  .staff-city-row {
    grid-template-columns: 1fr;
  }
}

.staff-process-dl {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.45rem 0.85rem;
  margin: 0;
}
.staff-process-dl dt {
  font-weight: 700;
  color: #4b5563;
}
.staff-process-dl dd {
  margin: 0;
}
.staff-process-list {
  margin: 0;
  padding-left: 1.15rem;
}
.staff-process-empty,
.staff-process-note {
  margin: 0.75rem 0 0;
}
.staff-edu-form {
  display: grid;
  gap: 1rem;
}
.staff-school-card {
  position: relative;
}
.staff-school-remove {
  margin-top: 0.75rem;
}
.staff-add-school {
  justify-self: start;
  background: #4b5563;
  border-color: #4b5563;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.staff-add-school:hover {
  background: #374151;
  border-color: #374151;
  color: #fff;
}
.staff-cert-form {
  display: grid;
  gap: 1rem;
}
.staff-cert-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: start;
}
.staff-cert-add-btn {
  margin-top: 0.85rem;
  width: 100%;
  background: #2f6fed;
  border-color: #2f6fed;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.staff-cert-add-btn:hover {
  background: #255dcb;
  border-color: #255dcb;
  color: #fff;
}
.staff-cert-list {
  display: grid;
  gap: 0.65rem;
  min-height: 4rem;
}
.staff-cert-empty {
  margin: 0;
  background: #eef1f4;
  color: #6b7280;
  border-radius: 4px;
  padding: 0.85rem 1rem;
  text-align: center;
}
.staff-cert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
}
.staff-cert-item-copy {
  display: grid;
  gap: 0.15rem;
}
.staff-ref-intro {
  color: #1e3a8a;
  font-weight: 600;
  line-height: 1.45;
}
.staff-ref-intro p {
  margin: 0 0 0.65rem;
}
.staff-ref-intro p:last-child {
  margin-bottom: 0;
}
.staff-form-back {
  margin: 0 0 0.75rem;
}
.staff-form-back a {
  color: #4b5563;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.staff-form-page-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.staff-form-section-title {
  margin: 0 0 0.85rem;
  color: #5b4bb0;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.staff-forms-list-card {
  padding: 0.85rem 1rem 0.35rem;
}
.staff-terms-scroll {
  max-height: 280px;
  overflow: auto;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #f9fafb;
  padding: 0.9rem 1rem;
  line-height: 1.45;
  margin-bottom: 1rem;
}
.staff-terms-scroll p {
  margin: 0 0 0.75rem;
}
.staff-terms-scroll p:last-child {
  margin-bottom: 0;
}
.staff-terms-check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}
@media (max-width: 860px) {
  .staff-cert-layout {
    grid-template-columns: 1fr;
  }
}
.staff-basic-fields textarea {
  width: 100%;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 0.55rem 0.65rem;
  resize: vertical;
}
@media (max-width: 860px) {
  .staff-process-shell {
    grid-template-columns: 1fr;
  }
}


