/* Staff admissions and reports; kept separate from the shared application styles. */
.manual-lead-button { margin-top: 1.25rem; width: 100%; }
.lead-admission-form { padding: 1.25rem; display: grid; gap: .65rem; }
.lead-admission-form h2, .lead-admission-form p { margin: 0; }
.lead-admission-form > label { display: grid; gap: .25rem; margin: 0; }
.lead-admission-form input, .lead-admission-form select { width: 100%; min-width: 0; font-size: 16px; }
.lead-admission-form input:disabled { color: #858b87; background: #1a211c; border-color: #343b36; opacity: .65; cursor: not-allowed; }
.lead-admission-actions, .report-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.lead-admission-actions button { flex: 1 1 140px; }
.report-event-card { cursor: pointer; }
.dashboard-event-info[role="button"]:focus-visible { outline: 2px solid #9be7ad; outline-offset: 4px; border-radius: 8px; }
.admission-report { display: grid; gap: .85rem; width: 100%; min-width: 0; }
.admission-report h2, .admission-report h3, .admission-report p { margin: 0; }
.report-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(125px,1fr)); gap: .5rem; }
.report-total, .report-types, .report-attendee { padding: .8rem; border: 1px solid #304c36; border-radius: 14px; background: linear-gradient(135deg,rgba(115,221,139,.06),rgba(13,18,14,.8)); }
.report-total { display: grid; gap: .25rem; }
.report-total span, .report-attendee span { color: #aeb9b0; font-size: .875rem; }
.report-total strong { font-size: 1.2rem; }
.report-breakdown { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: .5rem; }
.report-types p { margin-top: .2rem; }
.report-attendees { display: grid; gap: .5rem; }
.report-attendee { display: grid; gap: .25rem; overflow-wrap: anywhere; }

.lead-name-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
.lead-name-row > label { display: grid; gap: .25rem; margin: 0; min-width: 0; }

.lead-admission-form hr { width:100%; border:0; border-top:1px solid #385640; margin: .8rem 0 .15rem; }
.lead-management-card { width:100%; display:grid; gap:.35rem; text-align:left; color:inherit; overflow-wrap:anywhere; }
.lead-management-card span { color:#aeb9b0; font-size:.875rem; }

/* Members tab: Instagram changes waiting for review */
.staff-instagram-changes { display: grid; gap: 10px; margin-bottom: 14px; padding: 14px; border: 1px solid #4a3d1c; border-radius: 12px; background: #17130a; }
.staff-instagram-changes h3 { margin: 0; font-size: 15px; }
.staff-instagram-change { display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid #2a2414; }
.staff-instagram-change p { margin: 0; overflow-wrap: anywhere; }
.staff-instagram-change-names a { color: #e9c46a; }
.staff-instagram-change-actions { display: flex; gap: 8px; margin-top: 6px; }
.staff-instagram-change-actions button { width: auto; min-height: 36px; padding: 6px 16px; }

/* Tap to enlarge (staff-photo-viewer.js): an applicant's or member's photo full screen, with pinch,
   double-tap or wheel zoom, arrows between their photos, and ✕ / Escape / a tap outside to close. */
.application-detail-photos img:not([src*="member-placeholder"]) { cursor: zoom-in; }
.staff-photo-viewer { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(5, 7, 10, .94); animation: staff-photo-in .18s ease-out; }
.staff-photo-stage { position: absolute; inset: 56px 12px 56px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.staff-photo-image { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; transform-origin: center; touch-action: none; user-select: none; -webkit-user-select: none; cursor: zoom-in; transition: transform .12s ease-out; }
.staff-photo-caption { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; font-size: 14px; color: #c9d1dc; pointer-events: none; }
.staff-photo-close, .staff-photo-arrow { position: absolute; width: 44px; height: 44px; min-height: 0; padding: 0; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; background: rgba(20, 24, 31, .85); color: #fff; font-size: 22px; line-height: 1; display: grid; place-items: center; cursor: pointer; }
.staff-photo-close { top: 10px; right: 12px; font-size: 18px; }
.staff-photo-arrow { top: 50%; transform: translateY(-50%); font-size: 28px; }
.staff-photo-arrow.is-prev { left: 12px; }
.staff-photo-arrow.is-next { right: 12px; }
body.staff-photo-open { overflow: hidden; }
@keyframes staff-photo-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .staff-photo-viewer { animation: none; } .staff-photo-image { transition: none; } }
/* Staff Engagement and Joins tables: every column heading explains itself when tapped, and in list tables offers
   to sort by it (staff-metrics.js headCell, listTable). */
.staff-batch-col { cursor: pointer; text-decoration: underline dotted #5b6b64; text-underline-offset: 4px; }
.staff-batch-col:hover { color: #e6edf3; }
.staff-batch-col:focus-visible { outline: 2px solid #96b7e3; outline-offset: 2px; }
.staff-batch-help-sorts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.staff-batch-help-sorts .secondary-button { flex: 1 1 0; }
/* Every group at once (staff.js): the Member portal button where the group picker was, the group after each
   name in purple, the pill row of groups on Events, Activity, Insights and Chat, the logo's group dropdown, and
   the end of a list loading the next 50. */
.staff-member-portal-button { display: inline-flex; align-items: center; width: auto; min-height: 36px; padding: 7px 14px; margin: 0; color: inherit; font-size: 14px; text-decoration: none; white-space: nowrap; }
.staff-member-portal-button.hidden { display: none; }
.staff-result-group { font-weight: 600; color: #b78cf5; }
.staff-result-group-bullet { color: #7b8492; }
.application-detail h2 .staff-result-group { font-size: .7em; }
.staff-group-pills { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.staff-group-pills::-webkit-scrollbar { display: none; }
.staff-group-pills.hidden { display: none; }
.staff-group-pill { flex: none; margin: 0; padding: 7px 14px; border: 1px solid #3a3f48; border-radius: 999px; background: #15181d; color: #d7dbe1; font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.staff-group-pill.is-active { border-color: #b78cf5; background: #2a1f3d; color: #e7dafd; }
.staff-org-logo-group { margin-left: auto; flex: 0 1 184px; min-width: 0; max-width: 184px; min-height: 38px; padding: 7px 32px 7px 10px; border: 1px solid #363636; border-radius: 9px; background-color: #111; color: #f5f5f5; font-size: .9rem; font-weight: 650; }
.staff-list-more { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 0 8px; color: #8b95a3; font-size: 14px; }
.staff-list-more.hidden { display: none; }
.staff-list-more .secondary-button { width: auto; }
.staff-list-spinner { width: 18px; height: 18px; border: 2px solid #3a3f48; border-top-color: #b78cf5; border-radius: 50%; animation: staff-list-spin .8s linear infinite; }
@keyframes staff-list-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .staff-list-spinner { animation-duration: 2.4s; } }
/* The Member portal button sits at the right, next to the ☰ (the menu panel still opens under the ☰). */
.staff-menu { display: flex; align-items: center; gap: 8px; }
.staff-menu .staff-member-portal-button { min-height: 42px; }
/* In the iPhone app the page runs under the status bar (Jay, October 30, 2026: the ☰ and Member portal couldn't be
   tapped there). viewport-fit=cover on the page lets env() report the inset; the dashboard already pads by it
   (app.css), and the sign-in screen does here. */
body:not(.staff-dashboard-active) { padding-top: env(safe-area-inset-top); }

/* The vetting review queue (staff Unverified tab): a bigger face photo, Instagram, Verify and Not vetted on each row. */
.staff-vetting-modes { display: flex; gap: 8px; margin: 0 0 12px; }
.staff-vetting-card { align-items: flex-start; }
/* Asked to be verified from Verify my Account: listed first, with a gold edge and a line saying when. */
.staff-vetting-card.is-requested { border-color: #c9a227; box-shadow: inset 4px 0 0 #c9a227; }
.staff-vetting-request { display: block; margin-top: 4px; font-weight: 700; color: #8a6d00; font-size: 0.9rem; }
/* A booked FaceTime call to verify (migration 216): when, and the number to tap and call. */
.staff-vetting-call { display: grid; gap: 2px; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: #e8f1ff; border: 1px solid #9fc0ef; }
.staff-vetting-call-when { font-weight: 700; color: #1d3f73; font-size: 0.92rem; }
.staff-vetting-call-phone { color: #1f5fbf; font-weight: 700; font-size: 1.05rem; text-decoration: none; white-space: nowrap; }
.staff-vetting-card.has-call { box-shadow: inset 4px 0 0 #4a86d8; }
.staff-vetting-photo { flex-basis: 88px; width: 88px; height: 88px; cursor: pointer; }
.staff-vetting-name { padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font-weight: 700; }
.staff-vetting-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.staff-vetting-actions .primary-button, .staff-vetting-actions .secondary-button { min-height: 38px; padding: 8px 14px; font-size: 0.9rem; }
.staff-vetting-ig { text-decoration: none; }
.staff-vetting-no-ig { color: #f0a868; font-size: 0.85rem; }
.staff-vetting-not { border-color: rgba(255,107,107,.6); color: #ffb3b3; }
.staff-vetting-card .staff-vetting-meta { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }

/* A member's verification status on the staff Members list (Jay, October 20, 2026; verificationPill in staff.js). */
.staff-verify-pill { align-self:flex-start; display:inline-block; margin-top:4px; padding:2px 9px; border:1px solid; border-radius:999px; font-size:12px; font-weight:700; line-height:1.5; }
.staff-verify-pill.is-verified { border-color:#3fb27f; background:rgba(63,178,127,.14); color:#a8ecc9; }
.staff-verify-pill.is-pending { border-color:#d9a441; background:rgba(217,164,65,.14); color:#f3d58f; }
.staff-verify-pill.is-not-verified { border-color:#d9534f; background:rgba(217,83,79,.12); color:#f4b0ad; }
/* Photos attached to member feedback (up to 6), small tiles that open full screen. */
.staff-feedback-photos { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.staff-feedback-photos img { aspect-ratio: 1; object-fit: cover; height: auto; border-radius: 8px; }

/* Report to NCMEC (staff-feedback.js ncmecBox): a quiet box on takedown and profile report cards. */
.staff-ncmec { margin-top: 12px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; }
.staff-ncmec.is-reported { border-color: rgba(76,195,138,.5); background: rgba(76,195,138,.07); }
.staff-ncmec-details > summary { cursor: pointer; font-weight: 600; }
.staff-ncmec-link { display: inline-block; margin: 4px 0 8px; }
.staff-ncmec-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.staff-ncmec-form input { flex: 1 1 200px; min-height: 40px; }
