:root{color-scheme:light;--ink:#1b2a40;--muted:#708096;--line:#e1e8f0;--surface:#fff;--bg:#f3f6fb;--blue:#2867c7;--blue-dark:#1d4f9b;--blue-soft:#e9f1ff;--green:#17835c;--amber:#a56812;--shadow:0 12px 32px rgba(34,62,98,.06);font-family:"DM Sans",system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}button,input,select{font:inherit}button{cursor:pointer}.hidden{display:none!important}.auth-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 50% 0,#e7f0ff 0,transparent 55%),var(--bg)}.auth-card{width:min(100%,440px);padding:38px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:var(--shadow)}.brand-lockup{display:flex;align-items:center;gap:12px;margin-bottom:36px}.brand-lockup b,.brand-lockup small{display:block;letter-spacing:.09em}.brand-lockup b{font:800 14px Manrope,sans-serif}.brand-lockup small{margin-top:2px;color:var(--muted);font-size:10px;font-weight:700}.brand-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(145deg,#2f75dc,#1b4d9c);color:#fff;font:800 13px Manrope,sans-serif;box-shadow:0 7px 16px #2867c733}.eyebrow{margin:0 0 7px;color:#718198;font-size:10px;font-weight:700;letter-spacing:.13em}.auth-card h1,.topbar h1,.section-heading h2,.panel h2{margin:0;font-family:Manrope,"DM Sans",sans-serif;letter-spacing:-.035em}.auth-card h1{font-size:26px}.auth-card>.muted{margin:9px 0 25px}.muted{color:var(--muted);font-size:13px;line-height:1.6}.form-stack{display:grid;gap:15px}.form-stack label,.user-form label,.report-form label{display:grid;gap:7px;color:#40536b;font-size:12px;font-weight:600}.form-stack input,.user-form input,.user-form select,.report-form input{width:100%;min-height:42px;padding:10px 12px;border:1px solid #d9e2ed;border-radius:9px;background:#fff;color:var(--ink);outline:none}.form-stack input:focus,.user-form input:focus,.user-form select:focus,.report-form input:focus{border-color:#73a0e2;box-shadow:0 0 0 3px #e7f0ff}.form-stack small,.user-form small{color:var(--muted);font-size:10px;font-weight:400}.setup-note{padding:11px 12px;border:1px solid #d8e7fb;border-radius:10px;background:#f3f8ff;color:#58718e;font-size:12px;line-height:1.5}.button{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:0 15px;border:1px solid transparent;border-radius:9px;font-size:12px;font-weight:700;white-space:nowrap;transition:transform .15s,background .15s}.button:hover:not(:disabled){transform:translateY(-1px)}.button:disabled{cursor:not-allowed;opacity:.45}.button.primary{background:var(--blue);color:#fff;box-shadow:0 5px 12px #2867c71c}.button.primary:hover:not(:disabled){background:var(--blue-dark)}.button.secondary{border-color:#dbe4ef;background:#fff;color:#40536b}.form-message{min-height:18px;margin:13px 0 0;color:var(--amber);font-size:12px}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;z-index:5;width:245px;display:flex;flex-direction:column;padding:25px 17px;background:#fff;border-right:1px solid var(--line)}.brand-sidebar{gap:10px;margin:1px 6px 44px}.brand-sidebar .brand-icon{width:40px;height:40px;border-radius:12px}.nav-caption{margin:0 0 10px 10px;color:#91a0b2;font-size:9px;font-weight:700;letter-spacing:.14em}.nav-list{display:grid;gap:5px}.nav-item{width:100%;min-height:43px;display:flex;align-items:center;gap:12px;padding:0 12px;border:0;border-radius:9px;background:transparent;color:#60718a;text-align:left;font-size:12px;font-weight:600}.nav-item>span{width:17px;color:#8090a6;text-align:center;font-size:16px}.nav-item:hover{background:#f5f8fc}.nav-item.active{background:var(--blue-soft);color:var(--blue)}.nav-item.active>span{color:var(--blue)}.nav-item i{min-width:19px;height:19px;display:grid;place-items:center;margin-left:auto;border-radius:20px;background:#e8eef6;color:#61748d;font-size:10px;font-style:normal}.nav-item.active i{background:#fff;color:var(--blue)}.sidebar-footer{display:flex;align-items:center;gap:9px;margin-top:auto;padding:12px 10px;border:1px solid var(--line);border-radius:10px;background:#fbfcfe}.sidebar-footer b,.sidebar-footer small{display:block}.sidebar-footer b{font-size:10px}.sidebar-footer small{max-width:158px;margin-top:3px;overflow:hidden;color:var(--muted);font-size:9px;text-overflow:ellipsis;white-space:nowrap}.status-dot{width:8px;height:8px;flex:0 0 8px;border-radius:100%;background:#a4afbd}.status-dot.ok{background:#2bad7a;box-shadow:0 0 0 3px #e3f5ed}.status-dot.pending{background:#d79b30;box-shadow:0 0 0 3px #fff2da}.logout-button{display:flex;justify-content:space-between;margin-top:10px;padding:10px 11px;border:0;background:transparent;color:#7b899c;font-size:11px}.main-content{max-width:1540px;min-height:100vh;margin-left:245px;padding:31px 38px 20px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:31px}.topbar h1{font-size:25px}.topbar .muted{margin:6px 0 0}.profile-chip{display:flex;align-items:center;gap:10px;padding:7px 11px;border:1px solid var(--line);border-radius:11px;background:#fff}.profile-avatar{width:33px;height:33px;display:grid;place-items:center;border-radius:9px;background:#eaf1fd;color:var(--blue);font-size:11px;font-weight:800}.profile-chip b,.profile-chip small{display:block}.profile-chip b{font-size:11px}.profile-chip small{margin-top:3px;color:var(--muted);font-size:10px}.view{display:none}.view.active{display:block}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:15px}.section-heading h2{font-size:20px}.period-pill{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid var(--line);border-radius:30px;background:#fff;color:#66778d;font-size:10px;font-weight:600}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:16px}.metric-card{min-height:126px;padding:17px;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:0 5px 18px rgba(35,58,84,.025)}.metric-card.metric-blue{background:linear-gradient(145deg,#fff,#f1f6ff)}.metric-top{display:flex;align-items:center;justify-content:space-between;color:#708096;font-size:11px;font-weight:600}.metric-icon{width:27px;height:27px;display:grid;place-items:center;border-radius:8px;background:#eef3fa;color:#647a97;font-size:14px}.metric-blue .metric-icon{background:#e5efff;color:var(--blue)}.metric-card>strong{display:block;margin-top:13px;font:800 25px Manrope,sans-serif;letter-spacing:-.04em}.metric-card>small{display:block;margin-top:3px;color:#8b98a9;font-size:10px}.panel{margin-bottom:15px;padding:17px;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:0 5px 18px rgba(35,58,84,.025)}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.panel h2{font-size:15px}.panel-heading .eyebrow{margin-bottom:4px}.text-button{border:0;background:transparent;color:var(--blue);font-size:11px;font-weight:700}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{padding:10px 11px;border-bottom:1px solid var(--line);color:#8391a3;font-size:9px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}td{padding:12px 11px;border-bottom:1px solid #eef2f6;color:#465971;font-size:11px}tbody tr:last-child td{border-bottom:0}.empty-row{text-align:center;color:#96a2b1;padding:22px 10px}.person-cell b,.person-cell small{display:block}.person-cell b{color:var(--ink);font-size:11px}.person-cell small{margin-top:3px;color:var(--muted);font-size:9px}.status-pill{display:inline-flex;padding:5px 8px;border-radius:20px;background:#fff2da;color:var(--amber);font-size:9px;font-weight:700}.status-pill.approved{background:#e5f5ed;color:var(--green)}.small-button{min-height:29px;padding:0 10px;border:0;border-radius:7px;background:var(--blue);color:#fff;font-size:10px;font-weight:700}.attendance-action{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:21px}.attendance-action h2{font-size:18px}.attendance-action .muted{margin:7px 0 0}.action-buttons{display:flex;gap:9px}.report-panel,.user-panel{display:grid;gap:18px}.report-panel h2,.user-panel h2{font-size:16px}.report-panel .muted{max-width:590px;margin:8px 0 0}.report-form{display:flex;align-items:end;gap:11px;flex-wrap:wrap}.report-form label{min-width:144px}.report-form .button{height:42px}.user-form{display:grid;grid-template-columns:1.25fr 1fr .8fr 1fr auto;align-items:end;gap:11px}.user-form .button{height:42px}.page-footer{display:flex;justify-content:space-between;padding:7px 3px 0;color:#9aa6b4;font-size:9px;letter-spacing:.05em}.toast{position:fixed;right:24px;bottom:24px;z-index:20;max-width:min(420px,calc(100vw - 32px));padding:12px 16px;border:1px solid #dce6f1;border-radius:10px;background:#fff;color:var(--ink);box-shadow:var(--shadow);font-size:12px;opacity:0;pointer-events:none;transform:translateY(8px);transition:opacity .2s,transform .2s}.toast.show{opacity:1;transform:translateY(0)}.toast.error{border-color:#f2d5d5;color:#9d4040}@media(max-width:1100px){.main-content{padding:25px 24px;margin-left:225px}.sidebar{width:225px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.user-form{grid-template-columns:repeat(2,minmax(0,1fr))}.user-form button{width:max-content}}@media(max-width:700px){.sidebar{position:sticky;inset:0 0 auto;width:auto;height:auto;display:block;padding:11px 13px;border-right:0;border-bottom:1px solid var(--line)}.brand-sidebar{margin:0 0 10px}.brand-sidebar .brand-icon{width:34px;height:34px}.nav-caption,.sidebar-footer,.logout-button{display:none}.nav-list{display:flex;overflow:auto;gap:5px}.nav-item{width:auto;min-width:max-content;min-height:36px;padding:0 10px;font-size:10px}.nav-item>span{font-size:13px}.main-content{margin:0;padding:20px 14px}.topbar{align-items:flex-start;margin-bottom:23px}.topbar h1{font-size:21px}.topbar .muted{max-width:250px;font-size:11px}.profile-chip{padding:5px 7px}.profile-chip>div{display:none}.profile-avatar{width:30px;height:30px}.section-heading h2{font-size:18px}.metric-grid{gap:8px}.metric-card{min-height:108px;padding:12px}.metric-top{font-size:10px}.metric-card>strong{font-size:21px}.metric-card>small{font-size:9px}.panel{padding:13px}.panel-heading{align-items:flex-end}.panel h2{font-size:14px}.attendance-action{align-items:flex-start;flex-direction:column}.action-buttons{width:100%}.action-buttons .button{flex:1}.report-form{align-items:stretch;display:grid;grid-template-columns:1fr 1fr}.report-form .button{grid-column:1/-1}.user-form{grid-template-columns:1fr}.user-form button{width:100%}.page-footer{gap:8px;flex-direction:column}.auth-card{padding:27px 22px}}
 .user-actions{display:flex;align-items:center;gap:6px}.small-button.danger{background:#fff0f0;color:#a34444}.small-button.danger:hover{background:#fde2e2}.muted-inline{color:var(--muted);font-size:10px}.edit-dialog{width:min(100% - 28px,460px);max-height:calc(100% - 28px);padding:0;border:1px solid var(--line);border-radius:15px;background:#fff;color:var(--ink);box-shadow:0 24px 80px #1b2a4052}.edit-dialog::backdrop{background:#15243a66;backdrop-filter:blur(2px)}.edit-user-form{display:grid;gap:14px;padding:21px}.edit-user-form .panel-heading{margin:0 0 2px}.edit-user-form label{display:grid;gap:7px;color:#40536b;font-size:12px;font-weight:600}.edit-user-form input,.edit-user-form select{width:100%;min-height:42px;padding:10px 12px;border:1px solid #d9e2ed;border-radius:9px;background:#fff;color:var(--ink);outline:none}.edit-user-form input:focus,.edit-user-form select:focus{border-color:#73a0e2;box-shadow:0 0 0 3px #e7f0ff}.edit-user-form small{color:var(--muted);font-size:10px;font-weight:400}.dialog-close{width:30px;height:30px;border:0;border-radius:8px;background:#f3f6fb;color:#60718a;font-size:21px;line-height:1}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:3px}
.month-filter{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:10px;font-weight:600}.month-filter input{min-height:34px;padding:6px 9px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font:inherit}.readonly-summary{display:grid;gap:5px;padding:11px 12px;border:1px solid var(--line);border-radius:9px;background:#f8fafd}.readonly-summary span{color:var(--muted);font-size:10px}.readonly-summary b{font-size:12px}.edit-warning{margin:0;padding:10px 11px;border-radius:8px;background:#fff7e9;color:#8c641f;font-size:10px;line-height:1.5}
.password-field{position:relative;display:flex;align-items:center;width:100%}.form-stack .password-field input,.user-form .password-field input,.edit-user-form .password-field input{padding-right:46px}.password-toggle{position:absolute;right:4px;top:50%;width:36px;height:34px;display:grid;place-items:center;padding:0;border:0;border-radius:7px;background:transparent;color:#718198;transform:translateY(-50%)}.user-form .password-toggle{width:36px}.password-toggle:hover{background:#f1f5fa;color:var(--blue)}.password-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.password-toggle .eye-slash{display:none}.password-toggle.is-visible .eye-slash{display:block}.form-stack .remember-account{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;font-weight:500}.form-stack .remember-account input{width:16px;min-height:16px;margin:0;padding:0;accent-color:var(--blue)}@media(max-width:700px){.sidebar .brand-sidebar{justify-content:center;margin:0 6px 12px}.sidebar .brand-sidebar b{font-size:16px}.sidebar .nav-list{display:flex;gap:6px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;white-space:nowrap}.sidebar .nav-item{flex:0 0 auto;width:auto;min-width:max-content;white-space:nowrap}.sidebar .nav-item>span{flex:0 0 17px}.user-form .password-toggle{width:36px}}
.form-stack .remember-note{margin-top:-5px;color:var(--muted);font-size:10px;font-weight:400}
textarea{font:inherit}.attendance-action{display:grid;grid-template-columns:1fr;gap:15px}.attendance-controls{width:100%;display:grid;gap:13px}.action-buttons{flex-wrap:wrap}.button.danger{border-color:#f0d4d4;background:#fff7f7;color:#a34444}.button.danger:hover:not(:disabled){background:#fdeaea}.attendance-note-form{display:grid;gap:7px;padding-top:12px;border-top:1px solid var(--line)}.attendance-note-form label{color:#40536b;font-size:12px;font-weight:700}.attendance-note-form textarea{width:100%;min-height:76px;resize:vertical;padding:10px 12px;border:1px solid #d9e2ed;border-radius:9px;background:#fff;color:var(--ink);font-size:12px;line-height:1.5;outline:none}.attendance-note-form textarea:focus{border-color:#73a0e2;box-shadow:0 0 0 3px #e7f0ff}.attendance-note-footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.attendance-note-footer small{color:var(--muted);font-size:10px}.note-cell{max-width:270px;white-space:normal;line-height:1.45}.sidebar .nav-item{box-sizing:border-box}
.edit-time-fields{display:grid;gap:14px}.edit-user-form textarea{width:100%;min-height:72px;resize:vertical;padding:10px 12px;border:1px solid #d9e2ed;border-radius:9px;background:#fff;color:var(--ink);font:inherit;font-size:12px}
.install-button{width:100%;min-height:36px;display:flex;align-items:center;justify-content:space-between;margin-top:10px;padding:0 12px;border:1px solid #d7e5fb;border-radius:9px;background:#f4f8ff;color:var(--blue);font-size:11px;font-weight:700}.install-button:hover{background:var(--blue-soft)}
@media(max-width:700px){.sidebar{width:100%;max-width:100vw;overflow:hidden;padding-inline:12px}.sidebar .nav-list{width:100%;max-width:100%;min-width:0;box-sizing:border-box;display:flex;flex-flow:row nowrap;align-items:center;justify-content:flex-start;gap:6px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch}.sidebar .nav-list::-webkit-scrollbar{display:none}.sidebar .nav-item{display:inline-flex;flex:0 0 auto;width:max-content;min-width:max-content;max-width:none;flex-wrap:nowrap;align-items:center;gap:7px;white-space:nowrap;overflow-wrap:normal}.sidebar .nav-item>span{flex:0 0 17px;width:17px;white-space:nowrap}.sidebar .nav-item #attendance-nav-label{display:inline-block;flex:0 0 auto;width:max-content;white-space:nowrap}.attendance-action{gap:12px}.action-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.action-buttons .button{width:100%;min-width:0;padding-inline:8px;font-size:11px}.action-buttons #mark-absent-button{grid-column:1/-1}.attendance-note-footer{align-items:flex-start;flex-direction:column}.attendance-note-footer .button{width:100%}.note-cell{min-width:150px;max-width:220px}}
.report-form select{width:100%;min-height:42px;padding:10px 12px;border:1px solid #d9e2ed;border-radius:9px;background:#fff;color:var(--ink);outline:none}
.report-form select:focus{border-color:#73a0e2;box-shadow:0 0 0 3px #e7f0ff}
@media(max-width:700px){.activity-heading{align-items:center;flex-wrap:wrap}.activity-heading>div{flex:1 1 100%}.activity-heading .month-filter{flex:1 1 auto}.activity-heading .month-filter input{min-width:0;width:100%}}
@media(max-width:700px){.sidebar .logout-button{display:flex;align-items:center;gap:8px;width:max-content;min-height:34px;margin:7px 0 0 auto;padding:5px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--blue);font-size:11px;font-weight:700}}
.logout-icon{display:none;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:700px){.sidebar .logout-button{position:absolute;top:12px;right:14px;display:grid;place-items:center;width:32px;height:32px;min-height:32px;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:#c53030}.sidebar .logout-label,.sidebar .logout-arrow{display:none}.sidebar .logout-icon{display:block;width:19px;height:19px}}
.brand-icon img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
