/* SchoolDay v270.49: Clubs. Birthdays (the register's tablet, its count in
   the banner, each date's total on a club's page, the Dashboard's list) and
   the register's Staff box, minimised to one line until pressed. */

/* ------------------------------------------------- birthdays */
#tab-clubs .clubs-req-chip-v2690.is-birthday-v27049 { background: #fdf2f8; border-color: #f9a8d4; color: #9d174d; font-weight: 700; }
#tab-clubs .clubs-reg-bdays-v27049 { margin: .2rem 0 0; font-weight: 700; color: #9d174d; }
#tab-clubs .clubs-badge-v2690.is-birthday-v27049 { background: #fdf2f8; border-color: #f9a8d4; color: #9d174d; }
#tab-clubs .clubs-bday-tick-v27049 { margin-left: auto; }
#tab-clubs .clubs-grid-bdays-v27049 { margin: .6rem 0 0; }
#tab-clubs section.clubs-grid-bdays-v27049 { padding: .5rem .75rem; border: 1px solid #f9a8d4; border-radius: .5rem; background: #fdf2f8; }
#tab-clubs .clubs-grid-bdays-v27049 > h5 { margin: 0 0 .3rem; color: #9d174d; }
#tab-clubs .clubs-grid-bdays-v27049 ul { margin: 0; padding-left: 1.1rem; }
#tab-clubs .clubs-grid-bdays-v27049 li { margin: .15rem 0; }

/* ------------------------------------------------- the Staff box */
#tab-clubs details.clubs-staff-frame-v27015 > summary.clubs-staff-sum-v27049 {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .2rem .6rem;
  cursor: pointer; list-style: none; padding: .1rem 0; font-weight: 700;
}
#tab-clubs details.clubs-staff-frame-v27015 > summary.clubs-staff-sum-v27049::-webkit-details-marker { display: none; }
#tab-clubs details.clubs-staff-frame-v27015 > summary.clubs-staff-sum-v27049::before { content: "\25B8"; color: #64748b; }
#tab-clubs details.clubs-staff-frame-v27015[open] > summary.clubs-staff-sum-v27049::before { content: "\25BE"; }
#tab-clubs details.clubs-staff-frame-v27015 > summary .clubs-staff-title-v27015 { margin: 0; }
#tab-clubs details.clubs-staff-frame-v27015[open] > summary.clubs-staff-sum-v27049 { margin-bottom: .4rem; }
#tab-clubs details.clubs-staff-frame-v27015 .clubs-staff-sumtext-v27049 { font-weight: 600; font-size: .9rem; color: #166534; }
#tab-clubs details.clubs-staff-frame-v27015.is-over .clubs-staff-sumtext-v27049 { color: #991b1b; }
/* The summary line says the ratio, so it is not said twice when open. */
#tab-clubs details.clubs-staff-frame-v27015 > .clubs-staff-ratio-v27015 { display: none; }

/* v270.59: who pressed each register button, and when, under it. */
#tab-clubs .clubs-mark-cell-v27059 { display: inline-flex; flex-direction: column; align-items: stretch; gap: .15rem; flex: 1 1 auto; min-width: 0; }
#tab-clubs .clubs-mark-cell-v27059 > button { width: 100%; margin: 0; }
#tab-clubs .clubs-mark-by-v27059 { display: block; font-size: .72rem; line-height: 1.2; color: #475569; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 10rem; }
#tab-clubs .clubs-reg-att-v2690 > .clubs-mark-by-v27059 { flex-basis: 100%; text-align: left; max-width: none; }
#tab-clubs .clubs-reg-att-v2690 { align-items: flex-start; }

/* v270.59: Present, Absent, Check out and Show safeword -- one height, one size of words. */
#tab-clubs .clubs-reg-att-v2690 .clubs-mark-v2690,
#tab-clubs .clubs-reg-att-v2690 .clubs-checkout-v27059,
#tab-clubs .clubs-reg-word-v27047 .clubs-safeword-btn-v27044 {
  box-sizing: border-box; min-height: 2.5rem; height: 2.5rem; font-size: .9rem; line-height: 1.2; padding: .3rem .7rem; border-width: 2px; border-style: solid;
}

/* v270.59: the buttons at the foot of a register; View and Export, bottom right of each of a club's dates. */
#tab-clubs .clubs-reg-foot-v27059 { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; margin: 1rem 0 .5rem; padding-top: .8rem; border-top: 1px solid #e2e8f0; }
#tab-clubs .clubs-date-foot-v27059 { grid-column: 1 / -1; display: flex; justify-content: flex-end; margin-top: .3rem; }

/* v270.59: the register's history. */
#tab-clubs .clubs-history-wrap-v27059 { max-height: 60vh; overflow: auto; border: 1px solid #e2e8f0; border-radius: 6px; margin-bottom: .6rem; }
#tab-clubs .clubs-history-v27059 { width: 100%; border-collapse: collapse; font-size: .85rem; }
#tab-clubs .clubs-history-v27059 th, #tab-clubs .clubs-history-v27059 td { padding: .35rem .5rem; border-bottom: 1px solid #eef2f7; text-align: left; vertical-align: top; }
#tab-clubs .clubs-history-v27059 thead th { position: sticky; top: 0; background: #f8fafc; z-index: 1; }
#tab-clubs .clubs-history-v27059 tr.is-removed td, #tab-clubs .clubs-history-v27059 tr.is-cancelled td { color: #991b1b; }

/* v270.59: the register as a PDF (one side of portrait A4). */
#tab-clubs .clubs-regpdf-counts-v27059 { margin: 4px 2px 8px; font-weight: 700; font-size: 13px; }
#tab-clubs .clubs-regpdf-v27059 { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 8px; }
#tab-clubs .clubs-regpdf-v27059 th, #tab-clubs .clubs-regpdf-v27059 td { border-bottom: 1px solid #cbd5e1; padding: 4px 6px; text-align: left; vertical-align: top; }
#tab-clubs .clubs-regpdf-v27059 thead th { background: #f1f5f9; }
#tab-clubs .clubs-regpdf-req-v27059 .clubs-req-chip-v2690 { font-size: 11px; margin: 1px 3px 1px 0; }
