/* ============================================================
   유자보드 — 출결 (2026-10-30) · 단독 탭 틀은 economy.css 의 .cb-ecopage__bar · .cb-eco__tabs 를 함께 쓴다
   사유 색: 질병 = 중립 면 · 미인정 = 주황 틴트 · 기타 = 유자 50 · 출석인정 = 잎 틴트 (빨강을 쓰지 않는다)
   ============================================================ */
.cb-attpage { top: var(--cb-bar-h, 56px); z-index: 19; }
.cb-att__when { min-width: 7.5em; text-align: center; font-size: var(--yj-t-body); font-weight: 700; color: var(--yj-ink-deep); }
.cb-att__wk { margin: 0 var(--yj-s2); }

/* 일별 */
.cb-att__day { gap: var(--yj-s3); }
.cb-att__sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--yj-s4); font-size: var(--yj-t-body); color: var(--yj-sub); }
.cb-att__sum b { font-family: var(--yj-font-disp); font-size: 26px; color: var(--yj-ink-deep); font-variant-numeric: tabular-nums; margin-left: 4px; }
.cb-att__sum small { margin-left: auto; font-size: var(--yj-t-cap); }
.cb-att__rows td { padding: 6px var(--yj-s2); vertical-align: middle; }
.cb-att__rows tr.is-marked td:first-child, .cb-att__rows tr.is-marked td:nth-child(2) { font-weight: 800; color: var(--yj-ink-deep); }
.cb-att-seg { display: inline-flex; width: auto; }
.cb-att-seg button { flex: none; padding: 0 var(--yj-s3); height: 36px; }
.cb-att-p { width: 96px; height: 36px; }
.cb-att-note { width: 100%; min-width: 180px; height: 36px; }

/* 월별 출석부 */
.cb-att__month { gap: var(--yj-s2); }
.cb-att__grid { table-layout: fixed; font-size: var(--yj-t-cap); }
.cb-att__grid th, .cb-att__grid td { padding: 4px 2px; text-align: center; border: 1px solid var(--yj-line); }
.cb-att__grid th small { display: block; font-weight: 600; color: var(--yj-faint); }
.cb-att__grid th.is-wk, .cb-att__grid td.is-wk { background: var(--yj-canvas); }
.cb-att__grid .is-today { box-shadow: inset 0 0 0 2px var(--yj-yuja-500); }
.cb-att__sticky { width: 44px; }
.cb-att__sticky2 { width: 84px; text-align: left !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-att__c { cursor: pointer; position: relative; font-weight: 800; color: var(--yj-ink-deep); height: 30px; }
.cb-att__c:hover { background: var(--yj-yuja-50); }
.cb-att__c.is-r-s { background: var(--yj-canvas); }
.cb-att__c.is-r-u { background: var(--yj-orange-tint); color: var(--yj-orange-ink); }
.cb-att__c.is-r-e { background: var(--yj-yuja-50); }
.cb-att__c.is-r-a { background: var(--yj-leaf-tint); color: var(--yj-leaf-ink); }
.cb-att__c.has-note::after { content: ""; position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; border-radius: var(--yj-r-full); background: var(--yj-sub); }
.cb-att__grid tfoot td { font-weight: 700; color: var(--yj-sub); }
.cb-att__legend { margin: 0; font-size: var(--yj-t-cap); color: var(--yj-sub); line-height: 1.5; }

/* 통계 */
.cb-att__ranges { gap: var(--yj-s2); }
.cb-att__ranges input[type="date"] { width: 160px; height: 36px; }
.cb-att__st { font-size: var(--yj-t-small); }
.cb-att__st th, .cb-att__st td { text-align: center; border: 1px solid var(--yj-line); padding: 4px 6px; }
.cb-att__st td:nth-child(2) { text-align: left; }

/* 한 사람 입력 창 */
.cb-att-modal__box { width: 760px; }
.cb-att-modal__box h2 small { font-family: var(--yj-font-ui); font-size: var(--yj-t-body); font-weight: 700; color: var(--yj-sub); margin-left: var(--yj-s3); }
.cb-att-edit { display: flex; flex-direction: column; gap: var(--yj-s3); }
.cb-att-edit > b { font-size: var(--yj-t-body); color: var(--yj-ink-deep); }
.cb-att-edit .cb-att-seg { display: flex; width: 100%; }
.cb-att-edit .cb-att-seg button { flex: 1; height: 48px; font-size: var(--yj-t-body); }
.cb-att-edit small { font-size: var(--yj-t-cap); color: var(--yj-sub); line-height: 1.5; }
.cb-att-modal .cb-modal__foot { gap: var(--yj-s2); }

/* 우리 반 번호판 — 결석 · 조퇴는 빠짐(누를 수 없음) + 가운데 스티커, 지각 · 결과는 작은 표 */
.cb-att-toggle { flex: none; white-space: nowrap; }
.cb-st.is-att-out { background: var(--yj-canvas); border-style: dashed; cursor: default; }
.cb-st.is-att-out .cb-st__name, .cb-st.is-att-out .cb-st__pt, .cb-st.is-att-out .cb-st__val { opacity: .35; }
/* 출결 딱지 — 작게, 왼쪽 위(이름 · 기호를 가리지 않게), 글자 색은 기호와 같다 */
.cb-st__att {
  position: absolute; left: 6%; top: 6%; z-index: 2;
  padding: 0 0.4em; border-radius: var(--yj-r-xs); border: 1px solid currentColor; background: var(--yj-card-hi);
  font-size: min(13cqh, 8.5cqw); font-weight: 800; line-height: 1.35; color: var(--yj-ink-deep); white-space: nowrap; pointer-events: none;
}
.cb-st__att.is-s-s, .cb-sym.is-s-s { color: var(--cb-up-ink); }
.cb-st__att.is-s-u, .cb-sym.is-s-u { color: var(--yj-error-ink); }
.cb-st__att.is-s-e, .cb-sym.is-s-e { color: var(--yj-orange-ink); }
.cb-st__att.is-s-a, .cb-sym.is-s-a { color: var(--yj-leaf-ink); }
.cb-sym.is-p { color: var(--yj-sub); }
.cb-sym { font-family: var(--yj-font-ui); font-weight: 800; line-height: 1; }
.cb-st__sym { position: absolute; top: 5%; right: 7%; z-index: 1; font-size: min(40cqh, 24cqw); }
.cb-roster.is-full .cb-st__sym { font-size: min(44cqh, 28cqw); }
.cb-att3__syms { display: inline-flex; gap: 2px; margin-left: 2px; }
.cb-att3__syms .cb-sym { font-size: 1.05em; }
.cb-att-seg .cb-sym { margin-right: 2px; }
.cb-roster.is-attmode .cb-st { cursor: pointer; }
.cb-roster.is-attmode .cb-st.is-att-out { cursor: pointer; }
.cb-roster.is-attmode { outline: 2px dashed var(--yj-yuja-600); outline-offset: 4px; border-radius: var(--yj-r-sm); }
.cb-att__grid th:nth-child(-n+2), .cb-att__grid td:nth-child(-n+2) { position: sticky; z-index: 1; background: var(--yj-card); }
.cb-att__grid th:nth-child(1), .cb-att__grid td:nth-child(1) { left: 0; }
.cb-att__grid th:nth-child(2), .cb-att__grid td:nth-child(2) { left: 44px; }

/* 출결 연동(2026-10-30) — 자리표 스티커 · 체크리스트의 그날 빠진 칸 */
.cb-sp__seat.is-att-out > :not(.cb-st__att) { opacity: .35; }
.cb-cs__c.is-att-out { background: var(--yj-canvas); }
.cb-cs__att { width: 100%; height: 100%; min-height: 32px; border: 1px dashed var(--yj-line-strong); border-radius: var(--yj-r-xs); background: transparent; cursor: pointer; font: inherit; font-size: var(--yj-t-cap); font-weight: 700; color: var(--yj-sub); }
.cb-cs__att:hover { background: var(--yj-yuja-50); color: var(--yj-ink-deep); }

/* A5 ~ A7 */
.cb-brand__att { margin-left: var(--yj-s3); padding: 2px var(--yj-s3); border-radius: var(--yj-r-full); background: var(--yj-yuja-100); font-size: var(--yj-t-small); font-weight: 700; color: var(--yj-ink-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cb-brand__att[hidden] { display: none; }
.cb-scene__att { font-weight: 700; color: var(--yj-ink-deep); font-variant-numeric: tabular-nums; }
.cb-scene__att:empty { display: none; }
.cb-en__care { margin-top: var(--yj-s3); padding: var(--yj-s3); border-radius: var(--yj-r-sm); background: var(--yj-yuja-50); border: 1px solid var(--yj-yuja-200); }
.cb-en__care b { font-size: var(--yj-t-body); color: var(--yj-ink-deep); }
.cb-en__care p { margin: 4px 0; font-size: var(--yj-t-body); color: var(--yj-ink-deep); }
.cb-en__care small { font-size: var(--yj-t-cap); color: var(--yj-sub); }
.cb-att__warn { margin: 0; padding: var(--yj-s2) var(--yj-s3); border-radius: var(--yj-r-sm); background: var(--yj-orange-tint); color: var(--yj-orange-ink); font-size: var(--yj-t-small); font-weight: 700; }

/* ── 2026-11-02 · 월별 출석부: 오늘은 열 전체 배경, 줄은 격번 배경 / 일별: 칸 너비 고정(눌러도 안 흔들림) ── */
.cb-att__grid .is-today { box-shadow: none; }
.cb-att__grid tbody tr:nth-child(even) td:not([class*="is-r-"]) { background: var(--yj-canvas); }
.cb-att__grid tbody tr:nth-child(even) td.cb-att__c:hover { background: var(--yj-yuja-50); }
.cb-att__grid th.is-today, .cb-att__grid tbody tr td.cb-att__c.is-today:not([class*="is-r-"]), .cb-att__grid tbody tr:nth-child(even) td.cb-att__c.is-today:not([class*="is-r-"]), .cb-att__grid tfoot td.is-today { background: var(--yj-yuja-200); }
.cb-att__grid tbody tr:nth-child(even) td.cb-att__sticky, .cb-att__grid tbody tr:nth-child(even) td.cb-att__sticky2 { background: var(--yj-canvas); }
.cb-att__rows { table-layout: fixed; min-width: 980px; width: 100%; }
.cb-att__rows th:nth-child(1) { width: 64px; }
.cb-att__rows th:nth-child(2) { width: 120px; }
.cb-att__rows th:nth-child(3) { width: 290px; }
.cb-att__rows th:nth-child(4) { width: 240px; }
.cb-att__rows th:nth-child(5) { width: 120px; }
.cb-att__rows td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-att__rows tr.is-marked td:first-child, .cb-att__rows tr.is-marked td:nth-child(2) { font-weight: 700; }
.cb-att__rows .cb-att-seg button { font-weight: 700; }

/* ── 2026-11-02 · 일별 열 너비 조절 · 메세지 메뉴 ── */
.cb-att__rows { min-width: 0; width: auto; }
.cb-att__rows th { position: relative; }
.cb-att__rows th:nth-child(n) { width: auto; }
.cb-att__rows td { overflow: visible; }
.cb-att__rows td:last-child { overflow: hidden; }
.cb-att__rz { position: absolute; top: 0; right: -4px; width: 9px; height: 100%; cursor: col-resize; z-index: 2; touch-action: none; }
.cb-att__rz::after { content: ""; position: absolute; top: 25%; bottom: 25%; left: 4px; width: 2px; border-radius: 1px; background: var(--yj-line-strong); }
.cb-att__rz:hover::after { background: var(--yj-yuja-600); }
.cb-att-note { min-width: 0; }
.cb-att__msg { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: var(--yj-s4); align-items: start; }
.cb-msg { display: flex; flex-direction: column; gap: var(--yj-s3); padding: var(--yj-s4); background: var(--yj-card); border-radius: var(--yj-r-lg); box-shadow: var(--yj-sh-1); min-width: 0; }
.cb-msg h3 { margin: 0; font-size: var(--yj-t-h2); color: var(--yj-ink-deep); }
.cb-msg h3 small { font-size: var(--yj-t-cap); font-weight: 600; color: var(--yj-sub); margin-left: var(--yj-s2); }
.cb-msg > b { font-size: var(--yj-t-small); color: var(--yj-ink-deep); }
.cb-msg > b em, .cb-msg .cb-field em { font-style: normal; font-weight: 600; color: var(--yj-sub); font-size: var(--yj-t-cap); }
.cb-msg__acts { display: flex; flex-wrap: wrap; gap: var(--yj-s2); }
.cb-msg__date { width: 190px; }
.cb-gt__ta { min-height: 200px; }
.cb-gt__prev { min-height: 90px; max-height: 260px; padding: var(--yj-s3); background: var(--yj-yuja-50); border: 1px solid var(--yj-yuja-200); border-radius: var(--yj-r-sm); }

/* ── 2026-11-02 · 예시 문구 목록 · 링크 더하기 ── */
.cb-lks { display: flex; flex-direction: column; gap: var(--yj-s2); align-items: flex-start; width: 100%; }
.cb-lk { display: flex; gap: var(--yj-s2); width: 100%; align-items: center; }
.cb-lk__t { flex: 0 0 200px; min-width: 0; }
.cb-lk__u { flex: 1; min-width: 0; }
.cb-tpl__row { align-items: center; }
.cb-tpl__gear { width: 32px; height: 32px; }
.cb-tpl { width: min(880px, 94vw); max-height: 88dvh; padding: var(--yj-s5); border: 0; border-radius: var(--yj-r-lg); background: var(--yj-card-hi); color: var(--yj-ink); box-shadow: var(--yj-sh-3); overflow: auto; }
.cb-tpl::backdrop { background: var(--yj-overlay); }
.cb-tpl__head { display: flex; align-items: center; gap: var(--yj-s3); margin-bottom: var(--yj-s3); }
.cb-tpl__head h2 { margin: 0 auto 0 0; font-size: var(--yj-t-h2); color: var(--yj-ink-deep); }
.cb-tpl__head h2 small { font-size: var(--yj-t-cap); color: var(--yj-sub); font-weight: 600; margin-left: var(--yj-s2); }
.cb-tpl__tabs { display: flex; flex-wrap: wrap; gap: var(--yj-s2); margin-bottom: var(--yj-s3); }
.cb-tpl__form { display: flex; flex-direction: column; gap: var(--yj-s3); padding: var(--yj-s4); margin-bottom: var(--yj-s3); border-radius: var(--yj-r-sm); background: var(--yj-yuja-50); border: 1px solid var(--yj-yuja-200); }
.cb-tpl__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cb-tpl__list li { display: flex; gap: var(--yj-s3); align-items: flex-start; padding: var(--yj-s3) 0; border-top: 1px solid var(--yj-line); }
.cb-tpl__txt { flex: 1; min-width: 0; }
.cb-tpl__txt b { color: var(--yj-ink-deep); }
.cb-tpl__txt small { margin-left: var(--yj-s2); color: var(--yj-sub); font-size: var(--yj-t-cap); }
.cb-tpl__txt p { margin: 4px 0 0; color: var(--yj-ink); font-size: var(--yj-t-small); line-height: 1.6; }
.cb-tpl__acts { display: flex; gap: var(--yj-s1); align-items: center; flex: none; }
.cb-tpl__none { color: var(--yj-sub); border-top: 0 !important; }
.cb-tpl__star .cb-ic { fill: none; }
.cb-tpl__star[aria-pressed="true"] { color: var(--yj-yuja-600); }
.cb-tpl__star[aria-pressed="true"] .cb-ic { fill: var(--yj-yuja-500); }
@media (max-width: 640px) { .cb-lk { flex-wrap: wrap; } .cb-lk__t { flex-basis: 100%; } .cb-tpl__list li { flex-direction: column; } }

/* S7 #37 증빙 서류 — 「서류 아직」 남은 수 · 일별 표의 서류 칩 · 기록 창 */
.cb-att-docn { display: inline-block; min-width: 22px; padding: 0 var(--yj-s2); border-radius: var(--yj-r-full); background: var(--yj-orange-tint); color: var(--yj-orange-ink); font-weight: 700; text-align: center; }
.cb-att-doc { margin-left: var(--yj-s2); }
.cb-att-docrow { align-items: flex-end; gap: var(--yj-s4); }

/* R06-04 — 사유 안 적음: 종류 첫 글자를 보조색으로(나이스 기호 없음) */
.cb-st__att.is-s-n, .cb-sym.is-s-n { color: var(--yj-sub); }
