/* Co-Scholastic sub-module (Figma "Co Scholastic Module" 22316:188616) — js/assessment/coscholastic.js. Prefix csh-.
   Reuses the Marks module layout (.mk-*), Subject Profile parts (.sbp-pill / -student / -acc / -ta / -tab / -foot), .sm-chips, .an-foot. */

.csh-body { display: flex; flex-direction: column; gap: 24px; }
.csh-body > .csh-head { margin: 0; flex: none; }
.csh-chips { flex: none; }
.csh-body > .mk-table-wrap { flex: none; overflow: visible; }

/* Apply Grade to all (22316:188631) */
.csh-apply { flex: none; flex-direction: row; align-items: center; gap: 10px; }
.csh-apply > span { flex: 1; min-width: 0; font: 400 16px/24px var(--font); color: var(--bulma); }
.csh-apply-sel {
  flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 8px; width: 80px; padding: 4px 8px;
  border: 1px solid var(--beerus); border-radius: 8px; background: var(--jiren); font: 400 14px/24px var(--font); color: var(--trunks);
}
.csh-apply-sel:not(:disabled):hover { box-shadow: 0 0 0 4px rgba(78, 70, 180, 0.2); }
.csh-apply-sel:disabled { opacity: 0.5; cursor: default; }

/* Grade column in the class sheet and student list */
.csh-col { flex: none; width: 112px; display: flex; justify-content: flex-end; font: 400 14px/24px var(--font); color: var(--piccolo); text-align: right; }
.mk-d-head .csh-col { justify-content: flex-end; }
.csh-row-pill { border-color: #595D62; min-width: 81px; justify-content: space-between; }
.sbp-pill.is-view { border-color: #EBEBEB; justify-content: center; cursor: default; }
.sbp-pill.is-view:hover { box-shadow: none; }

/* Sub-Groups × Grades (× Remarks) table (22316:188858 / 188909) */
.csh-sg { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; border: 1px solid var(--beerus); border-radius: 8px; overflow: hidden; background: linear-gradient(var(--jiren), var(--jiren)), var(--gohan); }
.csh-sg-head { display: flex; align-items: flex-end; gap: 20px; padding: 0 12px; font: 400 14px/24px var(--font); color: var(--piccolo); }
.csh-sg-head > span:first-child { flex: 1; min-width: 0; }
.csh-sg-row { display: flex; align-items: center; gap: 20px; padding: 12px; border-top: 1px solid var(--beerus); background: var(--gohan); }
.csh-sg-body { display: flex; flex-direction: column; background: var(--gohan); }
.csh-sg-body > .csh-sg-row:first-child { border-top: 0; }
.csh-sg-name { flex: 1; min-width: 0; font: 400 14px/24px var(--font); color: var(--bulma); }
.csh-sg-col { flex: none; width: 81px; display: flex; justify-content: center; text-align: center; }
.csh-sg.is-two .csh-sg-row, .csh-sg.is-two .csh-sg-head { gap: 12px; }
.csh-sg .sbp-pill { max-width: 100%; padding: 4px 6px 4px 10px; }
.csh-pill-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* Grade with Remarks accordions (22316:188954) */
.csh-grade-sel { padding: 16px; }
.csh-ta textarea { min-height: 100px; }
