/* SchoolDay v271.46: the class register's rows, its Find and letters, and its Show test boxes.

   Sean (8 Nov): "make the buttons for Open Pupil Record, Incident, Assessments, etc. be the same height as the Present,
   Authorised, etc. The Present, Authorised, Absent buttons should be in the 'central' column so to speak, and the Open
   record, etc. should be in the 'right' column. If there isn't enough screen space, then the name is inline with
   Present, Authorised, Absent, Check Out, and then the Open Record, etc. If it's mobile then it's Name and info,
   register actions, then load actions."

   The rows are sized from the list's own width (a container), not the window's: the menu takes some of the window. */
#registerPupilListV210 { container-type: inline-size; }
#registerPupilListV210 > .register-pupil-row-v210[hidden] { display: none !important; }
/* Wide: the name, the four marks in the middle, the actions on the right. */
#registerPupilListV210 > .register-pupil-row-v210 {
  grid-template-columns: minmax(10rem, 1fr) repeat(4, minmax(84px, auto)) max-content !important;
  align-items: center;
}
#registerPupilListV210 > .register-pupil-row-v210 > div:first-child { grid-column: auto !important; }
#registerPupilListV210 > .register-pupil-row-v210 > .register-actions-v227 {
  grid-column: auto; margin: 0; padding-left: .6rem; border-left: 1px solid #e2e8f0; justify-content: flex-end; align-self: stretch; align-items: center;
  flex-wrap: nowrap;
}
#registerPupilListV210 .register-actions-v227 .register-action-v227 { white-space: nowrap; }
/* One height for both: the marks and the actions. */
#registerPupilListV210 .register-mark-v210,
#registerPupilListV210 .register-actions-v227 .register-action-v227 {
  min-height: 2.75rem !important; box-sizing: border-box;
}
#registerPupilListV210 .register-actions-v227 .register-action-v227 { padding: .4rem .7rem !important; font-size: .85rem !important; }
/* Less room: the name and the marks on one line, the actions under them. */
@container (max-width: 1260px) {
  #registerPupilListV210 > .register-pupil-row-v210 { grid-template-columns: minmax(9rem, 1fr) repeat(4, minmax(76px, auto)) !important; }
  #registerPupilListV210 > .register-pupil-row-v210 > .register-actions-v227 { grid-column: 1 / -1; padding: .45rem 0 0; border-left: 0; border-top: 1px solid #e2e8f0; justify-content: flex-start; flex-wrap: wrap; }
}
/* A phone: the name and its details, the marks, then the actions. */
@container (max-width: 620px) {
  #registerPupilListV210 > .register-pupil-row-v210 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  #registerPupilListV210 > .register-pupil-row-v210 > div:first-child { grid-column: 1 / -1 !important; }
  #registerPupilListV210 .register-mark-v210 { min-width: 0; padding: .45rem .1rem !important; font-size: .7rem !important; letter-spacing: -.01em; white-space: nowrap; }
  #registerPupilListV210 > .register-pupil-row-v210 > .register-actions-v227 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem; }
  #registerPupilListV210 .register-actions-v227 .register-action-v227 { font-size: .78rem !important; }
}
@container (max-width: 330px) {
  #registerPupilListV210 > .register-pupil-row-v210 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Find, Refresh register, and the letters (the club register's look). */
.register-find-v27146 { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem .8rem; margin: 0 0 .5rem; }
.register-find-label-v27146 { display: flex; align-items: center; gap: .45rem; font-weight: 750; }
.register-find-label-v27146 input { min-width: 12rem; }
.register-letters-v27146 { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 .7rem; padding-top: .5rem; border-top: 1px solid #e2e8f0; }
.register-letters-v27146[hidden] { display: none; }
.register-letter-v27146 { min-width: 2.3rem; min-height: 2.3rem; padding: .2rem .4rem !important; border: 1px solid #cbd5e1 !important; border-radius: .4rem; background: #fff !important; color: #17324d !important; font-weight: 700; }
.register-letter-v27146:hover { background: #eef4fb !important; }
.register-letter-v27146.is-on { border-color: #d09a00 !important; background: #f5c542 !important; color: #111827 !important; }

/* Show test: as tall as All classes beside it; and on Register History, the tick beside its words. */
.register-heading-actions-v211 { align-items: stretch; }
.register-heading-actions-v211 .check-card { display: flex; align-items: center; gap: .45rem; width: auto; min-width: 0; margin: 0; min-height: 2.75rem; padding: .35rem .8rem; box-sizing: border-box; white-space: nowrap; }
.register-heading-actions-v211 .check-card input { margin: 0; }
.register-heading-actions-v211 > button { min-height: 2.75rem; }
.register-history-controls-v2113 label.check-card { display: flex !important; flex-direction: row; align-items: center; gap: .45rem; align-self: end; min-height: 2.75rem; box-sizing: border-box; }
.register-history-controls-v2113 label.check-card input { margin: 0; }
