*{box-sizing:border-box}html,body,#root{width:100%;max-width:100%;min-height:100%;overflow-x:hidden}body{margin:0;font-family:Arial,Tahoma,sans-serif;background:#f5f7fb;color:#172033}button,input,select{font:inherit}button{border:0;border-radius:10px;padding:11px 17px;background:#2563eb;color:#fff;cursor:pointer;font-weight:700}button:disabled{opacity:.45;cursor:not-allowed}input,select{border:1px solid #d9e0ea;border-radius:10px;padding:11px;background:#fff;outline:none;max-width:100%}input:focus,select:focus{border-color:#2563eb}h1,h2,h3,h4,p{margin-top:0}.loginPage{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(135deg,#0f172a,#1e3a8a)}.loginCard{width:min(430px,100%);background:#fff;padding:38px;border-radius:22px;box-shadow:0 25px 60px #00000040}.loginCard h1{text-align:center;margin-bottom:6px}.loginCard p{text-align:center;color:#64748b;margin-bottom:30px}.loginCard label{display:block;margin:15px 0 7px;font-weight:700}.loginCard input{width:100%}.loginCard button{width:100%;margin-top:20px;padding:14px}.brandMark{width:58px;height:58px;margin:0 auto 15px;border-radius:17px;background:#2563eb;color:#fff;display:grid;place-items:center;font-size:28px;font-weight:900}.topbar{background:#111827;color:#fff;padding:17px 5%;display:flex;align-items:center;justify-content:space-between}.topbar strong{font-size:21px;display:block}.topbar span{font-size:13px;opacity:.75}.employeeContent{width:min(950px,94%);margin:25px auto}.heroCard{background:linear-gradient(135deg,#172554,#2563eb);color:#fff;border-radius:20px;text-align:center;padding:32px}.clock{font-size:44px;font-weight:900}.dateText{opacity:.8;margin:8px 0 22px}.statusGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:20px 0}.statCard,.metric{background:#fff;padding:22px;border-radius:16px;box-shadow:0 4px 18px #0f172a0f}.statCard{text-align:center}.statCard span,.metric span{display:block;color:#64748b;margin-bottom:8px}.statCard b{font-size:20px}.panel{background:#fff;border-radius:18px;padding:24px;margin-bottom:20px;box-shadow:0 4px 18px #0f172a0f}.panelHeader{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.panelHeader h3{margin-bottom:5px}.panelHeader p{color:#64748b;margin:0}.punchButtons{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:20px}.punchButtons button{padding:18px;font-size:17px}.success{background:#16a34a}.danger{background:#dc2626}.secondary{background:#64748b}.small{padding:8px 11px;font-size:13px}.alert{padding:12px;border-radius:10px;margin-top:15px}.errorBox{background:#fee2e2;color:#991b1b}.successBox{background:#dcfce7;color:#166534}.greenText{color:#15803d}.redText{color:#dc2626}.muted{color:#64748b}.adminApp{min-height:100vh;display:flex;max-width:100%;overflow-x:hidden}.sidebar{width:245px;background:#101827;color:#fff;padding:22px 14px;position:fixed;right:0;top:0;bottom:0}.sideBrand{display:flex;align-items:center;gap:12px;padding:5px 8px 27px}.smallLogo{width:42px;height:42px;margin:0;font-size:20px;border-radius:12px}.sideBrand b{display:block}.sideBrand span{font-size:11px;opacity:.6}.sidebar nav button,.logoutBtn{width:100%;display:flex;align-items:center;gap:10px;text-align:right;background:transparent;margin-bottom:7px;color:#dbe4f0}.sidebar nav button:hover,.sidebar nav button.active{background:#2563eb;color:#fff}.logoutBtn{position:absolute;bottom:20px;right:14px;width:calc(100% - 28px);background:#7f1d1d!important}.adminContent{margin-right:245px;width:calc(100% - 245px);padding:28px;min-width:0;max-width:100%}.adminTop{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.adminTop h2{margin-bottom:3px}.adminTop span{color:#64748b}.adminBadge{background:#dbeafe;color:#1d4ed8;padding:9px 14px;border-radius:999px;font-size:13px;font-weight:700}.stats4{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}.metric b{font-size:30px}.metric.green{border-right:4px solid #16a34a}.metric.red{border-right:4px solid #dc2626}.metric.orange{border-right:4px solid #ea580c}.infoGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.infoGrid div{padding:17px;background:#f8fafc;border-radius:12px}.infoGrid span{display:block;color:#64748b;font-size:13px;margin-bottom:7px}.tableWrap{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}table{width:100%;border-collapse:collapse;min-width:720px}th,td{padding:13px;border-bottom:1px solid #edf0f5;text-align:right}th{background:#f8fafc;color:#475569;font-size:13px}tr:hover td{background:#fafcff}.pill{display:inline-block;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:700}.pill.ok{background:#dcfce7;color:#166534}.pill.off{background:#fee2e2;color:#991b1b}.rowActions{white-space:nowrap}.rowActions button{margin-left:5px}.modalBg{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172aa8;z-index:1000;display:grid;place-items:center;padding:15px}.modalBox{background:#fff;width:min(700px,97vw);max-height:92vh;overflow:auto;border-radius:20px;padding:25px}.modalTitle{display:flex;align-items:center;justify-content:space-between}.iconBtn{background:#eef2f7;color:#111;font-size:24px;padding:3px 12px}.formGrid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.formGrid label{font-weight:700;font-size:13px}.formGrid input,.formGrid select{width:100%;margin-top:6px}.modalActions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.settingsSection{background:#f8fafc;padding:20px;border-radius:16px;margin-bottom:18px}.settingsSection h4{margin-bottom:15px}.gpsSwitchRow{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.gpsSwitchRow p{color:#64748b;font-size:13px;margin:0}.gpsMapActions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px}.gpsMapActions small{color:#64748b}.gpsMapFrame{display:block;width:100%;height:320px;border:1px solid #cbd5e1;border-radius:14px;margin-top:16px;background:#e2e8f0}.switch{position:relative;display:inline-block;width:58px;height:30px}.switch input{opacity:0;width:0;height:0}.slider{position:absolute;top:0;right:0;bottom:0;left:0;background:#cbd5e1;border-radius:30px;cursor:pointer;transition:.25s}.slider:before{content:"";position:absolute;width:22px;height:22px;right:4px;top:4px;background:#fff;border-radius:50%;transition:.25s}.switch input:checked+.slider{background:#16a34a}.switch input:checked+.slider:before{transform:translate(-28px)}.saveSettings{padding:13px 28px}@media(max-width:1000px){.stats4,.infoGrid{grid-template-columns:1fr 1fr}}@media(max-width:720px){.adminApp{display:block}.sidebar{position:sticky;top:0;right:auto;bottom:auto;z-index:100;width:100%;height:auto;padding:8px;display:flex;align-items:center;gap:8px;overflow:hidden;box-shadow:0 6px 18px #0f172a2e}.sideBrand{padding:0;flex:0 0 auto}.sideBrand div:last-child{display:none}.mainBrandLogo{width:38px;height:38px}.sidebar nav{min-width:0;display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}.sidebar nav::-webkit-scrollbar{display:none}.sidebar nav button{width:auto;min-width:44px;margin:0;padding:10px;flex:0 0 auto;justify-content:center;font-size:0}.sidebar nav button.active{font-size:12px}.sidebar nav button span{font-size:20px}.logoutBtn{position:static;flex:0 0 44px;width:44px;min-width:44px;margin:0;padding:10px;font-size:0;justify-content:center}.logoutBtn:after{content:"↪";font-size:20px}.adminContent{margin-right:0;width:100%;padding:12px}.stats4{grid-template-columns:1fr 1fr}.statusGrid,.punchButtons,.formGrid,.infoGrid{grid-template-columns:1fr}.clock{font-size:34px}.panelHeader{align-items:flex-start;flex-direction:column}.panel{padding:16px;max-width:100%;overflow:hidden}.adminTop{align-items:flex-start}.adminBadge{display:none}.tableWrap{margin-inline:0;padding-bottom:5px}table{min-width:680px}.recharts-wrapper,.recharts-surface{max-width:100%!important}}@media(max-width:420px){.stats4,.dashboardKpis{grid-template-columns:1fr}.loginPage{padding:12px}.loginCard{padding:26px 20px}}.reportActions,.auditHeaderActions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.auditTotal{color:#475569;font-weight:700}.auditTable small{display:block;margin-top:4px;color:#64748b}.auditAction{display:inline-block;padding:6px 9px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:700}@media print{body{background:#fff}.sidebar,.adminTop,.reportActions,.logoutBtn{display:none!important}.adminContent{margin:0;width:100%;padding:0}.panel{box-shadow:none;border:0;padding:0}.tableWrap{overflow:visible}table{min-width:0;font-size:11px}button{display:none!important}}.employeeMetrics{grid-template-columns:repeat(3,1fr)}.warningCard{border-bottom:4px solid #f59e0b}.dangerCard{border-bottom:4px solid #dc2626}.successCard{border-bottom:4px solid #16a34a}.leavePanel{margin-top:20px}.leaveForm{background:#f8fafc;padding:18px;border-radius:14px;margin-bottom:20px}.leaveSubmit{margin-top:18px}.pill.pending{background:#fef3c7;color:#92400e}@media(max-width:700px){.employeeMetrics{grid-template-columns:1fr 1fr}}.payrollActions{display:flex;gap:5px;flex-wrap:wrap}.payrollActions button{min-width:55px}.statusBadge{display:inline-block;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}.statusBadge.draft{background:#f1f3f5}.statusBadge.approved{background:#d3f9d8}.statusBadge.paid{background:#d0ebff}.executiveDashboard{display:flex;flex-direction:column;gap:20px}.dashboardKpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}.kpiCard{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid #e8edf4;border-top:3px solid #2563eb;background:#fff;border-radius:14px;padding:18px;text-align:right;cursor:pointer;box-shadow:0 3px 12px #0f172a0a;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.kpiCard:hover{transform:translateY(-2px);box-shadow:0 8px 22px #0f172a14;border-color:#cbd5e1}.kpiCard.success{border-top-color:#16a34a}.kpiCard.danger{border-top-color:#dc2626}.kpiCard.warning{border-top-color:#f59e0b}.kpiCard.info{border-top-color:#0284c7}.kpiLabel{display:block;font-size:13px;color:#64748b;margin-bottom:8px}.kpiCard strong{display:block;font-size:30px;line-height:1;color:#0f172a;margin-bottom:9px}.kpiCard small{font-size:11px;color:#94a3b8}.dashboardMainGrid{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,2fr);gap:20px}.dashboardLowerGrid{display:grid;grid-template-columns:minmax(0,2.3fr) minmax(260px,.7fr);gap:20px}.dashboardCard{background:#fff;border:1px solid #edf1f6;border-radius:16px;padding:20px;box-shadow:0 3px 14px #0f172a0b}.chartCard{cursor:pointer}.dashboardCardHead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.dashboardCardHead h3{margin:0 0 4px;font-size:16px;color:#0f172a}.dashboardCardHead p{margin:0;color:#94a3b8;font-size:12px}.donutWrap{position:relative}.donutCenter{pointer-events:none;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;margin-top:-2px}.donutCenter strong{font-size:28px;color:#0f172a}.donutCenter span{font-size:11px;color:#94a3b8}.dashboardTableWrap{overflow:auto}.dashboardTable{width:100%;border-collapse:collapse}.dashboardTable th{color:#64748b;font-size:12px;font-weight:600;padding:11px 10px;border-bottom:1px solid #edf1f6}.dashboardTable td{padding:12px 10px;border-bottom:1px solid #f1f5f9;font-size:13px}.dashboardTable tbody tr{cursor:pointer;transition:background .14s ease}.dashboardTable tbody tr:hover{background:#f8fafc}.employeeMini{display:flex;align-items:center;gap:10px}.employeeAvatar{width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:#eff6ff;color:#2563eb;font-weight:800}.employeeMini div{display:flex;flex-direction:column;gap:2px}.employeeMini small{color:#94a3b8;font-size:11px}.dashboardStatus{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:700}.statusOk{background:#ecfdf3;color:#15803d}.statusDanger{background:#fef2f2;color:#dc2626}.statusWarning{background:#fff7ed;color:#c2410c}.statusNeutral{background:#f1f5f9;color:#475569}.dashboardTextButton{border:0;background:transparent;color:#2563eb;cursor:pointer;font-size:12px;padding:6px}.dashboardAlerts{display:flex;flex-direction:column}.alertItem{width:100%;display:flex;align-items:center;justify-content:space-between;border:0;border-bottom:1px solid #f1f5f9;background:transparent;padding:14px 5px;cursor:pointer;color:#334155;text-align:right}.alertItem:hover{background:#f8fafc}.alertItem strong{min-width:30px;height:28px;border-radius:8px;display:flex;align-items:center;justify-content:center;background:#f1f5f9;color:#334155}.warningAlert strong{background:#fff7ed;color:#c2410c}.dangerAlert strong{background:#fef2f2;color:#dc2626}@media(max-width:1250px){.dashboardKpis{grid-template-columns:repeat(3,1fr)}}@media(max-width:950px){.dashboardMainGrid,.dashboardLowerGrid{grid-template-columns:1fr}}@media(max-width:650px){.dashboardKpis{grid-template-columns:repeat(2,1fr)}}.mainBrandLogo{width:46px;height:46px;object-fit:cover;border-radius:12px;display:block}.smallLogo{padding:0!important;background:transparent!important;overflow:hidden}.loginLogoWrap{display:flex;justify-content:center;margin-bottom:14px}.loginMainLogo{width:110px;height:110px;object-fit:cover;border-radius:24px;display:block;box-shadow:0 10px 28px #0f172a1f}.attendanceFilters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.attendanceFilters button{display:flex;align-items:center;gap:8px;border:1px solid #e2e8f0;background:#fff;color:#475569;border-radius:10px;padding:8px 12px;cursor:pointer;font-size:12px;transition:.15s ease}.attendanceFilters button:hover{border-color:#94a3b8;background:#f8fafc}.attendanceFilters button.active{background:#0f172a;border-color:#0f172a;color:#fff}.attendanceFilters button b{min-width:22px;height:22px;padding:0 6px;display:flex;align-items:center;justify-content:center;border-radius:7px;background:#f1f5f9;color:#334155;font-size:11px}.attendanceFilters button.active b{background:#ffffff26;color:#fff}.modalBox{width:min(820px,97vw)}.employeeFormSection{border:1px solid #e7ecf2;border-radius:14px;padding:16px;margin-top:16px;background:#fff}.employeeFormSectionHead{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid #eef2f6}.employeeFormSectionHead h4{margin:0;font-size:15px;color:#0f172a}.employeeFormSectionHead span{font-size:12px;color:#64748b;font-weight:500}@media(max-width:600px){.employeeFormSectionHead{display:block}.employeeFormSectionHead span{display:block;margin-top:4px}}.employeesToolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.employeesSearch{flex:1}.employeesSearch input{width:100%;min-height:42px;border:1px solid #dfe5ec;border-radius:10px;padding:0 13px;background:#fff}.employeesFilters{display:flex;gap:7px;flex-wrap:wrap}.employeesFilters button{display:flex;align-items:center;gap:7px;border:1px solid #e2e8f0;background:#fff;color:#475569;border-radius:9px;padding:8px 11px;cursor:pointer;font-size:12px}.employeesFilters button.active{background:#0f172a;border-color:#0f172a;color:#fff}.employeesFilters button b{min-width:21px;height:21px;display:flex;align-items:center;justify-content:center;border-radius:6px;background:#f1f5f9;color:#334155;font-size:11px}.employeesFilters button.active b{background:#ffffff29;color:#fff}.employeesResultCount{color:#64748b;font-size:12px;margin-bottom:10px}@media(max-width:700px){.employeesToolbar{align-items:stretch;flex-direction:column}}.employeeShift{white-space:nowrap;font-weight:600;color:#334155;font-size:12px}.archivedToolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.archivedToolbar input{flex:1;min-height:42px;border:1px solid #dfe5ec;border-radius:10px;padding:0 13px}.archivedCount{display:flex;align-items:center;gap:8px;color:#475569;font-size:12px;white-space:nowrap}.archivedCount b{min-width:28px;height:28px;border-radius:8px;background:#f1f5f9;display:flex;align-items:center;justify-content:center;color:#0f172a}@media(max-width:650px){.archivedToolbar{align-items:stretch;flex-direction:column}}.overtimeEmployeePanel{margin-top:18px}.overtimeRequestForm{padding:16px;margin-bottom:18px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc}.overtimeRequestForm .formGrid{margin-bottom:14px}.overtimeReasonField{grid-column:span 2}.overtimeFormHint{color:#64748b;font-size:12px;margin-bottom:12px}@media(max-width:600px){.overtimeReasonField{grid-column:span 1}}
