:root{--ink:#204f46;--green:#2e846e;--line:#d7e5df;--pale:#f3f8f5;--muted:#657c73}*{box-sizing:border-box}body{margin:0;background:#f4f7f5;color:var(--ink);font:15px Tahoma,Arial,sans-serif;line-height:1.7}button,input,textarea,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);border-radius:8px;padding:9px 15px;color:var(--ink);background:#fff}button:hover{background:#eaf4ed}button:disabled{opacity:.55;cursor:default}button.primary{background:var(--green);color:#fff;border-color:var(--green)}button.delete{padding:4px 7px;font-size:12px;color:#a23737}button:focus-visible,a:focus-visible,input:focus,textarea:focus,select:focus{outline:2px solid #299a83;outline-offset:2px}a{color:#276e88}header{background:linear-gradient(110deg,#3189b6,#4cb47e);color:#fff;padding:24px 28px 18px}.brand{max-width:1250px;margin:auto;min-height:95px;position:relative}.official{font-size:12px;line-height:1.9;max-width:33%}.brand img{position:absolute;top:0;left:50%;transform:translateX(-50%);width:130px;height:auto}h1{margin:12px auto 0;max-width:1300px;text-align:center;font-size:23px;line-height:1.8;font-weight:600}.wrap{max-width:1500px;margin:24px auto;padding:0 22px}.toolbar{display:flex;flex-wrap:wrap;gap:9px;align-items:center}.toolbar .spacer{flex:1}.mode{font-size:12px;border:1px solid var(--line);border-radius:20px;padding:3px 13px}.editing .mode{background:#fff1d8;border-color:#e9cea4}.meta{display:flex;gap:20px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin:14px 0}#message{background:#eaf3ee;padding:10px 14px;border-right:3px solid #6baa91;border-radius:6px;font-size:13px;margin:12px 0}#message.error{background:#fff0ed;color:#922e27;border-color:#ce8377}#configured{background:#fff7e7;border:1px solid #ead3a0;padding:10px 14px;font-size:13px}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px}.scroll{overflow:auto}table{border-collapse:collapse;width:100%;table-layout:fixed;min-width:850px}thead{background:#e7f2ec;color:#24574b}th{font-size:13px;font-weight:600;padding:12px 8px;border:1px solid #c5d8ce;text-align:center;white-space:normal}td{border:1px solid var(--line);padding:10px 8px;vertical-align:middle;text-align:center;overflow-wrap:anywhere;white-space:pre-wrap;font-size:14px}tr:nth-child(even){background:#f8fbf9}td.serial{width:4%;font-size:12px}th:first-child{width:4%}.date{width:13%}.day{width:9%}.name{width:34%;text-align:right}.type{width:15%}.teacher{width:20%}.followup table{min-width:1450px}.followup .name{width:auto}.followup th:nth-child(4){width:21%}.followup th:nth-child(6){width:12%}.followup th:nth-child(9){width:15%}.followup th:nth-child(2),.followup th:nth-child(8){width:10%}.followup th:nth-child(3){width:6%}.followup th:nth-child(5),.followup th:nth-child(7){width:8%}.followup th:last-child{width:10%}.editing.followup th:last-child{width:4%}.editing th:last-child{width:5%}td.done{background:#eff7ee}td input,td textarea,td select{width:100%;background:#fffef8;border:1px solid #cbdcd1;color:var(--ink);border-radius:5px;padding:7px 5px;font-size:13px}td textarea{min-height:75px;resize:vertical;line-height:1.7}.dateParts{display:flex;flex-direction:column;gap:4px}.dateParts select{font-size:12px;padding:4px}.qr svg{width:92px;height:92px;max-width:100%;display:block;margin:auto}.qr a{display:block;font-size:11px;margin-top:3px}.qr small{font-size:10px}input,textarea{color:var(--ink)}.notes{margin-top:22px}.notes label{display:block;font-size:14px;margin-bottom:5px}.notes textarea{width:100%;min-height:70px;padding:10px;border:1px solid var(--line);border-radius:6px}.notes p{border-bottom:1px solid var(--line);min-height:35px;white-space:pre-wrap;font-size:14px}.principal{width:300px;margin:24px auto 8px 0;text-align:center;break-inside:avoid}.principal label{display:block;font-size:13px;color:var(--muted)}.principal strong{display:block;font-size:17px;margin:8px 0;font-weight:500}.principal input{border:1px solid var(--line);padding:6px 10px;border-radius:6px;text-align:center;width:100%;margin:8px 0}.signature-line{height:55px;border-bottom:1px solid #abc6b9;width:200px;margin:auto}.signature-image{display:block;width:230px;height:75px;object-fit:contain;margin:auto}#signatureTools button{font-size:11px;margin:6px 2px;padding:5px 9px}.help{font-size:12px;color:var(--muted);margin:15px 0 0}footer{text-align:center;color:var(--muted);font-size:12px;padding:15px}.printValue{display:none}dialog{border:1px solid var(--line);border-radius:14px;padding:25px;width:min(460px,94vw);color:var(--ink);box-shadow:0 15px 70px #102b3b30}dialog::backdrop{background:#173b3b60}dialog h2{font-size:20px;margin:0 0 12px}dialog label{display:block;margin-bottom:8px}dialog input{padding:11px;border:1px solid var(--line);border-radius:7px;width:100%;margin:8px 0 15px}dialog .actions{display:flex;gap:8px;justify-content:flex-end}#loginError{color:#a13730;font-size:13px}#signatureCanvas{display:block;width:100%;height:150px;background:#fff;border:1px dashed #accabc;touch-action:none}nav{display:flex;gap:18px;margin-bottom:16px;font-size:13px}#title{overflow-wrap:normal}[hidden]{display:none!important}@media(max-width:700px){header{padding:16px 16px 12px}.brand{min-height:90px}.official{font-size:9px;max-width:36%}.brand img{width:95px}h1{font-size:18px}.wrap{padding:0 10px;margin:15px auto}.panel{padding:10px}.toolbar button{font-size:12px;padding:8px}.principal{width:250px}.toolbar .spacer{display:none}.mode{margin-right:auto}}
@media print{@page{size:A4 landscape;margin:10mm}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}body{background:#fff;font-size:10pt}header{padding:10px 14px;background:linear-gradient(110deg,#3189b6,#4cb47e)!important}.brand{min-height:58px}.brand img{width:72px}.official{font-size:7px;line-height:1.7}h1{font-size:14px;margin:3px auto}.wrap{margin:12px 0 0;padding:0;max-width:none}.toolbar,.meta,#message,#configured,nav,.help,footer,dialog,.remove,#signatureTools{display:none!important}.panel{border:0;border-radius:0;padding:0}.scroll{overflow:visible}table,.followup table{min-width:0!important;width:100%!important;table-layout:fixed}.followup.editing .link{display:none}.followup.editing th:nth-last-child(3){display:none}.editing th:last-child{display:none}th{font-size:8px;padding:6px 3px}td{font-size:9px;padding:7px 4px}.followup td{font-size:8px}.followup th:nth-child(4){width:20%}tr{break-inside:avoid}thead{display:table-header-group}td input,td textarea,td select,.dateParts{display:none!important}.printValue{display:block}td.date:not(:has(.dateParts)) .printValue,td.newDate:not(:has(.dateParts)) .printValue{display:none}.qr svg{width:48px;height:48px}.qr a{display:none}.notes{margin-top:12px;break-inside:avoid}.notes label{font-size:9px}.notes textarea{display:none!important}#notesText{display:block!important;font-size:9px;min-height:20px;margin-top:3px}.principal{width:220px;margin-top:14px}.principal label{font-size:9px}.principal strong{font-size:12px;margin:3px 0}#principal{display:none!important}#principalText{display:block!important}.signature-line{height:28px;width:150px}.signature-image{height:40px;width:170px}body.followup .notes{font-size:8px}}
