:root{color:#171717;background:#f7f7f4;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:linear-gradient(to right,rgba(0,0,0,.045) 1px,transparent 1px),linear-gradient(to bottom,rgba(0,0,0,.035) 1px,transparent 1px),#f7f7f4;background-size:40px 40px}button,input,select,textarea{font:inherit}button{cursor:pointer}.login-screen{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:64px;align-items:center;min-height:100vh;padding:64px clamp(24px,8vw,120px)}.login-copy h1{max-width:560px;margin:14px 0 18px;font-size:clamp(42px,7vw,76px);line-height:1;letter-spacing:0}.login-copy p{max-width:560px;color:#6b6b6b;font-size:17px;line-height:1.8}.brand-mark{display:grid;grid-template-columns:repeat(2,9px);gap:5px;width:23px}.brand-mark span{width:9px;height:9px;border-radius:3px;background:#171717}.brand-mark.small{grid-template-columns:repeat(2,7px);gap:4px;width:18px}.brand-mark.small span{width:7px;height:7px;border-radius:2px}.eyebrow{margin:0 0 8px;color:#8a8a8a;font-size:12px;font-weight:700;letter-spacing:0;text-transform:uppercase}.login-card,.panel{border:1px solid #e3e0d8;border-radius:8px;background:#fffffceb;box-shadow:0 18px 60px #1414140f}.login-card{display:grid;gap:18px;padding:32px}.login-card h2,.panel h2{margin:0;font-size:22px}label{display:grid;gap:8px;color:#6a6a6a;font-size:13px;font-weight:700}input,select,textarea{width:100%;border:1px solid #d9d6ce;border-radius:6px;outline:none;background:#fff;color:#171717;padding:11px 12px;transition:border-color .2s ease,box-shadow .2s ease}input:focus,select:focus,textarea:focus{border-color:#171717;box-shadow:0 0 0 3px #00000014}.primary-btn,.ghost-btn,.icon-btn,.text-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:6px;border:1px solid transparent;min-height:42px;padding:0 16px;font-weight:800;transition:transform .2s ease,background .2s ease,border-color .2s ease}.primary-btn{background:#111;color:#fff}.primary-btn:hover,.ghost-btn:hover{transform:translateY(-1px)}.ghost-btn{border-color:#d9d6ce;background:#fff;color:#171717}.icon-btn{width:36px;min-height:36px;padding:0;border-color:#dedbd3;background:#fff}.text-btn{min-height:32px;padding:0 10px;border-color:#dedbd3;background:#fff;color:#171717}.danger-btn{border-color:#f1c7c2;color:#b42318}.danger-btn:hover{background:#fff4f2}.hint,.form-error,.success-text{margin:0;font-size:13px}.hint{color:#8a8a8a;line-height:1.7}.form-error,.warn{color:#b42318}.success-text{color:#1f7a42;font-weight:700}.app-shell{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;border-right:1px solid #e3e0d8;background:#fffffce0;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);padding:22px 16px}.sidebar-brand,.user-pill,.toolbar,.panel-head,.action-panel{display:flex;align-items:center}.sidebar-brand{gap:12px;margin-bottom:30px;padding:0 8px}.sidebar nav{display:grid;gap:6px}.sidebar nav button{display:flex;align-items:center;gap:10px;width:100%;border:0;border-radius:6px;background:transparent;color:#676767;padding:12px;text-align:left;font-weight:800}.sidebar nav button.active,.sidebar nav button:hover{background:#111;color:#fff}.workspace{min-width:0;padding:28px clamp(18px,3vw,44px) 48px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.topbar h1{margin:0;font-size:34px;letter-spacing:0}.user-pill{gap:10px;border:1px solid #e3e0d8;border-radius:999px;background:#fffffce6;padding:6px 6px 6px 16px;font-weight:800}.page-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:16px}.metric-card{min-height:132px;border:1px solid #e3e0d8;border-radius:8px;background:#fff;padding:22px}.metric-card p{margin:0 0 22px;color:#777;font-weight:800}.metric-card strong{font-size:38px;letter-spacing:0}.panel{padding:22px;margin-bottom:16px}.action-panel{justify-content:space-between;gap:24px}.action-panel p:not(.eyebrow){max-width:680px;margin:8px 0 0;color:#6d6d6d;line-height:1.7}.toolbar{flex-wrap:wrap;gap:12px;margin-bottom:16px}.inline-field{display:flex;align-items:center;gap:10px}.inline-field input,.inline-field select{width:180px}.content-layout{display:grid;grid-template-columns:minmax(320px,420px) minmax(0,1fr);gap:16px;align-items:start}.form-panel{display:grid;gap:16px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.table-panel{overflow:auto}.employee-table th:last-child,.employee-table td:last-child{position:sticky;right:0;z-index:1;background:#fffdfa;box-shadow:-10px 0 18px #1414140a}.panel-head{justify-content:space-between;gap:16px;margin-bottom:18px}table{width:100%;min-width:760px;border-collapse:collapse}.employee-table{min-width:0}.employee-table th,.employee-table td{padding-right:8px;padding-left:8px}.employee-table th:nth-child(2),.employee-table td:nth-child(2){max-width:96px;overflow:hidden;text-overflow:ellipsis}.employee-table th:nth-child(3),.employee-table td:nth-child(3){width:86px}.employee-table th:nth-child(4),.employee-table td:nth-child(4){width:66px}.employee-table th:last-child,.employee-table td:last-child{width:132px}th,td{border-bottom:1px solid #eeeae2;padding:13px 10px;text-align:left;vertical-align:middle;white-space:nowrap}th{color:#777;font-size:12px;font-weight:900;text-transform:uppercase}td{color:#202020}td input,td select{min-width:120px;padding:8px 10px}.row-actions{display:flex;gap:8px}.calendar-panel{padding:0;overflow:hidden}.calendar-panel .panel-head{margin:0;padding:20px 22px;border-bottom:1px solid #e7e2d8;background:#fffdfa}.matrix-scroll{overflow:auto;max-height:calc(100vh - 250px);padding-bottom:8px}.attendance-matrix{min-width:1180px;border-collapse:separate;border-spacing:0;background:#fffdfa}.attendance-matrix th,.attendance-matrix td{width:44px;min-width:44px;height:28px;border-right:1px solid #171717;border-bottom:1px solid #171717;padding:0 4px;text-align:center;vertical-align:middle;white-space:nowrap}.attendance-matrix thead th{position:sticky;top:0;z-index:3;background:#ded8e8;color:#171717;font-size:14px;font-weight:900;text-transform:none}.attendance-matrix thead tr:nth-child(2) th{top:28px}.attendance-matrix .matrix-name-head,.attendance-matrix .matrix-name{position:sticky;left:0;z-index:4;width:120px;min-width:120px;border-left:1px solid #171717;background:#ded8e8;text-align:left}.attendance-matrix .matrix-name{z-index:2;background:#eee9dc;color:#555;padding-left:12px;font-size:14px}.attendance-matrix td{background:#fffdfa;color:#171717;font-family:Georgia,Times New Roman,serif;font-size:20px;line-height:1}.attendance-matrix th.weekend,.attendance-matrix td.weekend{background:#ece9df}.attendance-matrix th.today,.attendance-matrix td.today{background:#e8f6ed;box-shadow:inset 0 0 0 2px #176b3a}.attendance-matrix td.leave{color:#e60012;font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:23px;font-weight:900}.attendance-matrix td.half_leave,.attendance-matrix td.rest{font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:18px}.attendance-legend{display:flex;flex-wrap:wrap;gap:10px;color:#555;font-size:13px;font-weight:800}.attendance-legend span{display:inline-flex;align-items:center;gap:6px;min-height:30px;border:1px solid #e3e0d8;border-radius:999px;background:#fff;padding:0 10px}.mark{display:inline-flex;align-items:center;justify-content:center;min-width:18px;font-size:18px;line-height:1}.mark.leave{color:#e60012}.calendar-scroll{overflow:auto;max-height:calc(100vh - 250px)}.month-calendar{display:grid;grid-template-columns:repeat(7,minmax(120px,1fr));gap:0;overflow:auto;padding:0 22px 22px}.weekday-head{position:sticky;top:0;z-index:2;border-right:1px solid #e3e0d8;border-bottom:1px solid #d7d2c8;background:#ded8e8;color:#171717;padding:12px;font-size:13px;font-weight:900;text-align:center}.weekday-head:first-child{border-left:1px solid #e3e0d8}.calendar-day{display:grid;grid-template-rows:auto minmax(96px,1fr);min-height:146px;border-right:1px solid #e3e0d8;border-bottom:1px solid #e3e0d8;background:#fffdfa}.calendar-day:nth-child(7n+1){border-left:1px solid #e3e0d8}.calendar-day.muted{background:#fffffc80}.calendar-day.weekend{background:#f1eee5}.calendar-day.today{box-shadow:inset 0 0 0 2px #111}.day-head{display:flex;align-items:center;justify-content:space-between;min-height:42px;border-bottom:1px solid #eeeae2;padding:8px 10px}.day-head strong{font-size:20px;line-height:1}.day-head span{color:#777;font-size:12px;font-weight:900}.day-attendance{display:grid;align-content:start;gap:8px;padding:10px}.day-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.summary-pill,.day-status,.empty-status{display:inline-flex;align-items:center;min-height:28px;border:1px solid #e4dfd5;border-radius:6px;background:#fff;color:#444;padding:0 8px;font-size:12px;font-weight:900}.summary-pill.leave,.day-status.leave{border-color:#f1c7c2;color:#e60012}.summary-pill.normal,.day-status.normal{border-color:#cce9d6;color:#176b3a}.summary-pill.half_leave,.day-status.half_leave{border-color:#dedbd3;color:#555}.summary-pill.rest,.day-status.rest{background:#f1eee5;color:#666}.day-status{justify-content:center;gap:8px;min-height:54px;font-size:14px}.day-status b{font-size:24px;line-height:1}.day-names{display:flex;flex-wrap:wrap;gap:5px;min-height:32px}.day-names span,.day-names em{display:inline-flex;align-items:center;min-height:24px;border-radius:999px;background:#f6f4ee;color:#666;padding:0 8px;font-size:12px;font-style:normal;font-weight:800}.day-names span{background:#fff4f2;color:#b42318}.empty-status{justify-content:center;min-height:54px;border-style:dashed;color:#999}.attendance-calendar{min-width:1180px;border-collapse:separate;border-spacing:0;background:#fff}.attendance-calendar th,.attendance-calendar td{width:46px;min-width:46px;height:46px;border-right:1px solid #171717;border-bottom:1px solid #171717;padding:0;text-align:center;white-space:nowrap}.attendance-calendar thead th{position:sticky;top:0;z-index:2;background:#ded8e8;color:#171717;font-size:14px;text-transform:none}.attendance-calendar thead th span,.attendance-calendar thead th small{display:block;line-height:1.3}.attendance-calendar thead th small{margin-top:3px;font-size:12px;font-weight:800}.attendance-calendar .employee-head,.attendance-calendar .employee-name{position:sticky;left:0;z-index:3;width:112px;min-width:112px;padding:0 12px;border-left:1px solid #171717;background:#ded8e8;text-align:left}.attendance-calendar .employee-name{background:#eee9dc;font-size:15px}.attendance-calendar .summary-head,.attendance-calendar .summary-cell{position:sticky;right:0;z-index:3;width:74px;min-width:74px;background:#fffdfa;box-shadow:-8px 0 16px #1414140f}.attendance-calendar .summary-head{background:#ded8e8}.attendance-calendar td{background:#fffdfa;font-size:24px;font-family:Georgia,Times New Roman,serif}.attendance-calendar td.weekend{background:#ece9df;color:#777}.attendance-calendar td.unrecorded{background:#fbfaf4}.attendance-calendar td.leave{color:#e60012;font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:28px;font-weight:900}.attendance-calendar td.half_leave{font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:22px}.attendance-calendar td.rest{font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:18px}.full-attendance{display:inline-flex;align-items:center;justify-content:center;min-height:28px;border-radius:999px;background:#e8f6ed;color:#176b3a;padding:0 9px;font-size:12px;font-weight:900}.status{display:inline-flex;align-items:center;min-height:28px;border-radius:999px;padding:0 10px;background:#f0f0ed;font-size:12px;font-weight:900}.status.active{background:#e8f6ed;color:#176b3a}.status.inactive{background:#f0f0ed;color:#777}.total-money{font-size:22px}@media(max-width:980px){.login-screen,.app-shell,.content-layout,.page-grid{grid-template-columns:1fr}.sidebar{position:static;height:auto}.sidebar nav{grid-template-columns:repeat(3,minmax(0,1fr))}.workspace{padding-top:20px}}@media(max-width:640px){.login-screen{padding:28px 16px}.topbar,.action-panel,.panel-head{align-items:flex-start;flex-direction:column}.sidebar nav{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid{grid-template-columns:1fr}.inline-field{width:100%;align-items:flex-start;flex-direction:column}.inline-field input,.inline-field select,.toolbar .primary-btn,.toolbar .ghost-btn{width:100%}}
