/* SchoolDay v270.95: Clubs on a phone (820px and under, where the app calls
   itself mobile), Show Open Only, the Overview's frames side by side, and the
   marking window's grades on one line. */

/* ------------------------------------------------------------ every width */

/* Only a phone has the one-line Clubs bar, Print Dashboard and Widgets and Settings. */
#tab-clubs .clubs-mnav-v27095,
#tab-clubs .clubs-print-narrow-v27095,
#tab-clubs .clubs-grid-more-v27095 { display: none; }

/* Select all and Show Open Only, beside Clubs. */
#tab-clubs .clubs-grid-tick-v27095 { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
#tab-clubs .clubs-grid-tick-v27095 input { margin: 0; }

/* Show Open Only: the clubs with no dates to come leave the list under the Dashboard. */
#tab-clubs .is-open-only-v27095 .clubs-dash-item-v27011.is-closed-v27095 { display: none; }

/* The boxes' headings are buttons (they fold on a phone); wider, a heading. */
#tab-clubs .clubs-grid-fold-v27095 {
  display: inline; margin: 0; padding: 0; min-height: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: default;
}
#tab-clubs .clubs-grid-fold-v27095:hover { background: none; color: inherit; }

/* The Clubs Overview: a club's registers side by side when there is room. */
#tab-clubs-overview .clubs-ov-parts-v27094 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); align-items: start; }
@media (min-width: 900px) {
  #tab-clubs-overview .clubs-ov-card-v27063.is-split-v27094:has(> .clubs-ov-parts-v27094:not([hidden]) > :nth-child(2)) { grid-column: span 2; }
/*c27253-has*/#tab-clubs-overview .clubs-ov-card-v27063.is-split-v27094.h27253-165taxs { grid-column: span 2; }/*c27253-end*/
}
@media (min-width: 1300px) {
  #tab-clubs-overview .clubs-ov-card-v27063.is-split-v27094:has(> .clubs-ov-parts-v27094:not([hidden]) > :nth-child(3)) { grid-column: span 3; }
/*c27253-has*/#tab-clubs-overview .clubs-ov-card-v27063.is-split-v27094.h27253-165tav5 { grid-column: span 3; }/*c27253-end*/
}

/* The marking window: the level's average beside its name; every grade on
   one line, its name over its percent; Clear under them. */
#tab-clubs .clubs-mark-level-pct-v27095 { padding: .05rem .45rem; border-radius: 999px; background: #ede9fe; color: #4c1d95; font-size: .9rem; font-variant-numeric: tabular-nums; }
#tab-clubs .clubs-grade-picks-v2690 { flex-wrap: nowrap; align-items: stretch; }
#tab-clubs .clubs-grade-picks-v2690 .clubs-grade-pick-v2690 {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
  padding: .35rem .25rem; line-height: 1.15; text-align: center; overflow-wrap: anywhere;
}
#tab-clubs .clubs-grade-pick-v2690 > span { font-size: .85rem; }
#tab-clubs .clubs-mark-clear-v27095 { display: inline-block; margin: 0 0 .3rem; }

/* ------------------------------------------------------------ a phone */
@media (max-width: 820px) {
  /* The tabs are one line: the page open and Change Clubs Function. */
  /* (As specific as the rules that show them: v270.15's and v270.22's.) */
  .admin-body #adminApp #tab-clubs #clubsTabsV2690 { display: none !important; }
  .admin-body #adminApp #tab-clubs > .section-heading h2 { display: none !important; }
  .admin-body #adminApp #tab-clubs .admin-page-help-row > #clubsFullscreenV27011 { display: none !important; }
  #tab-clubs .clubs-mnav-v27095 { position: relative; display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: 0 0 .8rem; }
  #tab-clubs .clubs-mnav-page-v27095 { flex: 1 1 auto; min-width: 0; font-size: 1.3rem; line-height: 1.2; color: #0f172a; overflow-wrap: anywhere; }
  #tab-clubs #clubsMobileMenuButtonV27095 { flex: 0 1 auto; max-width: 60%; min-height: 2.75rem; margin: 0; padding: .45rem .7rem; font-size: .95rem; font-weight: 700; white-space: normal; line-height: 1.15; }
  #tab-clubs #clubsMobileMenuButtonV27095::after { content: " \25BE"; }
  #tab-clubs .clubs-mnav-menu-v27095 {
    position: absolute; right: 0; top: calc(100% + .3rem); z-index: 40; width: min(20rem, calc(100vw - 2rem)); max-height: 70vh; overflow-y: auto;
    display: grid; gap: .15rem; padding: .35rem; border: 1px solid #cbd5e1; border-radius: .8rem; background: #fff; box-shadow: 0 14px 30px rgba(15, 23, 42, .22);
  }
  #tab-clubs .clubs-mnav-menu-v27095[hidden] { display: none; }
  #tab-clubs .clubs-mnav-item-v27095 {
    width: 100%; min-height: 2.75rem; margin: 0; padding: .55rem .8rem; border: 0; border-radius: .5rem; background: #fff; color: #0f172a;
    text-align: left; font-weight: 700; font-size: 1rem; box-shadow: none;
  }
  #tab-clubs .clubs-mnav-item-v27095:hover, #tab-clubs .clubs-mnav-item-v27095:focus-visible { background: #f1f5f9; color: #0f172a; }
  #tab-clubs .clubs-mnav-item-v27095.is-on-v27095 { background: #ede9fe; color: #4c1d95; }
  #tab-clubs .clubs-mnav-head-v27095 {
    margin: .35rem 0 0; padding: .55rem .8rem .2rem; border-top: 1px solid #e2e8f0;
    font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #64748b;
  }

  /* The bar: "45 days From [date] To [date]" on one line; Clubs, Select all
     and Show Open Only on the next. */
  #tab-clubs .clubs-grid-bar-left-v27043 { flex-wrap: nowrap; gap: .35rem; min-width: 0; }
  #tab-clubs .clubs-grid-bar-left-v27043 h4 { flex: 0 0 auto; white-space: nowrap; font-size: .95rem; }
  #tab-clubs .clubs-grid-bar-left-v27043 .clubs-field-v2690.is-inline { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: .25rem; margin: 0; font-size: .85rem; white-space: nowrap; }
  #tab-clubs .clubs-grid-bar-left-v27043 input[type="date"] { flex: 1 1 auto; width: 100%; min-width: 0; padding: .3rem .2rem; font-size: .82rem; }
  #tab-clubs .clubs-grid-bar-centre-v27043 { flex-wrap: wrap; gap: .4rem .8rem; }

  /* Dashboard Functions and Set Dashboard Filters: shut until pressed. */
  #tab-clubs .clubs-grid-fold-v27095 { display: flex; width: 100%; justify-content: space-between; align-items: center; min-height: 2.4rem; cursor: pointer; }
  #tab-clubs .clubs-grid-fold-v27095::after { content: "\25B8"; font-size: 1rem; }
  #tab-clubs .clubs-grid-fold-v27095[aria-expanded="true"]::after { content: "\25BE"; }
  #tab-clubs .clubs-grid-panel-v27043 > h5 { margin: 0; }
  #tab-clubs .clubs-grid-panel-v27043:not(.is-open-v27095) > :not(h5) { display: none !important; }
  #tab-clubs .clubs-grid-panels-v27043 > .clubs-grid-panel-v27043 { padding-top: 0; padding-bottom: 0; }
  #tab-clubs .clubs-grid-panel-v27043.is-open-v27095 { padding-bottom: .5rem; }

  /* The table: no totals under the club's name, and the name's column at most
     about two fifths of the box, so the dates keep the rest. */
  #tab-clubs .clubs-grid-sums-v27013 { display: none !important; }
  #tab-clubs .clubs-grid-table-v27012 .clubs-grid-club-v27012,
  #tab-clubs .clubs-grid-table-v27012 th.clubs-grid-subname-v27017 {
    width: 36vw; min-width: 0; max-width: 36vw; white-space: normal; overflow-wrap: anywhere; line-height: 1.2;
  }
  #tab-clubs .clubs-grid-table-v27012 tbody th.clubs-grid-club-v27012 { font-size: .9rem; }
  /* Two lines of a long name at most (every row is as tall as the tallest). */
  #tab-clubs .clubs-grid-clubname-v27095 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
  #tab-clubs .clubs-grid-club-v27012 > .clubs-swatch-v2690 { float: left; margin-top: .3rem; }

  /* Print Dashboard, big; Weekly settings, Add Widgets and Update PDF banner
     behind Widgets and Settings at the end of the page. */
  #tab-clubs .clubs-print-wide-v27095 { display: none; }
  #tab-clubs .clubs-print-narrow-v27095 { display: inline; }
  #tab-clubs .clubs-grid-under-v27016 [data-grid-print-v27030] { min-height: 3.2rem; padding: .7rem 1.4rem; font-size: 1.05rem; font-weight: 800; }
  #tab-clubs .clubs-grid-under-v27016 .clubs-grid-week-tools-v27016 > .muted,
  #tab-clubs .clubs-grid-under-v27016 .clubs-grid-week-pair-v27044,
  #tab-clubs .clubs-grid-under-v27016 [data-clubs-print-banner-v27030] { display: none !important; }
  #tab-clubs .clubs-grid-more-v27095 { display: grid; gap: .5rem; margin: 1rem 0 .4rem; }
  #tab-clubs .clubs-grid-more-v27095 > button { width: 100%; min-height: 2.9rem; font-weight: 700; }
  #tab-clubs .clubs-grid-more-menu-v27095 { display: grid; gap: .45rem; padding: .6rem; border: 1px solid #e2e8f0; border-radius: .7rem; background: #f8fafc; }
  #tab-clubs .clubs-grid-more-menu-v27095[hidden] { display: none; }
  #tab-clubs .clubs-grid-more-menu-v27095 button { width: 100%; min-height: 2.75rem; margin: 0; }

  /* The register and the marking window: a little bigger to read and press. */
  #tab-clubs .clubs-crumbs-v27015 h3 { font-size: 1.3rem; }
  /* (v270.74 made the name big on a phone; a little bigger again, and its status and requirements.) */
  #tab-clubs .clubs-reg-pupil-v2690 strong { font-size: 1.5rem; }
  #tab-clubs .clubs-reg-pupil-v2690 .clubs-reg-status-text-v2690 { font-size: 1.08rem; }
  #tab-clubs .clubs-reg-list-v2690 .clubs-reg-req-v2690 { font-size: 1.02rem; }
  #tab-clubs #clubsDialogV2690 .clubs-dialog-head-v2690 h3 { font-size: 1.25rem; }
  #tab-clubs .clubs-mark-level-v27094 > summary { font-size: 1.12rem; padding: .7rem .8rem; }
  #tab-clubs .clubs-mark-name-v2690 strong { font-size: 1.08rem; }
  #tab-clubs .clubs-mark-name-v2690 .muted { font-size: .92rem; }
  #tab-clubs .clubs-grade-picks-v2690 { gap: .2rem; }
  #tab-clubs .clubs-grade-picks-v2690 .clubs-grade-pick-v2690 { min-height: 3.4rem; padding: .3rem 0; overflow-wrap: normal; letter-spacing: -.02em; }
  /* A long grade name ("Developing") breaks where a word may, not anywhere. */
  #tab-clubs .clubs-grade-pick-v2690 > span { font-size: .7rem; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; max-width: 100%; }
  /* Room for the grades: less padding round the level and the skill. */
  #tab-clubs .clubs-mark-level-body-v27094 { padding: 0 .4rem .6rem; }
  #tab-clubs .clubs-mark-level-v27094 .clubs-mark-skill-v2690 { padding-left: .45rem; padding-right: .45rem; }
  #tab-clubs .clubs-grade-pick-v2690 > b { font-size: 1rem; }
}

/* v270.96: Undo, under the time, for 30 seconds after Present or Absent. */
#tab-clubs .clubs-undo-v27096 { display: block; width: 100%; margin: .25rem 0 0; padding: .3rem .5rem; min-height: 2.2rem; font-size: .85rem; font-weight: 800; border-style: dashed; }
#tab-clubs .clubs-undo-left-v27096 { font-weight: 600; font-variant-numeric: tabular-nums; opacity: .8; }

/* v270.96: a skill COMPLETE (Mark complete, or the top grade), and the button. */
#tab-clubs .clubs-mark-skill-v2690.is-complete-v27096 { border-color: #16a34a; box-shadow: inset 4px 0 0 #16a34a; }
#tab-clubs .clubs-skill-complete-v27096 { display: block; width: 100%; min-height: 2.6rem; margin: .35rem 0 .2rem; font-weight: 800; border-color: #16a34a; color: #166534; }
#tab-clubs .clubs-skill-done-v27096 { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin: .35rem 0 .2rem; }
#tab-clubs .clubs-skill-done-badge-v27096 { display: inline-flex; align-items: center; padding: .25rem .6rem; border-radius: 999px; background: #dcfce7; color: #166534; font-weight: 800; }
#tab-clubs .clubs-skill-chip-v27094.is-complete-v27096 { box-shadow: 0 0 0 2px #16a34a; font-weight: 800; }

/* v270.96: an Assessment View card opens the child's assessment. */
#tab-clubs .clubs-assess-card-v27094.is-open-v27096 { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
#tab-clubs .clubs-assess-card-v27094.is-open-v27096:hover, #tab-clubs .clubs-assess-card-v27094.is-open-v27096:focus-visible { border-color: #7c3aed; box-shadow: 0 0 0 2px #7c3aed33; outline: none; }
#tab-clubs .clubs-assess-open-v27096 { color: #6d28d9; font-size: .9rem; font-weight: 800; white-space: nowrap; }
@media (max-width: 820px) {
  #tab-clubs .clubs-skill-complete-v27096 { min-height: 3.1rem; font-size: 1.05rem; }
  #tab-clubs .clubs-assess-card-v27094.is-open-v27096 { padding: .8rem .85rem; }
  #tab-clubs .clubs-assess-card-v27094 h4 { font-size: 1.15rem; }
}

/* v270.96: Manage Clubs > a club > Details: the picture at the top right (a
   quarter of the frame), everything else together at the left; the place's
   name and the links under the description. */
#tab-clubs .clubs-details-split-v27096 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
#tab-clubs .clubs-details-main-v27096 { min-width: 0; }
#tab-clubs .clubs-details-more-v27096 { display: grid; gap: .5rem; margin-top: .6rem; }
#tab-clubs .clubs-details-pic-v27096 { display: grid; gap: .45rem; justify-items: stretch; }
#tab-clubs .clubs-details-pic-v27096 img, #tab-clubs .clubs-details-nopic-v27096 { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .7rem; border: 1px solid #e2e8f0; background: #f8fafc; }
#tab-clubs .clubs-details-nopic-v27096 { display: grid; place-items: center; color: #94a3b8; font-weight: 700; }
#tab-clubs .clubs-details-pic-btn-v27096 { display: inline-flex; justify-content: center; align-items: center; min-height: 2.5rem; padding: .4rem .7rem; border: 1px solid #cbd5e1; border-radius: .6rem; font-weight: 700; cursor: pointer; background: #f8fafc; }
#tab-clubs .clubs-details-pic-note-v27096 { margin: 0; font-size: .82rem; }
#tab-clubs .clubs-place-same-v27096 { display: inline-flex; align-items: center; gap: .4rem; }
@media (max-width: 820px) {
  #tab-clubs .clubs-details-split-v27096 { grid-template-columns: minmax(0, 1fr) minmax(0, 7rem); gap: .6rem; }
  #tab-clubs .clubs-details-split-v27096 > .clubs-details-main-v27096 { grid-row: 1 / span 2; }
}
