:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#2b3035;background:#f7f8fa;font-size:14px}*{box-sizing:border-box}body{margin:0}header{background:#741d30;color:white;padding:15px max(18px,calc((100vw - 1400px)/2));display:flex;justify-content:space-between;align-items:center;gap:20px}.brand,.auth{display:flex;align-items:center;gap:12px}.brand b{display:block;font-size:18px}.brand small{display:block;color:#f2cdd6}.logo{background:white;color:#741d30;font-size:26px;font-weight:800;width:46px;height:46px;display:grid;place-items:center;border-radius:12px}main{max-width:1440px;margin:auto;padding:24px 20px}.intro{display:flex;justify-content:space-between;gap:18px;align-items:center}h1{font-size:24px;margin:0 0 7px}h2{font-size:16px;margin:0}.intro p{margin:0;color:#6a737e}#notice{background:#f4e7ea;color:#681426;padding:12px 16px;border-radius:8px;max-width:520px}.panel,.stats>div{background:white;border:1px solid #e2e5ea;border-radius:12px;padding:18px;margin:18px 0;box-shadow:0 2px 8px #25252508}.toolbar{display:flex;align-items:end;gap:14px;flex-wrap:wrap}label{font-weight:600;display:flex;flex-direction:column;gap:6px}select,input{border:1px solid #cad0d7;border-radius:7px;padding:9px;background:white;color:#202020;font:inherit}input[type=number]{max-width:95px}.btn{cursor:pointer;border:1px solid #741d30;background:#741d30;color:#fff;padding:10px 13px;border-radius:8px;font-weight:600}.btn.outline{background:white;color:#741d30}.btn:disabled{opacity:.4;cursor:not-allowed}.auth .outline{background:transparent;color:white;border-color:#e6b5c0}.hidden{display:none!important}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.stats>div{margin:0}.stats small{display:block;color:#687481;margin-bottom:8px}.stats strong{font-size:25px;color:#741d30}.table-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}.table-heading span{color:#66707b}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;min-width:1100px;font-size:12px}th,td{border:1px solid #8f969c;padding:7px 6px}th{background:#e4ece3;color:#253c2b;text-align:center}thead tr:nth-child(2) th{background:#f1f3f1}.student{min-width:150px}td.center{text-align:center}td input{width:100%;min-width:57px;max-width:75px;padding:7px;text-align:center;background:#fff9de}td input.note{min-width:135px;max-width:none;text-align:left}.status{font-weight:700;white-space:nowrap}.status.ok{color:#277346}.status.pending{color:#a36216}.save{padding:7px 10px}.empty{text-align:center;padding:30px;color:#7b8288}.footnote{color:#6b7480;font-size:12px}.habit-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(195px,1fr));gap:10px;margin-top:15px}.habit-summary article{border:1px solid #ddd;padding:12px;border-radius:8px}.habit-summary article strong{font-size:21px;color:#741d30}.habit-summary article span{display:block;font-size:12px;margin-bottom:6px;color:#59616a}footer{text-align:center;color:#858990;margin:24px}@media(max-width:700px){header,.intro{flex-direction:column;align-items:stretch}.stats{grid-template-columns:repeat(2,1fr)}.auth{flex-wrap:wrap}}@media print{header .auth,.toolbar,.save,#notice,#export,#print{display:none!important}body{background:white}main{padding:0}.panel{border:0;box-shadow:none;padding:6px}.table-scroll{overflow:visible}table{min-width:0;font-size:8px}th,td{padding:3px}.stats{display:none}}

.print-signatures{display:flex;justify-content:space-between;gap:30px;margin:22px 0 8px;text-align:center}.print-signatures>div{width:38%;min-height:115px;display:flex;flex-direction:column;justify-content:space-between}.print-signatures p{line-height:1.5}.print-signatures b{display:block;border-bottom:1px solid #333;padding-bottom:4px}
@media print{@page{size:A4 landscape;margin:11mm} .approval-panel button,.approval-panel .toolbar{display:none!important}.print-signatures{page-break-inside:avoid} .table-scroll{overflow:visible}th,td{border:1px solid #333!important}#habit-summary{display:grid;grid-template-columns:repeat(4,1fr)}h1{font-size:16px}h2{font-size:13px}section{break-inside:avoid}thead{display:table-header-group}}
/* Print long, dynamic rosters over multiple pages without clipping entire sections. */
@media print {
 section { break-inside: auto !important; }
 #sheet tr { break-inside: avoid; }
 #sheet thead { display: table-header-group; }
 #sheet input.count { border:0;background:transparent;min-width:0;max-width:42px;width:42px;padding:0;font-size:8px; }
 #sheet input.note { border:0;background:transparent;min-width:0;padding:0;font-size:8px; }
}
