:root{color:#253b38;font-synthesis:none;text-rendering:optimizelegibility;--green:#176c58;--muted:#71817b;--line:#e1e8e4;--paper:#fff;--soft:#eaf4ee;background:#f5f7f6;font-family:Noto Sans Thai,Thonburi,Leelawadee UI,system-ui,sans-serif;font-size:14px;line-height:1.6}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;font-weight:500}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline-offset:3px;outline:3px solid #a7c6f2}input,select{color:#253b38;background:#fff;border:1px solid #d6e0d9;border-radius:9px;width:100%;min-height:44px;padding:10px 12px}label{flex-direction:column;gap:7px;font-weight:500;display:flex}label small{color:var(--muted);font-weight:400}h1,h2,p{margin-top:0}h1{letter-spacing:-.6px;margin-bottom:10px;font-size:30px;font-weight:650;line-height:1.35}h2{margin-bottom:8px;font-size:17px;line-height:1.5}p{color:var(--muted)}.primary,.secondary,.text-button{border:1px solid #0000;border-radius:9px;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:10px 17px;text-decoration:none;display:inline-flex}.primary{background:var(--green);color:#fff}.primary:hover{background:#125847}.secondary{color:var(--green);border-color:var(--line);background:#fff}.secondary:hover{background:var(--soft)}.text-button{color:var(--muted);background:0 0;padding-left:0}.app-shell{grid-template-columns:252px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{background:var(--paper);border-right:1px solid var(--line);flex-direction:column;gap:27px;padding:32px 20px 18px;display:flex}.brand{align-items:center;gap:12px;padding:0 8px;display:flex}.brand>span{background:var(--green);color:#fff;border-radius:12px;place-items:center;width:44px;height:44px;display:grid}.brand strong{font-size:20px;font-weight:650}.brand small{color:var(--muted);letter-spacing:.4px;font-size:11px;display:block}.school-name{color:var(--muted);border-bottom:1px solid var(--line);padding:14px 10px;font-size:12px}nav{flex-direction:column;gap:8px;display:flex}nav button{color:var(--muted);text-align:left;background:0 0;border:0;border-radius:9px;align-items:center;gap:10px;padding:12px 14px;font-size:13px;display:flex}nav .selected{color:var(--green);background:var(--soft)}.profile{border-top:1px solid var(--line);align-items:center;gap:9px;margin-top:auto;padding-top:20px;display:flex}.avatar{width:35px;height:35px;color:var(--green);background:#e9eee5;border-radius:50%;flex-shrink:0;place-items:center;display:grid}.profile strong{font-size:12px;font-weight:500}.profile small{color:var(--muted);font-size:11px;display:block}.profile button{color:var(--muted);background:0 0;border:0;margin-left:auto;padding:6px}.main{min-width:0;padding:0 44px 24px}.topbar{border-bottom:1px solid var(--line);height:76px;color:var(--muted);justify-content:space-between;align-items:center;gap:16px;margin-bottom:35px;font-size:12px;display:flex}.topbar>span:last-child{align-items:center;gap:7px;display:flex}.page-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:24px;margin-bottom:26px;display:flex}.page-heading p{margin-bottom:0;font-size:13px}.eyebrow{color:var(--green);letter-spacing:.5px;margin-bottom:10px;font-size:11px;font-weight:500;display:block}.date-picker{min-width:180px;font-size:12px}.tabs{background:#e9eeeb;border-radius:11px;flex-wrap:wrap;gap:4px;margin-bottom:25px;padding:5px;display:inline-flex}.tabs button{color:var(--muted);background:0 0;border:0;border-radius:8px;padding:10px 20px}.tabs button[aria-pressed=true]{color:var(--green);background:#fff;box-shadow:0 1px 4px #182e2210}.summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:30px;display:grid}.summary-grid>div{border:1px solid var(--line);background:#fff;border-radius:13px;padding:21px 23px}.summary-grid span{color:var(--muted);font-size:12px;display:block}.summary-grid strong{font-variant-numeric:tabular-nums;font-size:35px;font-weight:550;line-height:1.7;display:block}.summary-grid small{color:var(--muted);font-size:11px}.panel{background:var(--paper);border:1px solid var(--line);border-radius:13px;overflow:hidden}.panel-heading{border-bottom:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;padding:22px 25px;display:flex}.panel-heading h2{margin:0}.panel-heading span,.panel-heading p{color:var(--muted);margin:4px 0 0;font-size:12px}.task-list{padding:0 23px}.task{border:0;border-bottom:1px solid var(--line);text-align:left;width:100%;color:inherit;background:#fff;align-items:center;gap:15px;padding:21px 0;display:flex}.task:hover{background:#f9fbf9}.task:last-child{border-bottom:0}.task-icon{color:var(--green);background:var(--soft);border-radius:10px;flex:0 0 43px;place-items:center;height:43px;display:grid}.task-detail{flex:1;min-width:0}.task-detail strong{font-size:14px;display:block}.task-detail small{color:var(--muted);margin-top:4px;font-size:11px;display:block}.task-count{color:var(--muted);font-variant-numeric:tabular-nums;font-size:12px}.badge{color:#8a6c28;white-space:nowrap;background:#fbf3dc;border-radius:15px;padding:5px 11px;font-size:11px}.badge.submitted,.badge.locked{color:var(--green);background:var(--soft)}.badge.not_started{color:var(--muted);background:#f0f3f1}.roster{padding:0 25px}.student-row{border-bottom:1px solid var(--line);align-items:center;gap:14px;padding:14px 0;display:flex}.student-row:last-child{border-bottom:0}.roll{color:var(--muted);text-align:center;font-variant-numeric:tabular-nums;flex:0 0 30px;font-size:12px}.student-name{flex:1;min-width:120px}.student-name strong{font-size:13px;font-weight:500;display:block}.student-name small{color:var(--muted);font-size:11px}.student-row select{width:135px;font-size:13px}.student-note{width:180px;font-size:12px}.student-row select[data-status=PRESENT]{color:#25684a;background:#edf7ef;border-color:#d9e9de}.student-row select[data-status=LATE]{color:#886024;background:#fcf5df;border-color:#eee5cd}.student-row select[data-status=ABSENT]{color:#a44b4b;background:#f9eeee;border-color:#eedcdc}.student-row select[data-status=SICK_LEAVE],.student-row select[data-status=PERSONAL_LEAVE]{color:#3d6788;background:#edf4fb;border-color:#dce8f0}.status-counts{color:var(--muted);border-top:1px solid var(--line);flex-wrap:wrap;gap:17px;padding:16px 25px;font-size:12px;display:flex}.status-counts span{align-items:center;gap:5px;display:inline-flex}.status-counts i{background:#8e9993;border-radius:50%;width:6px;height:6px}.status-counts i[data-status=PRESENT]{background:#489565}.status-counts i[data-status=LATE]{background:#c09d40}.status-counts i[data-status=ABSENT]{background:#bd7373}.status-counts i[data-status=SICK_LEAVE],.status-counts i[data-status=PERSONAL_LEAVE]{background:#7399bf}.action-row{border-top:1px solid var(--line);background:#fbfcfb;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;padding:20px 25px;display:flex}.action-row>span{color:var(--muted);font-size:11px}.action-row>div{flex-wrap:wrap;gap:10px;display:flex}.empty{text-align:center;margin:0;padding:38px 25px;font-size:13px}.notice{border-radius:9px;margin-bottom:20px;padding:13px 16px;font-size:13px}.notice.error{color:#994343;background:#fbebeb}.notice.success{color:var(--green);background:var(--soft)}footer{color:#93a09a;text-align:center;padding-top:32px;font-size:11px}.loading{min-height:100vh;color:var(--muted);place-items:center;display:grid}.login-page{background:#fff;grid-template-columns:1fr 1fr;min-height:100vh;display:grid}.login-story{background:#e6eee5;flex-direction:column;justify-content:center;padding:70px 12%;display:flex;position:relative;overflow:hidden}.login-story:after{content:"";border:1px solid #b8ccb7;border-radius:50%;width:430px;height:430px;position:absolute;bottom:-210px;right:-240px;box-shadow:0 0 0 50px #d8e4d755,0 0 0 110px #d8e4d733}.login-mark{background:var(--green);color:#fff;border-radius:20px;place-items:center;width:74px;height:74px;margin-bottom:46px;display:grid}.login-story h1{letter-spacing:-1px;margin-bottom:22px;font-size:40px;font-weight:550;line-height:1.5}.login-story p{color:#637966;font-size:14px}.story-line{background:#8dad82;width:50px;height:3px;margin-top:22px}.login-panel{place-items:center;padding:50px 40px;display:grid}.login-panel form{width:100%;max-width:360px}.login-panel h2{font-size:26px;font-weight:600}.login-panel form>p{margin-bottom:32px;font-size:13px}.login-panel label{margin-bottom:18px;font-size:12px}.login-panel form>button{width:100%;margin:8px 0 18px}.login-panel form>small{text-align:center;color:var(--muted);font-size:11px;display:block}.account-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;display:grid}.account-panel{padding:26px}.account-panel label{margin:20px 0;font-size:12px}.account-panel p{font-size:12px}.secret{overflow-wrap:anywhere;background:var(--soft);border-radius:8px;padding:14px;display:block}.recovery code{overflow-wrap:anywhere;padding:3px 0;font-size:12px;display:block}@media (width>=1450px){.main{width:100%;max-width:1400px;margin:auto}}@media (width<=1100px){.app-shell{grid-template-columns:220px minmax(0,1fr)}.main{padding:0 26px 20px}.student-note{width:135px}.task-count{display:none}.summary-grid{gap:12px}.summary-grid>div{padding:17px}}@media (width<=850px){.app-shell{grid-template-columns:1fr}.sidebar{border-right:0;border-bottom:1px solid var(--line);gap:10px;padding:17px 20px}.brand{padding:0}.brand strong{font-size:18px}.brand small,.school-name{display:none}.sidebar nav{flex-flow:wrap;margin-top:5px}.profile{border:0;margin:0;padding:0;position:absolute;top:17px;right:18px}.profile>div:not(.avatar){display:none}.sidebar nav button{padding:9px 12px;font-size:12px}.topbar{height:57px;margin-bottom:25px}.main{padding:0 22px 20px}.student-note{width:155px}.login-story{padding:50px 12%}.login-story h1{font-size:32px}.account-grid{grid-template-columns:1fr}}@media (width<=600px){h1{font-size:25px}.main{padding:0 15px 20px}.topbar{font-size:11px}.topbar>span:first-child{display:none}.topbar{justify-content:flex-end}.page-heading{gap:16px}.date-picker{width:100%;min-width:0}.tabs{width:100%}.tabs button{flex:1;padding:9px;font-size:12px}.summary-grid{gap:8px;margin-bottom:20px}.summary-grid>div{border-radius:9px;padding:12px 10px}.summary-grid span{font-size:11px}.summary-grid strong{font-size:27px}.summary-grid small{font-size:10px;display:block}.panel-heading{padding:18px}.panel-heading>span{display:none}.task-list{padding:0 16px}.task{flex-wrap:wrap;gap:10px;padding:17px 0}.task-detail{min-width:140px}.task .badge{margin-left:53px}.roster{padding:0 17px}.student-row{flex-wrap:wrap;gap:9px}.student-name{flex-basis:calc(100% - 50px)}.student-row select{width:calc(50% - 24px);margin-left:39px}.student-note{width:calc(50% - 24px)}.student-row input,.student-row select{font-size:16px}.action-row{padding:17px}.action-row>div{width:100%}.action-row button{flex:1}.login-page{grid-template-columns:1fr}.login-story{min-height:180px;padding:30px}.login-mark{border-radius:12px;width:42px;height:42px;margin-bottom:15px}.login-mark svg{width:24px}.login-story h1{margin:0;font-size:24px}.login-story h1 br,.login-story p,.story-line{display:none}.login-panel{padding:35px 25px}.login-panel h2{font-size:24px}.login-panel input{font-size:16px}.account-panel{padding:20px}.profile .avatar{display:none}}textarea{font:inherit;border:1px solid var(--line);resize:vertical;border-radius:9px;width:100%;min-height:90px;padding:10px 12px}textarea:focus-visible{outline-offset:3px;outline:3px solid #a7c6f2}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;display:grid}.role-options{border:1px solid var(--line);border-radius:9px;flex-wrap:wrap;gap:12px 20px;margin:20px 0;padding:15px;display:flex}.role-options legend{color:var(--muted);padding:0 8px;font-size:12px}.role-options label,.checkbox-label{flex-direction:row;align-items:center;font-size:12px}.role-options input,.checkbox-label input{width:17px;height:17px;min-height:17px;margin:0}.form-actions{justify-content:flex-end;gap:10px;margin-top:20px;display:flex}.user-form,.credential-panel{margin-bottom:24px}.credential-panel .secret{margin:8px 0 15px}.search-input{max-width:260px;font-size:12px}.users-list{padding:0 25px}.user-row{border-bottom:1px solid var(--line);align-items:center;gap:18px;padding:20px 0;display:flex}.user-row:last-child{border-bottom:0}.user-row>div:first-child{flex:1}.user-row strong{font-size:13px;font-weight:550;display:block}.user-row small{color:var(--muted);font-size:11px;display:block}.user-roles{color:var(--green);margin-top:6px;font-size:11px;display:block}.mfa-state{color:var(--muted);align-items:center;gap:5px;font-size:11px;display:flex}.user-actions{gap:8px;display:flex}.user-actions button{min-height:36px;padding:7px 12px;font-size:12px}.pagination{border-top:1px solid var(--line);color:var(--muted);justify-content:flex-end;align-items:center;gap:15px;padding:18px 25px;font-size:12px;display:flex}@media (width<=650px){.form-grid{grid-template-columns:1fr}.users-list{padding:0 18px}.user-row{flex-wrap:wrap;gap:12px}.user-row>div:first-child{min-width:180px}.mfa-state{display:none}.user-actions{width:100%}.search-input{max-width:none}.role-options{gap:14px}.user-form input,.user-form textarea{font-size:16px}.user-actions button{min-height:44px}.pagination{gap:10px;padding:18px}}.registry-toolbar{flex-wrap:wrap;align-items:end;gap:16px;margin-bottom:22px;display:flex}.registry-toolbar label{min-width:210px;font-size:12px}.registry-toolbar .search-input{flex:1;max-width:360px}.registry-toolbar>button{margin-left:auto}.registry-form{margin-bottom:24px;padding:25px}.registry-form>label{margin-top:20px;font-size:12px}.registry-form .form-grid label{font-size:12px}.registry-form p,.registry-hint{color:var(--muted);margin-top:12px;font-size:12px}.registry-table-wrap{margin-bottom:24px;overflow-x:auto}.registry-table{border-collapse:collapse;text-align:left;width:100%;font-size:12px}.registry-table th{color:var(--muted);white-space:nowrap;background:#f9fbf9;font-weight:500}.registry-table th,.registry-table td{border-bottom:1px solid var(--line);vertical-align:middle;padding:16px 20px}.registry-table td{overflow-wrap:anywhere;max-width:300px}.registry-table tbody tr:last-child td{border-bottom:0}.registry-table .user-actions{flex-wrap:wrap}.registry-student{margin-bottom:24px}.registry-body{padding:20px 25px}.registry-body h3{font-size:14px;font-weight:550}.history-group{margin:24px 0}.history-row{border-bottom:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px;padding:15px 0;display:flex}.history-row strong{font-size:13px;font-weight:550;display:block}.history-row small,.registry-secondary{color:var(--muted);margin:3px 0;font-size:11px;display:block}.history-row span{font-size:12px}.nested-form{border-top:1px solid var(--line);margin-top:25px;padding:23px 0}.nested-form>label{margin-top:18px;font-size:12px}.nested-form p{color:var(--muted);font-size:12px}.impact-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0;display:grid}.impact-grid>span{color:var(--muted);font-size:12px}.impact-grid strong{color:var(--green);font-size:24px;font-weight:550;display:block}.impact-list{color:var(--muted);flex-wrap:wrap;gap:8px 20px;margin-top:16px;font-size:11px;display:flex}.calendar-checks{flex-direction:column;justify-content:center;gap:12px;display:flex}.registry-detail{flex-wrap:wrap;gap:12px 30px;margin:16px 0 22px;font-size:12px;display:flex}.registry-fields{border:0;margin:0;padding:0}.registry-fields>label{margin-top:20px;font-size:12px}@media (width<=650px){.registry-form{padding:18px}.registry-tabs{flex-wrap:wrap;display:flex}.registry-tabs button{flex:1 0 auto}.registry-body{padding:18px}.registry-toolbar{gap:12px}.registry-toolbar label,.registry-toolbar .search-input{flex-basis:100%;width:100%;max-width:none}.registry-toolbar>button{margin-left:0}.registry-form input,.registry-form select,.registry-form textarea,.nested-form input,.nested-form select,.nested-form textarea{font-size:16px}.impact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.registry-table th,.registry-table td{padding:13px}.history-row .user-actions{flex-wrap:wrap;width:100%}.registry-table .user-actions{min-width:110px}}.registry-import-fields{border:0;min-width:0;margin:16px 0 0;padding:0}.registry-import-fields:disabled{opacity:.7}.schedule-slot{border-bottom:1px solid var(--line);align-items:end;padding:16px 0}.reports-page>.panel,.reports-page>.notice{margin-bottom:20px}.report-filter-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:20px 0;display:grid}.report-option input[type=search]{min-height:36px;margin-top:6px;font-size:12px}.report-option-page{justify-content:space-between;align-items:center;gap:6px;min-height:32px;display:flex}.report-option-page small{text-align:center;color:var(--muted);font-size:11px}.report-option-page .text-button{min-height:28px;padding:3px 8px}.report-heading{justify-content:space-between;gap:20px;padding:24px;display:flex}.report-heading p{margin-bottom:6px}.report-badges{flex-direction:column;flex-shrink:0;align-items:flex-end;gap:8px;display:flex}.report-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.report-totals{padding:22px}.report-status-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;padding-bottom:18px;display:grid}.report-status-grid div{flex-direction:column;gap:6px;display:flex}.report-status-grid strong{font-size:24px}.report-sheet-states,.report-quality{border-top:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:12px;margin-top:12px;padding-top:16px;display:flex}.report-quality span{color:var(--muted)}.report-minutes{padding-top:16px}.report-minutes p{margin-bottom:4px}.report-footnote{overflow-wrap:anywhere;margin-bottom:0;padding-top:16px;font-size:11px}.report-warning{color:#73531d;background:#fff4df;border:1px solid #ead19c}.report-warning-text{color:#956012;font-size:12px;display:block}.report-results{overflow:hidden}.report-results>.registry-toolbar,.report-results>.registry-hint,.report-results>.notice,.report-results>p{margin:18px 22px}.report-tabs{border-bottom:1px solid var(--line);margin:0;padding:14px 18px;overflow-x:auto}.report-tabs button{white-space:nowrap;flex-shrink:0}.report-data-table td{text-align:right}.report-data-table th:first-child{text-align:left;min-width:180px}.report-matrix-scroll{max-height:560px}.report-matrix th{text-align:center;vertical-align:top;min-width:120px}.report-matrix th small{font-size:11px;font-weight:400;display:block}.report-matrix th:first-child{z-index:2;background:var(--paper);text-align:left;min-width:210px;position:sticky;left:0}.report-matrix thead th{z-index:3;background:#f2f6f3;position:sticky;top:0}.report-matrix thead th:first-child{z-index:4}.report-matrix td{text-align:center}.report-cell{border:1px solid var(--line);color:#4c5e57;white-space:nowrap;background:#f2f4f2;border-radius:6px;justify-content:center;align-items:center;min-width:36px;padding:4px 8px;font-size:12px;display:inline-flex}.report-cell[data-state=PRESENT]{color:#155b39;background:#e1f3e7;border-color:#b5dcc4}.report-cell[data-state=LATE]{color:#785315;background:#fff1d5;border-color:#ebd39d}.report-cell[data-state=ABSENT]{color:#8c312a;background:#fbe5e2;border-color:#e9c1bb}.report-cell[data-state=PENDING],.report-cell[data-state=MISSING_CALENDAR]{color:#765316;background:#fff3da;border-style:dashed;border-color:#c69a46}.report-cell[data-state=SICK_LEAVE],.report-cell[data-state=PERSONAL_LEAVE]{color:#465887;background:#e9edf9;border-color:#cbd4ee}.report-cell[data-state=NO_MEMBERSHIP]{background:0 0;border-color:#0000}.report-legend{flex-wrap:wrap;gap:8px;padding:0 22px 16px;display:flex}.report-legend-item{align-items:center;gap:5px;font-size:12px;display:inline-flex}.report-notes{min-width:220px}.report-notes small{white-space:normal;overflow-wrap:anywhere;display:block}@media (width<=1100px){.report-filter-grid,.report-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=600px){.report-filter-grid{grid-template-columns:1fr;gap:12px}.report-heading{flex-direction:column;padding:18px}.report-badges{flex-flow:wrap;align-items:flex-start}.report-status-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.report-totals{padding:16px}}.report-exports .report-table td small{margin-top:.35rem;display:block}.report-exports .form-actions{flex-wrap:wrap;margin-block:.75rem}
