*{box-sizing:border-box}html{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#f3f5f2;color:#17322f}body{margin:0}.top{background:#173b36;color:white;display:flex;justify-content:space-between;align-items:center;padding:18px max(20px,calc((100vw - 760px)/2));box-shadow:0 3px 15px #102a2530}.brand{display:flex;align-items:center;gap:12px;font-size:16px;font-weight:850;line-height:1.06;letter-spacing:1.5px}.brand small{font-size:10px;letter-spacing:2.5px;color:#b8d4c5}.brand-icon{font-size:40px;color:#e5bb67}.logout{color:white;text-decoration:none;font-size:14px}main{max-width:760px;margin:auto;padding:24px 18px 50px}h1{font-size:clamp(27px,6vw,38px);letter-spacing:-.7px;margin:14px 0}h2{margin:0 0 16px;font-size:20px}.lead{font-size:17px;color:#56645e;margin:0 0 25px}.card,.tile{background:white;border-radius:18px;padding:22px;margin:16px 0;box-shadow:0 3px 18px #1c383009;border:1px solid #e5eae5}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tile{margin:0;min-height:125px;display:flex;flex-direction:column;gap:12px;text-decoration:none;color:#193a34}.tile b{font-size:19px}.tile span{font-size:14px;color:#5f7069}.tile.muted{opacity:.58}label{display:block;font-weight:650;font-size:14px;margin:16px 0 5px}input:not([type=checkbox]),textarea,select{display:block;width:100%;padding:13px 12px;margin-top:7px;border:1px solid #cbd8d0;border-radius:10px;background:#fff;font:inherit;font-size:16px}button{border:0;border-radius:10px;background:#176c56;color:white;font:inherit;font-weight:750;padding:13px 20px;cursor:pointer;margin-top:12px}button.secondary{background:#e9efec;color:#214a3e}button.small{font-size:12px;padding:8px;margin:0}.check{display:flex;align-items:center;gap:10px}.meta,small{color:#66776f;font-size:12px}.bodytext{white-space:normal;line-height:1.55}.member{display:flex;justify-content:space-between;gap:10px;padding:12px 0;border-top:1px solid #e8ede8;align-items:center;overflow-wrap:anywhere}.error{background:#ffe7e7;color:#9b2929;padding:12px;border-radius:10px}.success{background:#e2f6e9;color:#17623c;padding:12px;border-radius:10px}a{color:#176c56}footer{text-align:center;color:#83918a;font-size:12px;margin-top:42px}@media(max-width:450px){.grid{grid-template-columns:1fr}.tile{min-height:90px}.top{padding:15px 18px}}

.button{display:inline-block;background:#176c56;color:white;text-decoration:none;border-radius:10px;padding:12px 17px;font-weight:700;margin:8px 0}.qr{background:white;padding:15px;width:max-content;max-width:100%;margin:20px auto}.table-scroll{overflow-x:auto}table{border-collapse:collapse;font-size:13px;white-space:nowrap}th,td{border-bottom:1px solid #ddd;padding:9px;text-align:left}thead th{background:#e9efec}table td:first-child,table th:first-child{position:sticky;left:0;background:white} @media print{header,.logout,button,form,footer{display:none!important}main{padding:0}.card{box-shadow:none}}
/* Version 15: responsive attendance report, scoped to report only */
body:has(.attendance-report) main{max-width:1480px;width:100%;padding-left:clamp(12px,2vw,32px);padding-right:clamp(12px,2vw,32px)}
.attendance-report .report-filter{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.attendance-report .report-filter label{max-width:280px;flex:1 1 220px}
.attendance-report .report-filter button{margin-bottom:1px}
.attendance-report .report-desktop{width:100%}
.attendance-report .report-table{width:100%;table-layout:fixed;white-space:normal;font-size:clamp(10px,.83vw,13px)}
.attendance-report .report-table th,.attendance-report .report-table td{padding:9px 3px;text-align:center;overflow-wrap:anywhere}
.attendance-report .report-table th:first-child{width:22%;text-align:left;padding-left:8px;position:static}
.attendance-report .report-table th:last-child,.attendance-report .report-table td:last-child{width:5%}
.attendance-report .report-table tbody th{font-weight:500;background:#fff}
.attendance-report .current-month{background:#e0f3e8!important;color:#0e573d;font-weight:750}
.attendance-report .total-cell{font-weight:800}
.attendance-report .report-mobile{display:none}
.attendance-report [hidden]{display:none!important}
@media(max-width:800px){
 .attendance-report .report-desktop{display:none}
 .attendance-report .report-mobile{display:block}
 .attendance-report .member-card{border:1px solid #e1e8e2;border-radius:12px;margin:9px 0;overflow:hidden;background:#fff}
 .attendance-report .member-card summary{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px;cursor:pointer;font-size:14px;list-style:none}
 .attendance-report .member-card summary::-webkit-details-marker{display:none}
 .attendance-report .member-card summary:after{content:'▾';color:#176c56}
 .attendance-report .member-card[open] summary:after{content:'▴'}
 .attendance-report .member-card summary strong{margin-left:auto;white-space:nowrap;font-size:12px;color:#176c56}
 .attendance-report .month-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:0 12px 10px}
 .attendance-report .month-cell{background:#f2f5f2;border-radius:8px;padding:10px 3px;text-align:center;display:flex;flex-direction:column;gap:6px}
 .attendance-report .month-cell span{font-size:11px;color:#53665e}
 .attendance-report .member-card p{padding:0 14px 8px}
}
