*{box-sizing:border-box}body{margin:0;background:#f6f5f0;color:#233c39;font:17px/1.58 system-ui,'Malgun Gothic',sans-serif;word-break:keep-all;overflow-wrap:anywhere}.wrap{width:min(1040px,calc(100% - 40px));margin:auto}header{background:#204b44;color:white;border-top:6px solid #bdac7d}.top,.intro,nav,.row,.dash,.areahead{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.top{padding:35px 0}.top p,.intro p{margin:4px 0}.top small,.intro small{font-size:14px;letter-spacing:.05em;font-weight:700}.top small{color:#d8e5c9}h1{font-size:clamp(25px,4.3vw,40px);letter-spacing:-.055em;line-height:1.22;margin:9px 0 8px}.seal,.badge{font-size:13px;border:1px solid #a4b8a9;padding:4px 12px;border-radius:30px}.intro{margin:28px 0 12px}.intro h2{font-size:30px;margin:2px 0;letter-spacing:-.04em}h2,h3{line-height:1.35}select,button,input:not([type=checkbox]){padding:9px 13px;border:1px solid #afbeb6;border-radius:7px;background:white;color:#24413a;font:inherit;min-height:44px}button,summary,select{cursor:pointer}button:hover,summary:hover{color:#1e674b}.intro label,label.field{display:grid;font-size:15px;gap:3px}button[aria-pressed=true]{background:#204b44;color:white;border-color:#204b44}.note,.help,.privacy{font-size:15px}.note{color:#52635b}.dashboard{border:1px solid #c6d3c7;border-radius:12px;background:#eaf0e6;padding:17px 22px}.dashboard strong{font-size:30px}.dashboard progress,progress{width:100%;height:10px;accent-color:#39735e}.privacy{border-left:3px solid #9b8055;padding-left:12px}.help{margin:12px 0}.help summary{font-weight:600}nav{justify-content:flex-start;border-bottom:1px solid #c8d1c9;padding:15px 0;margin-bottom:22px}.areahead h2{margin:16px 0 8px;font-size:22px}.areahead small{color:#50645b}.card{margin:8px 0;background:white;border:1px solid #cdd6ce;border-radius:10px}.card>summary{padding:14px 18px;font-weight:650}.card>summary .badge{float:right;margin-left:5px;background:#f7f8f3;font-weight:500}.body{border-top:1px solid #dce2da;padding:14px 20px}.body h4{margin:14px 0 6px}.field{min-width:min(200px,100%)}.docs label{display:block;padding:7px 0}.docs input{width:21px;height:21px;vertical-align:middle}.tag{display:inline-block;margin:0 5px;padding:1px 6px;font-size:12px;color:#2b594c;background:#edf2e9;border-radius:4px}pre{white-space:pre-wrap;font:inherit;word-break:normal}.quote{padding:12px;background:#f6f7f2;font-size:15px}.warn{color:#813b26;background:#fff1e8;padding:8px 12px;border-radius:6px}.tools,footer{margin-top:25px;padding:20px 0}.tools button{margin:3px}footer{background:#e8ece5;font-size:14px;color:#41564a}a{color:#24594d}#binder{display:none}.sub{margin:10px 0}.links a{display:inline-block;margin:4px 9px 4px 0}button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #af712c}.tasks{border-top:1px solid #c7d2ca;padding:12px 0}.tasks p{margin:4px 0}#message{font-weight:600}@media(max-width:610px){.wrap{width:calc(100% - 30px)}.top{padding:18px 0}.seal{display:none}.intro{margin-top:16px;gap:8px}.intro h2{font-size:24px}.intro label{width:100%}.dashboard{padding:12px}.card>summary{padding:12px}.body{padding:12px}.row{align-items:stretch}.field{width:100%}nav{gap:6px}nav button{font-size:15px;padding:7px}.top p{font-size:14px}.privacy{margin:10px 0}}table{width:min(480px,100%);border-collapse:collapse}td,th{border:1px solid #cdd6ce;padding:4px 9px;text-align:left}th{background:#ecf1e9}

.scorepanel{background:#204b44;color:white}.scorepanel h2,.scorepanel p{margin:5px 0}.scores{display:flex;gap:7px;flex-wrap:wrap}.scores span{border:1px solid #8aa59c;padding:3px 8px;border-radius:5px}.question{display:grid;margin:8px 0 15px;gap:5px}.question small{color:#715221}.question span{font-size:15px}.question input,.question select{max-width:100%;width:100%}fieldset{min-width:0;border:1px solid #c7d2ca;margin:14px 0}.scorepanel small{font-size:14px}

.grade{margin-top:12px;padding-top:10px;border-top:1px solid #79968c;font-size:14px}.grade select{min-height:38px;margin:4px;padding:4px 8px}.grade .warn{color:#7d2d1b}.social-note,.interpret{font-size:15px;color:#385548}.social-note a{font-weight:700}.interpret{padding:9px 12px;border-left:3px solid #92723a;background:#f8f4e9}

/* ---- 출석부 전용 ---- */
.pick{display:flex;gap:10px;flex-wrap:wrap;align-items:end}.pick .field{min-width:110px}textarea{padding:9px 13px;border:1px solid #afbeb6;border-radius:7px;font:inherit;width:100%}
.inline{display:flex;gap:6px}.inline input{flex:1;min-width:0}
.rosterbox{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr);gap:20px;margin-top:10px}.rosterbox ol{margin:0;padding-left:26px;max-height:260px;overflow:auto}.rosterbox li{display:flex;gap:6px;margin:3px 0}.rosterbox li input{flex:1;min-width:0;min-height:38px;padding:4px 9px}.rosterbox li button{min-height:38px;padding:4px 10px}.empty{color:#667;list-style:none}
.check h3{margin:18px 0 8px}.tools2{display:flex;gap:8px;flex-wrap:wrap;align-items:end}#palette{display:flex;gap:6px;flex-wrap:wrap}
.gridwrap{overflow:auto;border:1px solid #cdd6ce;border-radius:8px;background:white;max-height:70vh}
table.att{border-collapse:separate;border-spacing:0;width:auto;font-size:14px}table.att th,table.att td{border:0;border-right:1px solid #dfe5de;border-bottom:1px solid #dfe5de;padding:0;text-align:center;min-width:34px;height:38px}
table.att thead th{position:sticky;top:0;background:#ecf1e9;z-index:2;font-weight:600}table.att th button{border:0;background:none;min-height:40px;width:100%;padding:2px 0;line-height:1.1;border-radius:0}table.att th button small{display:block;font-size:11px;color:#52635b}
.sticky{position:sticky;left:0;background:#fff;z-index:1}th.sticky{z-index:3;background:#ecf1e9}.sticky.n{min-width:40px;left:0}.sticky.nm{left:40px;min-width:76px;max-width:110px;padding:0 6px;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-right:2px solid #b8c6bc}
td.off,th.off{background:#e3e3df}th.sun small,th.sun span{color:#b3382c}th.sat small,th.sat span{color:#2a5aa8}th.off button{color:#555}th.sel,td.sel:not(.off){box-shadow:inset 0 0 0 2px #af712c}
table.att td button.m{border:0;background:none;width:100%;height:38px;min-height:38px;padding:0;border-radius:0;font-size:17px;font-weight:700}.m.O{color:#1d6b4a}.m.X{color:#b3382c}.m.L,.m.T{color:#8a5a12;font-size:14px}.m.S{color:#2a5aa8;font-size:14px}
tr.foot td{background:#f4f6f1;font-weight:600}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin:8px 0}.kpis div{background:white;border-radius:8px;padding:8px 12px;border:1px solid #cdd6ce}.kpis small{display:block;color:#52635b}.kpis strong{font-size:26px}
table.sum,table.refs{width:100%;font-size:15px}table.sum td,table.sum th{text-align:center}table.sum td:nth-child(2){text-align:left}tr.low{background:#fff1e8}.flag{font-size:12px;color:#813b26;border:1px solid #d9a58f;border-radius:4px;padding:0 5px}
table.refs td{vertical-align:top;font-size:14px}table.refs td:first-child{width:28%;font-weight:600}
.printopt{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:8px}.danger{color:#813b26;border-color:#d9a58f}
.dashboard{margin:18px 0}.dashboard h2{margin:0 0 4px}
@media(max-width:610px){.rosterbox{grid-template-columns:1fr}.pick{width:100%}.pick .field{flex:1}.kpis strong{font-size:22px}.gridwrap{max-height:60vh}table.att{font-size:13px}table.att th,table.att td{min-width:32px}}
@media print{
html,body{background:white!important}header,footer,#desk{display:none!important}#binder{display:block!important}.wrap{width:100%!important;margin:0!important}
#binder article{color:#000;font-size:9pt}.ph h1{font-size:15pt;margin:0 0 4px;letter-spacing:0}.pm{display:flex;gap:18px;font-size:10pt;margin-bottom:5px;align-items:baseline}.pm .sg{margin-left:auto}
table.pt{width:100%;border-collapse:collapse;table-layout:fixed}table.pt th,table.pt td{border:1px solid #000;padding:0;height:6.2mm;text-align:center;font-size:8pt;overflow:hidden;background:none}
table.pt th{height:auto;line-height:1.15;font-weight:600}table.pt th small{font-size:6.5pt;font-weight:400}table.pt .c1{width:8mm}table.pt .c2{width:22mm}table.pt .rm{width:20mm}table.pt td.nm{text-align:left;padding-left:2px;white-space:nowrap}
table.pt td.off,table.pt th.off{background:#c9c9c9!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
table.pt tr.sumrow td{font-weight:700;height:6mm}.pn{font-size:8pt;margin:4px 0 0}
body.portrait table.pt td,body.portrait table.pt th{font-size:6.5pt}body.portrait table.pt td{height:6.8mm}body.portrait table.pt .c2{width:16mm}body.portrait table.pt .rm{width:12mm}body.portrait table.pt th small{font-size:5.5pt}
}
@media print{table.pt th:nth-last-child(3),table.pt th:nth-last-child(2){width:8mm;white-space:nowrap}}
@media(max-width:610px){.pick .field{min-width:0;flex:1 1 130px}.pick input,.pick select{width:100%;min-width:0}.intro{display:block}}
table.sum th,table.sum td{white-space:nowrap;padding:4px 8px}

/* ---- 급식출석부 ---- */
.tabs{display:flex;gap:8px;margin:18px 0 4px;border-bottom:1px solid #c8d1c9;padding:0 0 10px}.tabs button{min-width:130px;font-weight:600}
.chk{display:flex;align-items:center;gap:6px;font-size:15px;min-height:44px}.chk input{width:20px;height:20px}
.warn:empty{display:none}
table.cfg{width:auto;min-width:min(520px,100%);border-collapse:collapse;font-size:14px;margin:8px 0}table.cfg th,table.cfg td{border:1px solid #cdd6ce;padding:4px 10px;text-align:center}table.cfg td:first-child{text-align:left}table.cfg input[type=checkbox]{width:22px;height:22px}table.cfg input[type=date]{min-height:38px;padding:3px 8px}
table.meal .sticky.kd{left:116px;min-width:44px;font-size:12px;border-right:2px solid #b8c6bc}table.meal th.sticky.kd{z-index:3}
table.meal td.nr{background:repeating-linear-gradient(135deg,#d6d6d2 0 3px,#f1f1ee 3px 6px)}table.meal td.tt{font-weight:700;background:#f4f6f1;min-width:40px}
table.meal tbody.ch tr:last-child td{border-bottom:2px solid #9fb0a5}table.meal th .dn{display:block;font-weight:700}table.meal th small{display:block;font-size:11px;color:#52635b}
table.meal tbody.foot td{background:#f4f6f1;font-weight:600}table.meal tbody.foot td.off{background:#e3e3df}
@media print{
body.mealprint #binder article{font-size:7pt}
.meal .mtop{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:3mm}.meal .mtop h1{font-size:18pt;margin:0;letter-spacing:.05em;flex:1;text-align:center}
.meal .mbox{display:flex;flex-direction:column;border:0.5mm solid #000;min-width:44mm;text-align:center;font-size:8.5pt}.meal .mbox span,.meal .mbox b{padding:0.6mm 2mm;line-height:1.2}.meal .mbox b{border-bottom:0.3mm solid #000}.meal .mbox span+span{border-top:0.2mm solid #888}
table.sign{border-collapse:collapse}table.sign th,table.sign td{border:0.3mm solid #000;padding:0 2mm;font-size:8pt;height:5mm;min-width:20mm;text-align:center}table.sign td{height:11mm}table.sign th[rowspan]{min-width:7mm}
table.mt{table-layout:fixed;width:100%}table.mt col.a{width:6mm}table.mt col.b{width:16mm}table.mt col.c{width:17mm}table.mt col.d{width:8mm}table.mt col.dy{width:5.3mm}table.mt col.e{width:8mm}table.mt col.f{width:13mm}
table.mt th,table.mt td{height:4.3mm;font-size:6.5pt;line-height:1;border:0.2mm solid #000;padding:0;text-align:center;overflow:hidden}
table.mt thead{display:table-header-group}table.mt thead th{background:#404040!important;color:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact;height:auto;font-weight:600}
table.mt thead th.off{background:#9a9a9a!important}table.mt thead th.sun{color:#ffb3a8!important}table.mt thead th.sat{color:#a9c6ff!important}table.mt thead th.x{background:none!important;border:0}table.mt td.x{border:0}
table.mt thead th small{font-size:6pt;font-weight:400}
table.mt tbody.ch{break-inside:avoid;page-break-inside:avoid}
table.mt td.off{background:#c9c9c9!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
table.mt td.nr{background:repeating-linear-gradient(135deg,#999 0 0.4mm,#fff 0.4mm 1mm)!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
table.mt td.nm{font-size:7pt}table.mt td.en{font-size:5.8pt;line-height:1.15}table.mt td.kd{font-size:6pt}table.mt td.tt{font-weight:700}
table.mt tbody.ch tr:last-child td{border-bottom:0.45mm solid #000}
table.mt tr.sumr td{height:4.5mm;font-weight:600}
}
@media(max-width:610px){.tabs button{flex:1;min-width:0}table.cfg{font-size:13px}table.cfg th,table.cfg td{padding:3px 5px}}
@media print{.meal .mtop{display:grid!important;grid-template-columns:1fr auto 1fr;align-items:end}.meal .mtop .mbox{justify-self:start;width:44mm}.meal .mtop table.sign{justify-self:end}.meal .mtop h1{flex:none}}
table.meal td{height:30px}table.meal td button.m{height:30px;min-height:30px;font-size:16px}table.meal .sticky.n{min-width:34px;width:34px}table.meal .sticky.nm{left:34px;min-width:62px;max-width:62px;width:62px}table.meal .sticky.kd{left:96px;min-width:42px}

/* ---- 일괄·결석만 체크·빠른 입력 ---- */
table.att td button.m.imp{opacity:.3;font-weight:400}
.bulk{margin-top:8px}
.qlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.qrow{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:56px;padding:8px 14px;border:1px solid #afbeb6;border-radius:10px;background:#fff;font-size:17px;text-align:left;width:100%}
.qrow b{font-weight:600;font-size:15px}.qrow.imp b{opacity:.55}.qrow.sX{background:#fdeceb;border-color:#d9a58f}.qrow.sX b{color:#b3382c}.qrow.sT,.qrow.sL{background:#fff6e2}.qrow.sS{background:#e8f0fb}.qrow.sN b{color:#777}.qrow.sO b{color:#1d6b4a}
.qrow.out{opacity:.5;background:#f1f1ee}
@media(max-width:610px){.qlist{grid-template-columns:1fr}.qrow{min-height:60px}}
