/* SchoolDay v270.63: Clubs Overview, and a club's Location in Manage Clubs. */

/* ------------------------------------------------ Manage Clubs > Location */
#tab-clubs .clubs-place-v27063 { margin-top: .9rem; }
#tab-clubs .clubs-place-find-v27063 { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; margin: .4rem 0 .6rem; }
#tab-clubs .clubs-place-find-v27063 input { width: min(100%, 12rem); text-transform: uppercase; }
#tab-clubs .clubs-place-map-v27063 { height: 300px; border: 1px solid var(--club-line, #d9e1ea); border-radius: .6rem; overflow: hidden; background: #f1f5f9; }
#tab-clubs .clubs-place-map-v27063.is-missing { display: flex; align-items: center; justify-content: center; padding: 1rem; height: auto; min-height: 5rem; color: #64748b; text-align: center; }
#tab-clubs .clubs-status-v2690.is-error, #tab-clubs-overview .is-error { color: #b91c1c; }

/* ------------------------------------------------ the pin (both maps) */
.clubs-pin-wrap-v27063 { background: none; border: 0; }
.clubs-pin-v27063 {
  position: relative; display: block; width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--pin, #7c3aed); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(15, 23, 42, .35);
}
/* v270.64: the number present, inside the pin's head. */
.clubs-pin-words-v27063 {
  position: absolute; /*c27253*/top: 0; /*c27253*/right: 0; /*c27253*/bottom: 0; /*c27253*/left: 0; inset: 0; display: flex; align-items: center; justify-content: center; transform: rotate(45deg);
  color: var(--pin-ink, #fff); font: 800 14px/1 system-ui, sans-serif;
}
/* v270.64: glowing while anybody is there. */
.clubs-pin-v27063.is-glowing { box-shadow: 0 0 0 3px #fff, 0 0 14px 4px var(--pin, #7c3aed); animation: clubs-glow-v27064 1.8s ease-in-out infinite alternate; }
@keyframes clubs-glow-v27064 { from { filter: drop-shadow(0 0 2px var(--pin, #7c3aed)); } to { filter: drop-shadow(0 0 9px var(--pin, #7c3aed)); } }
@media (prefers-reduced-motion: reduce) { .clubs-pin-v27063.is-glowing, #tab-clubs-overview .clubs-ov-jumpbtn-v27064.is-here { animation: none; } }

/* ------------------------------------------------ the page */
#tab-clubs-overview { position: relative; }
#tab-clubs-overview .clubs-ov-head-v27063 { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem; margin-bottom: .4rem; }
#tab-clubs-overview .clubs-ov-views-v27063 { display: flex; gap: .3rem; justify-self: start; }
#tab-clubs-overview .clubs-ov-views-v27063 [aria-pressed="true"] { background: #1e293b; color: #fff; border-color: #1e293b; }
#tab-clubs-overview .clubs-ov-day-v27063 { display: flex; align-items: center; gap: .5rem; justify-self: center; }
#tab-clubs-overview .clubs-ov-day-v27063 > button { font-size: 1.4rem; line-height: 1; padding: .3rem .8rem; }
#tab-clubs-overview .clubs-ov-date-v27063 { display: grid; text-align: center; min-width: 15rem; }
#tab-clubs-overview .clubs-ov-date-v27063 strong { font-size: 1.2rem; }
#tab-clubs-overview .clubs-ov-pick-v27063 { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; justify-self: end; }
#tab-clubs-overview .clubs-ov-pick-v27063 label { display: flex; gap: .4rem; align-items: center; white-space: nowrap; }
@media (max-width: 760px) {
  #tab-clubs-overview .clubs-ov-head-v27063 { grid-template-columns: 1fr; }
  #tab-clubs-overview .clubs-ov-views-v27063, #tab-clubs-overview .clubs-ov-day-v27063, #tab-clubs-overview .clubs-ov-pick-v27063 { justify-self: center; }
  #tab-clubs-overview .clubs-ov-date-v27063 { min-width: 0; }
}
#tab-clubs-overview .clubs-ov-key-v27063 { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.1rem; margin: .3rem 0; color: #475569; font-size: .9rem; }
#tab-clubs-overview .clubs-ov-key-v27063 span { display: inline-flex; align-items: center; gap: .35rem; }
#tab-clubs-overview .clubs-ov-key-v27063 i { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; background: #9ca3af; }
#tab-clubs-overview .clubs-ov-key-v27063 i.is-a { box-shadow: inset 0 0 0 2px #b91c1c; }
#tab-clubs-overview .clubs-ov-key-v27063 i.is-p { background: #16a34a; }
#tab-clubs-overview .clubs-ov-key-v27063 i.is-o { background: #1e3a8a; }
#tab-clubs-overview .clubs-ov-say-v27063 { text-align: center; color: #64748b; font-size: .85rem; min-height: 1.2em; margin: 0 0 .6rem; }

#tab-clubs-overview .clubs-ov-grid-v27063 { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .9rem; align-items: start; }
#tab-clubs-overview .clubs-ov-card-v27063 {
  border: 1px solid var(--club, #7c3aed); border-radius: .8rem; overflow: hidden; background: var(--club-tint, rgba(124, 58, 237, .08));
}
#tab-clubs-overview .clubs-ov-card-v27063.is-quiet { opacity: .75; }
#tab-clubs-overview .clubs-ov-card-head-v27063 { background: var(--club, #7c3aed); color: var(--club-ink, #fff); padding: .55rem .8rem; display: flex; align-items: flex-start; gap: .5rem; }
#tab-clubs-overview .clubs-ov-head-words-v27065 { flex: 1 1 auto; min-width: 0; }
#tab-clubs-overview .clubs-ov-card-head-v27063 h3 { margin: 0; font-size: 1.05rem; color: inherit; }
#tab-clubs-overview .clubs-ov-card-head-v27063 p { margin: .1rem 0 0; font-size: .82rem; opacity: .9; }
/* v270.65: Register, top right of the header. */
#tab-clubs-overview .clubs-ov-reg-v27065 {
  flex: 0 0 auto; padding: .2rem .6rem; border-radius: .5rem; background: #fff; color: #0f172a; border: 1px solid rgba(15, 23, 42, .25);
  font-size: .78rem; font-weight: 700; text-decoration: none; white-space: nowrap;
}
#tab-clubs-overview .clubs-ov-reg-v27065:hover, #tab-clubs-overview .clubs-ov-reg-v27065:focus-visible { background: #e2e8f0; }
#tab-clubs-overview .clubs-ov-reg-v27065[hidden] { display: none; }
/* v270.65: the dots' room; "Nobody booked" and the like over its middle. */
#tab-clubs-overview .clubs-ov-stage-v27063 { position: relative; padding: 0 .1rem; min-height: 3.4rem; }
#tab-clubs-overview .clubs-ov-stage-v27063 canvas { display: block; cursor: pointer; }
/* v270.67: a mouse drags a dot; a finger still scrolls the page. */
@media (pointer: fine) { #tab-clubs-overview .clubs-ov-stage-v27063 canvas { touch-action: none; } }
#tab-clubs-overview .clubs-ov-none-v27063 { position: absolute; /*c27253*/top: 0; /*c27253*/right: 0; /*c27253*/bottom: 0; /*c27253*/left: 0; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: .6rem .8rem; text-align: center; color: #64748b; }
#tab-clubs-overview .clubs-ov-none-v27063[hidden] { display: none; }
#tab-clubs-overview .clubs-ov-counts-v27063 { display: flex; flex-wrap: wrap; gap: .2rem .8rem; padding: .35rem .8rem .55rem; font-size: .82rem; color: #334155; }
#tab-clubs-overview .clubs-ov-counts-v27063:empty { padding: 0; }
#tab-clubs-overview .clubs-ov-counts-v27063 .is-p { color: #15803d; font-weight: 600; }
#tab-clubs-overview .clubs-ov-counts-v27063 .is-a { color: #b91c1c; }
#tab-clubs-overview .clubs-ov-counts-v27063 .is-o { color: #1e3a8a; }
#tab-clubs-overview .clubs-ov-empty-v27063 { grid-column: 1 / -1; text-align: center; }

#tab-clubs-overview .clubs-ov-map-v27063 { height: min(70vh, 560px); border: 1px solid #d9e1ea; border-radius: .8rem; overflow: hidden; background: #f1f5f9; }
#tab-clubs-overview .clubs-ov-map-v27063.is-missing { display: flex; align-items: center; justify-content: center; height: 8rem; color: #64748b; }

#tab-clubs-overview .clubs-ov-box-v27063 { position: fixed; /*c27253*/top: 0; /*c27253*/right: 0; /*c27253*/bottom: 0; /*c27253*/left: 0; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(15, 23, 42, .45); }
#tab-clubs-overview .clubs-ov-box-v27063[hidden] { display: none; }
#tab-clubs-overview .clubs-ov-box-inner-v27063 { position: relative; width: min(42rem, 100%); max-height: 90vh; overflow: auto; background: #fff; border-radius: .9rem; padding: .6rem; }
#tab-clubs-overview .clubs-ov-box-close-v27063 { position: absolute; right: .9rem; top: .9rem; z-index: 1; padding: .1rem .6rem; font-size: 1.2rem; }
#tab-clubs-overview .clubs-ov-tip-v27063 {
  position: absolute; z-index: 2100; pointer-events: none; padding: .2rem .5rem; border-radius: .4rem; background: #0f172a; color: #fff; font-size: .8rem; white-space: nowrap;
}
/* v270.70: a starred count's answer under the name, wrapped when long. */
#tab-clubs-overview .clubs-ov-tip-v27063 { white-space: pre-line; max-width: 22rem; width: max-content; }
#clubsOverviewV27063 { position: relative; }

/* ------------------------------------------------ v270.64 */
/* Find a child. */
#tab-clubs-overview .clubs-ov-find-v27064 { display: flex; justify-content: center; align-items: center; gap: .5rem; margin: .5rem 0 .2rem; font-weight: 700; }
#tab-clubs-overview .clubs-ov-find-box-v27064 { position: relative; width: min(100%, 24rem); }
#tab-clubs-overview .clubs-ov-find-box-v27064 input { width: 100%; }
#tab-clubs-overview .clubs-ov-find-list-v27064 {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 1500; margin: .2rem 0 0; padding: .25rem; list-style: none;
  background: #fff; border: 1px solid #cbd5e1; border-radius: .6rem; box-shadow: 0 8px 24px rgba(15, 23, 42, .18); font-weight: 400;
}
#tab-clubs-overview .clubs-ov-find-list-v27064 li { padding: 0; }
#tab-clubs-overview .clubs-ov-find-list-v27064 li.muted { padding: .4rem .6rem; }
#tab-clubs-overview .clubs-ov-find-list-v27064 button { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: .4rem; padding: .4rem .6rem; color: #0f172a; box-shadow: none; }
#tab-clubs-overview .clubs-ov-find-list-v27064 button:hover, #tab-clubs-overview .clubs-ov-find-list-v27064 button.is-on { background: #e2e8f0; }
/* v270.65: its room is always there (hidden, not gone), so nothing below it moves. */
#tab-clubs-overview .clubs-ov-picked-v27064 { display: flex; justify-content: center; align-items: center; gap: .6rem; flex-wrap: nowrap; margin: .2rem 0; min-height: 2.4rem; font-weight: 600; overflow: hidden; }
#tab-clubs-overview .clubs-ov-picked-v27064 > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tab-clubs-overview .clubs-ov-picked-v27064.is-empty { visibility: hidden; }

/* The starred requirements, present of booked. */
#tab-clubs-overview .clubs-ov-reqs-v27064 { display: flex; flex-wrap: wrap; gap: .3rem; padding: .45rem .6rem 0; }
#tab-clubs-overview .clubs-ov-reqs-v27064:empty { padding: 0; }
#tab-clubs-overview .clubs-ov-req-v27064 {
  display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .55rem; border-radius: 999px; border: 1px solid #cbd5e1;
  background: #fff; color: #0f172a; font-size: .78rem; font-weight: 600; box-shadow: none; text-transform: none; letter-spacing: 0;
}
#tab-clubs-overview .clubs-ov-req-v27064 b { font-weight: 800; }
#tab-clubs-overview .clubs-ov-req-v27064.is-on { outline: 3px solid #0f172a; outline-offset: 1px; }

/* The staff on the date, along the bottom; a Head role in bold.
   v270.66: each tablet one height, the name in its middle. The row is made
   as tall as the box beside it with most staff (equalize); the tablets keep
   to the top of it rather than stretching to fill it. */
#tab-clubs-overview .clubs-ov-staff-v27064 {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; align-content: flex-start; gap: .3rem; padding: 0 .6rem .3rem;
}
#tab-clubs-overview .clubs-ov-staff-v27064:empty { padding: 0; }
#tab-clubs-overview .clubs-ov-tablet-v27064 {
  box-sizing: border-box; height: 1.6rem; line-height: calc(1.6rem - 2px); padding: 0 .6rem; max-width: 100%;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: center;
  border-radius: 999px; background: #fff; border: 1px solid var(--club, #7c3aed); color: #0f172a; font-size: .8rem; font-weight: 400;
  transition: box-shadow .2s, background .2s;
}
#tab-clubs-overview .clubs-ov-tablet-v27064.is-head { font-weight: 800; }
#tab-clubs-overview .clubs-ov-tablet-v27064.is-herding { background: var(--club, #7c3aed); color: var(--club-ink, #fff); box-shadow: 0 0 0 3px rgba(15, 23, 42, .15); }

/* The map: the clubs stacked on its left, the map filling the rest. */
#tab-clubs-overview .clubs-ov-mapwrap-v27063:not([hidden]) { display: flex; gap: 1rem; align-items: flex-start; }
#tab-clubs-overview .clubs-ov-jump-v27064 { flex: 0 0 9.5rem; display: flex; flex-direction: column; gap: .5rem; max-height: calc(100vh - 8rem); overflow: auto; padding: .35rem; }
#tab-clubs-overview .clubs-ov-mapcol-v27064 { flex: 1 1 auto; min-width: 0; }
#tab-clubs-overview .clubs-ov-jumpbtn-v27064 {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem; padding: .5rem .4rem; border-radius: .7rem;
  background: #fff; color: #0f172a; border: 2px solid var(--club, #7c3aed); box-shadow: none; text-transform: none; letter-spacing: 0;
}
#tab-clubs-overview .clubs-ov-jumpbtn-v27064 strong { font-size: .92rem; overflow-wrap: anywhere; }
#tab-clubs-overview .clubs-ov-jumpbtn-v27064 span { font-size: .75rem; font-weight: 400; color: #334155; }
#tab-clubs-overview .clubs-ov-jumpbtn-v27064.is-unplaced { border-style: dashed; }
#tab-clubs-overview .clubs-ov-jumpbtn-v27064.is-here { box-shadow: 0 0 10px 2px var(--club, #7c3aed); animation: clubs-glow-btn-v27064 1.8s ease-in-out infinite alternate; }
@keyframes clubs-glow-btn-v27064 { from { box-shadow: 0 0 4px 1px var(--club, #7c3aed); } to { box-shadow: 0 0 14px 4px var(--club, #7c3aed); } }
@media (max-width: 760px) {
  #tab-clubs-overview .clubs-ov-mapwrap-v27063:not([hidden]) { flex-direction: column; }
  #tab-clubs-overview .clubs-ov-jump-v27064 { flex: none; flex-direction: row; flex-wrap: wrap; max-height: none; }
  #tab-clubs-overview .clubs-ov-mapcol-v27064 { width: 100%; }
}

/* Manage Clubs > a club > Club type. */
#tab-clubs .clubs-type-v27064 select { width: 100%; }
#tab-clubs .clubs-type-new-v27064:not([hidden]) { display: flex; gap: .4rem; }
#tab-clubs .clubs-type-new-v27064 input { flex: 1 1 auto; min-width: 0; }
#tab-clubs .clubs-type-v27064 .clubs-status-v2690 { font-weight: 400; }
/* The grid hides in Map view (its display: grid beat [hidden] in v270.63). */
#tab-clubs-overview .clubs-ov-grid-v27063[hidden], #tab-clubs-overview .clubs-ov-sections-v27065[hidden] { display: none; }

/* ------------------------------------------------ v270.65 */
/* Club types (left), Find a child (middle), Hide inactive clubs (right, under the date). */
#tab-clubs-overview .clubs-ov-tools-v27065 { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem; margin: .4rem 0 .2rem; }
#tab-clubs-overview .clubs-ov-tools-v27065 .clubs-ov-find-v27064 { margin: 0; }
#tab-clubs-overview .clubs-ov-inactive-v27065 { justify-self: end; }
#tab-clubs-overview .clubs-ov-inactive-v27065 [aria-pressed="true"] { background: #1e293b; color: #fff; border-color: #1e293b; }
#tab-clubs-overview .clubs-ov-types-v27065 { position: relative; justify-self: start; }
#tab-clubs-overview .clubs-ov-types-v27065 > summary {
  list-style: none; cursor: pointer; padding: .45rem .8rem; border: 1px solid #cbd5e1; border-radius: .6rem; background: #fff; font-weight: 600; white-space: nowrap;
}
#tab-clubs-overview .clubs-ov-types-v27065 > summary::-webkit-details-marker { display: none; }
#tab-clubs-overview .clubs-ov-types-v27065 > summary::after { content: " \25BE"; }
#tab-clubs-overview .clubs-ov-types-list-v27065 {
  position: absolute; left: 0; top: calc(100% + .2rem); z-index: 1500; min-width: 14rem; display: grid; gap: .25rem; padding: .5rem;
  background: #fff; border: 1px solid #cbd5e1; border-radius: .6rem; box-shadow: 0 8px 24px rgba(15, 23, 42, .18);
  /* v270.67: as wide as its longest type, so each sits on one line (a very long one wraps). */
  width: max-content; max-width: min(32rem, 90vw);
}
/* v270.67: the tick on the left, the type beside it. */
#tab-clubs-overview .clubs-ov-types-list-v27065 .check-card { display: flex; align-items: center; justify-content: flex-start; gap: .5rem; margin: 0; text-align: left; }
#tab-clubs-overview .clubs-ov-types-list-v27065 .check-card > input { flex: 0 0 auto; width: auto; min-width: 0; margin: 0; }
#tab-clubs-overview .clubs-ov-types-list-v27065 .check-card > span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  #tab-clubs-overview .clubs-ov-tools-v27065 { grid-template-columns: 1fr; }
  #tab-clubs-overview .clubs-ov-types-v27065, #tab-clubs-overview .clubs-ov-inactive-v27065 { justify-self: center; }
}
/* The sections and the type headings. */
#tab-clubs-overview .clubs-ov-section-v27065 + .clubs-ov-section-v27065 { margin-top: 1.4rem; padding-top: .8rem; border-top: 2px dashed #cbd5e1; }
#tab-clubs-overview .clubs-ov-section-title-v27065 { margin: 0 0 .3rem; font-size: 1.1rem; color: #475569; }
#tab-clubs-overview .clubs-ov-type-v27065 { margin: .8rem 0 .45rem; font-size: .95rem; letter-spacing: .02em; color: #1e293b; }
#tab-clubs-overview .clubs-ov-section-v27065.is-inactive .clubs-ov-card-v27063 { opacity: .8; }
/* Each box a column; its parts lined up by equalize(). */
#tab-clubs-overview .clubs-ov-card-v27063 { display: flex; flex-direction: column; }
#tab-clubs-overview .clubs-ov-grid-v27063 { align-items: stretch; }
/* The map: no session on the day, see-through. */
.clubs-pin-v27063.is-faint { opacity: .4; }
#tab-clubs-overview .clubs-ov-jump-v27064 .clubs-ov-type-v27065 { margin: .4rem 0 0; font-size: .8rem; color: #475569; text-align: center; }
#tab-clubs-overview .clubs-ov-jumpbtn-v27064.is-inactive { opacity: .55; }

/* Manage Clubs: a heading for each club type. */
#tab-clubs .clubs-manage-type-v27065 { margin: 1rem 0 .4rem; font-size: 1rem; color: #1e293b; }
#tab-clubs .clubs-manage-groups-v27065 > .clubs-manage-type-v27065:first-child { margin-top: .4rem; }
#tab-clubs-overview .clubs-ov-find-v27064 label { white-space: nowrap; }
