*{box-sizing:border-box}body{margin:0;background:#f3f5f8;color:#18273c;font-family:Arial,Microsoft JhengHei,sans-serif;font-size:16px;line-height:1.6}button,input,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #528bdf;outline-offset:3px}.shell{min-height:100vh}.sidebar{width:232px;position:fixed;inset:0 auto 0 0;background:#10263d;color:#fff;padding:34px 23px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;font-size:24px;font-weight:800;letter-spacing:2px}.brandmark{background:#d3f36b;color:#10263d;width:42px;height:42px;border-radius:12px;display:grid;place-items:center}.brand small{display:block;font-size:10px;letter-spacing:2px;color:#aebecd;font-weight:400}.nav{margin-top:50px;display:grid;gap:10px}.nav button{display:flex;gap:14px;align-items:center;border:0;background:none;color:#b9c8d7;padding:14px;border-radius:10px;text-align:left;font-size:16px}.nav button.active{background:#d3f36b;color:#10263d;font-weight:700}.sidefoot{margin-top:auto;color:#adbdcd;font-size:14px;border-top:1px solid #304358;padding-top:20px}.sidefoot strong{color:#fff;display:block}.main{margin-left:232px;padding:0 44px 70px;max-width:1600px}.topbar{min-height:96px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dde3eb;gap:12px}.breadcrumb{font-size:14px;color:#778498;letter-spacing:.5px}.role{display:flex;align-items:center;gap:12px;font-size:14px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 17px;border:1px solid #d9e0e9;border-radius:8px;background:#fff;color:#24364b;text-decoration:none;font-weight:600;min-height:44px}.btn.primary{background:#163a57;color:#fff;border-color:#163a57}.btn.lime{background:#d3f36b;border-color:#d3f36b;color:#10263d}.btn.quiet{background:transparent}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:32px 0 24px}h1{font-size:30px;line-height:1.35;margin:0 0 8px;font-weight:800;letter-spacing:-.5px}h2{font-size:19px;margin:0}h3{font-size:17px;margin:0}.subtle{color:#6e7f92;font-size:14px;margin:0}.eyebrow{font-size:12px;letter-spacing:2px;color:#718399;font-weight:700}.panel{background:#fff;border:1px solid #dfe5ec;border-radius:14px;padding:25px;margin-bottom:22px}.panelhead{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px}.filters{display:flex;gap:12px;flex-wrap:wrap;align-items:end}label{font-size:14px;color:#637389;display:grid;gap:6px}input,select{width:100%;min-height:44px;border:1px solid #d9e1ea;border-radius:7px;background:#fff;padding:8px 11px;color:#1b2d43}input[type=date]{min-width:148px}.search{max-width:280px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:24px 0}.stat{padding:23px 24px;background:#fff;border:1px solid #dfe5ec;border-radius:12px}.stat:first-child{background:#163a57;color:#fff;border:0}.statlabel{display:flex;align-items:center;justify-content:space-between;color:#6e7f92;font-size:14px}.stat:first-child .statlabel{color:#d0dce6}.statnum{font-size:38px;font-weight:750;line-height:1.4;font-variant-numeric:tabular-nums;margin:8px 0}.statnum small{font-size:16px;font-weight:400;margin-left:7px}.statnote{font-size:13px;color:#718096}.stat:first-child .statnote{color:#d0dce6}.twocol{display:grid;grid-template-columns:1.55fr 1fr;gap:22px}.empty{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;padding:25px;color:#768699}.empty svg{color:#7894ac;margin-bottom:8px}.empty strong{color:#354d63;font-size:18px}.empty .btn{margin-top:10px}.pill{font-size:13px;padding:4px 10px;border-radius:30px;background:#eef3f8;color:#597088;white-space:nowrap}.pill.present{background:#e7f5ed;color:#27704f}.pill.leave{background:#eaf0fc;color:#4e6cac}.pill.absent{background:#fce9e7;color:#b34e44}.tablewrap{overflow-x:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left;font-size:14px}th{font-weight:500;color:#728297;background:#f7f9fc;padding:13px 16px;border-bottom:1px solid #e6ebf1}td{padding:16px;border-bottom:1px solid #edf0f4}tr:last-child td{border-bottom:0}.studentname{font-weight:700;font-size:16px;color:#263c51}.studentcode{font-size:12px;color:#7b8b9d}.avatar{display:inline-grid;place-items:center;width:36px;height:36px;background:#eef2f6;color:#59718a;border-radius:50%;font-weight:700;flex-shrink:0}.namecell{display:flex;align-items:center;gap:12px}.bar{width:74px;height:5px;background:#e9eef4;border-radius:20px;display:inline-block;overflow:hidden;margin-left:10px;vertical-align:middle}.bar i{display:block;height:100%;background:#5e9d80}.notice{background:#eef4fb;border:1px solid #d7e4f3;border-radius:10px;padding:14px 18px;font-size:14px;margin-bottom:20px}.notice.error{background:#fff0ed;color:#a23e31;border-color:#f5c9bf}.notice.success{background:#edf8ee;color:#306d45;border-color:#c9e5ce}.loading{padding:35px;text-align:center;color:#6c7d90}.daytoolbar{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap}.attendance-list{display:grid;gap:0}.attendance-row{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #e8edf3;padding:19px 0}.statusbuttons{display:flex;gap:8px}.statusbuttons button{min-width:67px;min-height:44px;border:1px solid #dce3eb;border-radius:7px;background:#fff;color:#7b8898;font-size:14px}.statusbuttons button.selected.present{background:#e0f2e7;color:#216841;border-color:#72b18e}.statusbuttons button.selected.leave{background:#e7edfc;color:#4567a6;border-color:#7b99d2}.statusbuttons button.selected.absent{background:#fde5e1;color:#ac4033;border-color:#d98276}.savebar{position:sticky;bottom:16px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 22px;background:#10263d;color:#fff;border-radius:12px;box-shadow:0 6px 25px #10263d20;margin-top:20px}.savebar small{color:#aebecc}.progress{height:5px;background:#e4e9ef;border-radius:9px;margin:20px 0 0;overflow:hidden}.progress i{height:100%;display:block;background:#76a077}.dropzone{padding:35px;text-align:center;border:2px dashed #d4dee9;border-radius:10px;background:#f8fafc;margin:24px 0}.dropzone input{max-width:360px;margin:20px auto 0;background:#fff}.actions{display:flex;gap:10px;flex-wrap:wrap}.modalback{position:fixed;inset:0;background:#0d203a88;z-index:50;display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(3px)}.modal{background:#fff;width:100%;max-width:420px;padding:30px;border-radius:16px;box-shadow:0 20px 90px #0003}.modal label{margin:18px 0}.modalhead{display:flex;justify-content:space-between;align-items:center}.iconbtn{border:0;background:transparent;color:#6f8298;padding:8px;display:inline-flex}.modal .primary{width:100%;margin-top:8px}.trend{display:flex;gap:9px;align-items:end;height:150px;border-bottom:1px solid #e0e7ed;padding:10px 0 0}.trenditem{flex:1;height:100%;display:flex;flex-direction:column;justify-content:end;align-items:center;min-width:0}.trendbar{background:#84ae99;border-radius:5px 5px 0 0;min-height:3px;width:65%;max-width:35px}.trenditem span{font-size:12px;color:#7b8c9c;margin-top:10px}.legend{display:flex;gap:15px;flex-wrap:wrap;font-size:13px;color:#7a8999;margin-top:16px}.legend i{width:9px;height:9px;display:inline-block;border-radius:2px;margin-right:5px;background:#84ae99}.distribution{display:grid;gap:18px;margin-top:18px}.distribution-row{display:grid;grid-template-columns:44px 1fr 35px;align-items:center;gap:15px;font-size:14px;color:#687b8f}.distribution-track{height:10px;background:#f0f3f7;border-radius:5px;overflow:hidden}.distribution-track i{height:100%;display:block;background:#7fae94}.footnote{font-size:13px;color:#8593a2;margin:18px 0 0}.mobilebrand{display:none}.linkbtn{background:none;border:0;color:#376583;text-decoration:underline;padding:4px;font-size:14px}.date-caption{font-weight:700;color:#314b61}.reportdetails{margin-top:20px}.reportdetails summary{cursor:pointer;font-weight:700;padding:12px 0}.tabline{display:flex;gap:8px;align-items:center}.errorlist{max-height:170px;overflow:auto;color:#a34737;font-size:14px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:1100px){.sidebar{width:200px;padding:28px 18px}.main{margin-left:200px;padding:0 26px 65px}.stats{gap:12px}.stat{padding:18px}.twocol{grid-template-columns:1fr}.heading{align-items:start}.statnum{font-size:32px}}@media(max-width:760px){.sidebar{position:fixed;inset:auto 0 0;width:100%;height:auto;padding:8px 6px max(8px,env(safe-area-inset-bottom));z-index:30;background:#10263d}.sidebar .brand,.sidefoot{display:none}.nav{display:flex;margin:0;justify-content:space-around;gap:4px}.nav button{flex:1;justify-content:center;flex-direction:column;gap:3px;padding:8px 4px;border-radius:8px;font-size:12px}.nav button svg{width:21px;height:21px}.main{margin-left:0;padding:0 16px 112px}.topbar{min-height:75px}.breadcrumb{display:none}.mobilebrand{display:flex;font-size:20px;gap:8px;letter-spacing:1px}.mobilebrand .brandmark{width:32px;height:32px;border-radius:9px}.role{font-size:12px;gap:6px}.role .btn{font-size:13px;padding:8px 10px;min-height:40px}.heading{margin:25px 0 20px;gap:12px;flex-wrap:wrap}h1{font-size:26px}.heading .btn{font-size:14px}.panel{padding:18px;border-radius:11px;margin-bottom:16px}.panelhead{flex-wrap:wrap;margin-bottom:16px}.stats{grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.stat{padding:17px}.statnum{font-size:32px;margin:5px 0}.statnote{font-size:12px}.twocol{gap:0}.filters{gap:10px}.filters label{flex:1;min-width:130px}.filters .btn{flex:1}.filters input[type=date]{min-width:0}.search{max-width:none;width:100%}.attendance-row{flex-direction:column;align-items:stretch;gap:12px;padding:17px 0}.statusbuttons{gap:7px}.statusbuttons button{flex:1;min-width:0;min-height:47px;font-size:15px}.savebar{bottom:94px;padding:13px 16px;flex-wrap:wrap;gap:10px}.savebar .btn{margin-left:auto}.savebar small{display:block}.empty{padding:24px 5px}.dropzone{padding:24px 12px}th,td{padding:12px}.daytoolbar>label{flex:1}.daytoolbar .btn{font-size:14px}.modal{padding:24px}.tabline{flex-wrap:wrap}.bar{display:none}.role>span{display:none}.footnote{font-size:12px}.date-caption{font-size:14px}}.panelhead{flex-wrap:wrap}.sort-control{min-width:180px}.filters{max-width:100%}.btn.danger{color:#a53d32;border-color:#edcbc6;background:#fff8f7}@media(max-width:760px){.roster-table th:nth-child(2),.roster-table th:nth-child(3),.roster-table td:nth-child(2),.roster-table td:nth-child(3){display:none}.roster-table .studentname,.roster-table .studentcode{white-space:normal;overflow-wrap:anywhere;max-width:170px}.roster-table td:last-child{width:90px}}
