/* AC4, session 1 (owner, 3 Dec 2026): session 1's computer layout styles for its half of the AC4 pages (see AC4-SPLIT.txt). */

/* Registers (class page, teacher Attendance): the hidden Present/Late/Absent
   radio buttons belong to their own row, so the list's box clips them while
   it scrolls; before, they stretched the whole page (it scrolled 119-255px). */
.op-seg { position: relative; }

/* Pages that were one narrow column: the whole width, filling the card. Only
   the boxes marked s1-scroll may scroll. */
.floating #main > div:has(> .s1-wide) { max-width: none; }
.floating #main .s1-wide { display: flex; flex-direction: column; max-width: none; overflow: hidden; }
.floating #main .s1-wide > * { flex: none; }
.floating #main .s1-wide > .s1-scroll,
.floating #main .s1-wide > .s1-two { flex: 0 1 auto; min-height: 0; }
.s1-two { display: grid; grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; gap: 16px; }
.s1-scroll { position: relative; max-height: 100%; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #cbbcaa transparent; }
.s1-two > * { min-height: 0; margin-top: 0; margin-bottom: 0; }
.s1-two .card { padding-block: 14px; }
.cb-text-large .s1-two .card:not(ul) { padding-block: 9px; }
.s1-two .card [role="alert"] { margin-top: 10px; }  /* a warning never touches the box above it */
.s1-two ul.card { padding-block: 0; }
/* The answer to a warning is always in sight, also when the form must scroll. */
.s1-two .s1-actions { position: sticky; bottom: -14px; margin-inline: -2px; padding: 6px 2px 10px; background: #fff; }
.s1-two .s1-actions > * { margin-top: 0; }
.cb-text-large .s1-two .card [role="alert"] { margin-bottom: 4px; font-size: calc(15px * 1.15 / var(--cb-z, 1)); line-height: 1.35; }
.s1-two h2 { margin-block: 12px 6px; }
.floating #main .s1-wide > .s1-two { margin-top: 10px; }
.s1-col { display: flex; flex-direction: column; max-height: 100%; }
.s1-col > * { flex: none; }
.s1-col > .s1-scroll { flex: 0 1 auto; min-height: 0; }
.s1-col > :first-child { margin-top: 0; }

/* Chat: the hidden screen-reader words stay inside the column that scrolls;
   with Large text the message box gets more of the width. */
.ch-cols { grid-template-rows: minmax(0, 1fr); }
.ch-rows, .chat-days, .ch-side { position: relative; }
.cb-text-large .pa.ch .ch-cols { grid-template-columns: 300px minmax(0, 1fr) 200px; }
.cb-text-large .ch .chat-form { gap: 6px; padding-inline: 8px; }
.cb-text-large .ch .chat-form textarea { padding-inline: 12px; font-size: calc(15px * 1.15 / var(--cb-z, 1)); }
/* Attendance, Large text: the four counts on one line beside the search. */
.cb-text-large .rg-head > .rg-counts { flex: 1 0 auto; flex-wrap: nowrap; white-space: nowrap; }
.cb-text-large .rg-head > :last-child { flex: 0 1 200px; min-width: 0; }

/* Report card: "Very good" on one line, tighter rows, and with Large text the
   card keeps the Medium size, so it fits one screen. With very many subjects
   only the marks scroll, under their headings. */
.rc-page .floating #main .rc-d { min-height: 0; padding: 12px 18px; gap: 8px; }
.rc-page .rc-d .rc-d-table td { white-space: nowrap; }
.rc-page .rc-d .rc-d-table :is(th, td) { padding: 2px 8px; line-height: 1.35; }
.rc-page .rc-d .rc-d-body { grid-template-rows: minmax(0, 1fr); }
.rc-page .rc-d .rc-d-marks, .rc-page .rc-d .rc-d-side { overflow-y: auto; scrollbar-width: thin; padding-right: 1px; }
.rc-page .rc-d .rc-d-facts :is(th, td) { padding-block: 2px; line-height: 1.4; }
.rc-page .rc-d .rc-d-side { gap: 6px; }
.rc-page .rc-d .rc-d-side .report-remark { flex-shrink: 0; gap: 0; padding: 4px 12px; }
.rc-page .rc-d .rc-d-side .rc-d-remark { line-height: 1.3; }
.rc-page .rc-d .rc-d-table thead th { position: sticky; top: 0; z-index: 1; }
.cb-text-large .rc-page .rc-d, .cb-text-large.rc-page .rc-d { zoom: calc(1.15 / var(--cb-z, 1.15)); }
.rc-page .rc-d .rc-d-marks { padding-right: 3px; }  /* the table's own right line */
/* Heading row: "Not final" is always whole (short with Large text), and the
   way back stands level with Print. */
.rc-d-title-row > div:first-child > .rc-d-draft { flex: none; align-self: center; margin-left: 0; white-space: pre; }
.cb-text-large .rc-d-draft-more { display: none; }
.cb-text-large .rc-d-title-row .page-title-sub,
.rc-d-title-row .page-title-sub:has(+ .rc-d-draft) { display: none; } /* never cut: the term and class are on the card itself */
.rc-d-title-row .page-title-actions { align-items: center; }
.rc-d-title-row .page-title-actions > a { display: inline-flex; align-items: center; }
.rc-page .rc-d .rc-d-table :is(th, td) { padding-inline: 6px; }  /* nine subjects with "Very good": the right line stays */
/* Class page: the search never touches the line under the tabs. */
.op-tabline > :is(.op-search, .op-search-form) { margin-block: 0 6px; }
