*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans SC",Arial,sans-serif;background:linear-gradient(180deg,#eef3f9 0,#f7f9fc 260px,#f5f7fa 100%);color:#172033;min-height:100vh}.wrap{max-width:820px;margin:auto;padding:26px 18px 118px}.loginwrap{max-width:520px;padding-top:12vh}.top{display:flex;justify-content:space-between;align-items:center;gap:14px}.top h2,.wrap>h2{margin:0 0 5px;font-size:25px;letter-spacing:-.4px}.top>a{background:#fff;border:1px solid #e5eaf1;padding:9px 13px;border-radius:12px;color:#475467;text-decoration:none;font-size:13px;font-weight:700;box-shadow:0 3px 12px #1018280a}.muted{color:#7a8699;font-size:13px}.card,.wageitem,.record{background:rgba(255,255,255,.96);border:1px solid #e8edf4;border-radius:20px;padding:18px;margin:14px 0;box-shadow:0 10px 30px #3440540c}.card:first-of-type{margin-top:16px}.card .big{margin:3px 0 8px}.big{font-size:27px;font-weight:850;letter-spacing:-.5px;color:#101828}.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.btn{display:flex;align-items:center;justify-content:center;min-height:50px;border:0;border-radius:15px;padding:13px 16px;text-align:center;text-decoration:none;background:linear-gradient(135deg,#172033,#26344d);color:#fff;font-weight:750;width:100%;font-size:15px;margin-top:9px;box-shadow:0 7px 18px #17203320;cursor:pointer}.btn:active{transform:translateY(1px)}.btn.light{background:#eef2f7;color:#344054;box-shadow:none}.btn.warn{background:linear-gradient(135deg,#9f321f,#c9472e)}.btn:disabled{opacity:.45}.row{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #edf0f4}.row:last-child{border-bottom:0}.neg,.dangerlink{color:#c43226}.pos{color:#087a55}input,select,textarea{width:100%;padding:14px 14px;border:1px solid #d8e0ea;border-radius:13px;font-size:16px;margin:7px 0 14px;background:#fbfcfe;color:#172033;outline:none;transition:.18s}input:focus,select:focus,textarea:focus{background:#fff;border-color:#8094b3;box-shadow:0 0 0 4px #8ca0bd1c}label{font-size:13px;font-weight:750;color:#475467}.alert{border-radius:14px;padding:13px 15px;margin:14px 0;font-weight:650}.good{background:#eafaf3;color:#087a55;border:1px solid #c9f0df}.bad{background:#fff0ee;color:#b42318;border:1px solid #ffd4cf}.employee,.record{display:flex;justify-content:space-between;gap:12px;align-items:center}.employee{padding:14px 2px;border-bottom:1px solid #edf0f4}.employee:last-child{border-bottom:0}.employee a,.record a{font-weight:700;color:#526b91;text-decoration:none}.record{padding:16px 18px}.record .right{text-align:right;white-space:nowrap}.wageitem{padding:16px 18px}.wageitem>b{font-size:16px}.wageitem .moneyinput{display:flex;align-items:center;gap:10px;margin-top:10px}.wageitem .moneyinput span{font-weight:850;background:#eef2f7;padding:13px;border-radius:12px;color:#475467}.wageitem .moneyinput input{margin:0}.wageitem>input{margin:10px 0 0}.loginwrap .card{padding:28px;box-shadow:0 24px 70px #34405418}.loginwrap h2{font-size:28px;margin:0 0 4px}.loginwrap:before{content:'PAYROLL';display:block;text-align:center;font-size:12px;font-weight:900;letter-spacing:4px;color:#607493;margin-bottom:14px}.nav{position:fixed;bottom:0;left:0;right:0;background:#ffffffed;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-top:1px solid #e6eaf0;z-index:50;padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -8px 28px #1018280a}.navin{max-width:820px;margin:auto;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:7px 10px}.nav a{text-align:center;padding:7px 2px 6px;text-decoration:none;color:#7a8699;font-size:20px;border-radius:13px;min-width:0;transition:.15s}.nav a span{display:block;font-size:11px;margin-top:2px;font-weight:700;white-space:nowrap}.nav a.active{color:#172033;background:#edf2f8}.nav a.active span{font-weight:850}.section-title{font-size:13px;text-transform:uppercase;letter-spacing:.7px;color:#8491a4;font-weight:800;margin:20px 2px 8px}.card h3{margin:0 0 14px}.card form:last-child{margin-bottom:0}a{color:#526b91}.empty{text-align:center;padding:30px 16px;color:#8491a4}.amount-hero{padding:22px;background:linear-gradient(135deg,#172033,#31405c);color:#fff;border:0}.amount-hero .muted,.amount-hero .big{color:#fff}.amount-hero .row{border-color:#ffffff18}.amount-hero .neg{color:#ffb4aa}.amount-hero .pos{color:#8de4bd}
@media(max-width:600px){body{background:linear-gradient(180deg,#eef3f9 0,#f7f9fc 210px,#f5f7fa 100%)}.wrap{padding:18px 13px 108px}.top h2,.wrap>h2{font-size:22px}.card,.wageitem,.record{border-radius:18px;margin:11px 0;padding:15px}.grid{gap:9px}.btn{min-height:48px;border-radius:14px;padding:12px 9px;font-size:14px}.big{font-size:25px}.navin{padding:6px 5px}.nav a{font-size:19px;padding:7px 0 5px}.nav a span{font-size:10.5px}.loginwrap{padding-top:8vh}.loginwrap .card{padding:22px}}
@media(max-width:360px){.grid{grid-template-columns:1fr}.nav a span{font-size:9.5px}.nav a{font-size:18px}}
@media print{body{background:#fff}.no-print,.nav{display:none!important}.wrap{padding:0;max-width:none}.card{box-shadow:none;border:1px solid #ddd}}

/* V4 polished unified login */
.auth-page{background:radial-gradient(circle at 50% 18%,#fff 0,#f4f8ff 34%,#edf4ff 100%);min-height:100svh;color:#0e1c3b}.auth-shell{width:min(100%,760px);margin:0 auto;padding:54px 22px 60px}.auth-brand{text-align:center;margin-bottom:28px}.payroll-mark{width:68px;height:68px;border-radius:20px;margin:0 auto 20px;display:grid;place-items:center;background:linear-gradient(145deg,#3c8cff,#1453d6);color:#fff;font-size:20px;font-weight:900;box-shadow:0 16px 32px #2c6be12c}.auth-brand h1{font-size:46px;line-height:1.05;margin:0;color:#0b1b3e;letter-spacing:-1.7px}.auth-kicker{margin-top:18px;color:#6d7d9f;letter-spacing:5px;font-weight:800;font-size:14px}.auth-brand p{color:#7181a1;font-size:17px;margin:14px 0}.auth-brand i{display:block;width:44px;height:5px;border-radius:8px;background:#2874e8;margin:18px auto 0}.auth-card{background:#ffffffeb;border:1px solid #e6edf8;border-radius:30px;padding:30px;box-shadow:0 28px 70px #3c60961a;backdrop-filter:blur(12px)}.role-switch{display:grid;grid-template-columns:1fr 1fr;gap:10px}.role-switch a{min-height:92px;border:1px solid #e3e9f3;border-radius:19px;display:flex;align-items:center;justify-content:center;gap:15px;text-decoration:none;color:#40506f;background:#fbfcff;padding:15px}.role-switch a.active{background:linear-gradient(135deg,#358cff,#1456d8);color:#fff;border-color:transparent;box-shadow:0 13px 26px #2369dc2c}.role-icon{font-size:34px;line-height:1}.role-switch strong{font-size:18px;text-align:left}.role-switch small{display:block;font-size:14px;font-weight:500;margin-top:4px;opacity:.9}.auth-heading{text-align:center;padding:30px 0 22px}.auth-round-icon{width:68px;height:68px;border-radius:50%;display:grid;place-items:center;margin:auto;background:#eaf3ff;color:#246be0;font-size:32px}.auth-heading h2{font-size:29px;margin:13px 0 7px}.auth-heading p{margin:0;color:#7584a1;font-size:15px}.auth-form label{display:block;margin:0 0 7px;color:#42516c;font-size:13px}.auth-input{height:64px;border:1px solid #dce4f0;border-radius:17px;display:flex;align-items:center;padding:0 16px;margin:0 0 18px;background:#fff;transition:.18s}.auth-input:focus-within{border-color:#70a1ec;box-shadow:0 0 0 4px #2e79e712}.auth-input>span{font-size:22px;color:#7181a1;margin-right:12px}.auth-input input{border:0!important;box-shadow:none!important;background:transparent!important;margin:0!important;padding:0!important;height:100%;font-size:16px}.eye{border:0;background:transparent;color:#7181a1;font-size:21px;padding:8px;cursor:pointer}.auth-submit{border:0;width:100%;height:62px;border-radius:17px;background:linear-gradient(110deg,#3993ff,#1554d8);color:#fff;font-weight:850;font-size:17px;box-shadow:0 14px 30px #2369dc2b;cursor:pointer}.auth-submit span{font-weight:650;margin-left:8px}.auth-note{text-align:center;color:#7a89a5;font-size:13px;margin:16px 0 0}.auth-footer{margin-top:32px;padding-top:23px;border-top:1px solid #e7edf6;text-align:center;color:#9aa8c0}.auth-footer span{display:block;letter-spacing:3px;font-size:11px;font-weight:800}.auth-footer small{display:block;margin-top:8px;font-size:12px}.auth-card .alert{margin:0 0 18px}
@media(max-width:600px){.auth-shell{padding:30px 14px 34px}.payroll-mark{width:58px;height:58px;border-radius:17px;margin-bottom:16px}.auth-brand h1{font-size:36px}.auth-kicker{font-size:11px;letter-spacing:3.2px;margin-top:14px}.auth-brand p{font-size:13px;line-height:1.55;margin:10px auto;max-width:330px}.auth-brand i{margin-top:13px}.auth-card{padding:16px;border-radius:24px}.role-switch{gap:8px}.role-switch a{min-height:78px;border-radius:16px;gap:9px;padding:10px 7px}.role-icon{font-size:26px}.role-switch strong{font-size:15px}.role-switch small{font-size:11px}.auth-heading{padding:24px 0 18px}.auth-round-icon{width:58px;height:58px;font-size:27px}.auth-heading h2{font-size:24px}.auth-heading p{font-size:13px}.auth-input{height:58px;border-radius:15px;margin-bottom:15px}.auth-submit{height:58px;border-radius:15px}.auth-footer{margin-top:25px}.auth-page{min-height:100svh}}
@media(max-width:360px){.role-switch strong{font-size:13px}.role-switch small{font-size:10px}.auth-brand h1{font-size:32px}}

/* V4.2 full system visual upgrade */
:root{--blue:#2168e8;--blue2:#3a8cff;--ink:#0b1b3e;--soft:#6f7f9e;--line:#e4ebf5;--panel:#ffffff;--bg:#f3f7fd}
body:not(.auth-page){background:radial-gradient(circle at 50% -120px,#fff 0,#f4f8ff 35%,#eef4fc 100%);color:var(--ink)}
body:not(.auth-page) .wrap{max-width:900px;padding-top:32px}
body:not(.auth-page) .top{margin-bottom:18px}
body:not(.auth-page) .top h2,body:not(.auth-page) .wrap>h2{font-size:28px;color:var(--ink);letter-spacing:-.7px;font-weight:850}
body:not(.auth-page) .wrap>h2:after{content:'';display:block;width:38px;height:4px;border-radius:8px;background:linear-gradient(90deg,var(--blue2),var(--blue));margin-top:10px}
body:not(.auth-page) .muted{color:#7887a4}
body:not(.auth-page) .card,body:not(.auth-page) .wageitem,body:not(.auth-page) .record{border:1px solid var(--line);border-radius:22px;box-shadow:0 14px 40px rgba(37,74,130,.08);background:rgba(255,255,255,.96)}
body:not(.auth-page) .amount-hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#10295a 0,#174da9 48%,#2879ee 100%);box-shadow:0 20px 45px rgba(26,82,180,.22);padding:24px;border:0}
body:not(.auth-page) .amount-hero:after{content:'RM';position:absolute;right:22px;top:10px;font-size:92px;font-weight:900;color:#fff;opacity:.055;pointer-events:none}
body:not(.auth-page) .amount-hero .big{font-size:36px;margin:8px 0 16px}
body:not(.auth-page) .grid{gap:12px}
body:not(.auth-page) .btn{background:linear-gradient(110deg,var(--blue2),var(--blue));border-radius:15px;min-height:52px;box-shadow:0 10px 22px rgba(33,104,232,.18);letter-spacing:.1px}
body:not(.auth-page) .btn.light{background:#edf4ff;color:#245aa9;box-shadow:none;border:1px solid #dbe8fb}
body:not(.auth-page) .btn.warn{background:linear-gradient(110deg,#ef6a5a,#c83c2d)}
body:not(.auth-page) input,body:not(.auth-page) select,body:not(.auth-page) textarea{background:#f8fbff;border-color:#dbe5f2;border-radius:14px;min-height:50px}
body:not(.auth-page) input:focus,body:not(.auth-page) select:focus,body:not(.auth-page) textarea:focus{border-color:#77a8f4;box-shadow:0 0 0 4px rgba(45,121,231,.1)}
body:not(.auth-page) label{color:#42516d}
body:not(.auth-page) .employee{padding:16px 4px}
body:not(.auth-page) .employee b{font-size:15px;color:#17294d}
body:not(.auth-page) .record{border-left:4px solid #4b8ff4}
body:not(.auth-page) .wageitem{border-left:4px solid #2f7ced}
body:not(.auth-page) .wageitem .moneyinput span{background:#eaf3ff;color:#2764bb}
body:not(.auth-page) .alert.good{background:#edfdf7;border-color:#c7f0df;color:#087a55}
body:not(.auth-page) .alert.bad,body:not(.auth-page) .alert:not(.good){background:#fff3f1;border-color:#ffd8d2;color:#b42318}
body:not(.auth-page) .nav{background:rgba(255,255,255,.9);border-top:1px solid #e2eaf5;box-shadow:0 -12px 35px rgba(28,61,111,.08)}
body:not(.auth-page) .navin{max-width:900px;padding:8px 10px}
body:not(.auth-page) .nav a{color:#8290aa;border-radius:14px}
body:not(.auth-page) .nav a:hover{background:#f0f6ff;color:#2767c7}
body:not(.auth-page) .nav a.active{background:#eaf3ff;color:#1f62cc}
body:not(.auth-page) .top>a{background:#edf4ff;border-color:#dce8f8;color:#245aa9;box-shadow:none}
body:not(.auth-page) .big{color:#10234b}
body:not(.auth-page) .section-title{color:#7181a0}
body:not(.auth-page) table{width:100%;border-collapse:collapse}
body:not(.auth-page) th{color:#61708d;font-size:12px;text-transform:uppercase;letter-spacing:.4px;background:#f7faff}
body:not(.auth-page) th,body:not(.auth-page) td{padding:12px 10px;border-bottom:1px solid #e8eef6}
body:not(.auth-page) .pos{color:#07805b}.neg{color:#c63d31}
@media(max-width:600px){body:not(.auth-page) .wrap{padding:20px 13px 110px}body:not(.auth-page) .top h2,body:not(.auth-page) .wrap>h2{font-size:24px}body:not(.auth-page) .amount-hero{padding:20px}body:not(.auth-page) .amount-hero .big{font-size:31px}body:not(.auth-page) .card,body:not(.auth-page) .wageitem,body:not(.auth-page) .record{border-radius:19px}body:not(.auth-page) .grid{grid-template-columns:1fr 1fr;gap:9px}body:not(.auth-page) .btn{font-size:13px;padding:11px 7px}body:not(.auth-page) .record{align-items:flex-start}}
/* V4.3 language selector */
.language-picker{position:fixed;top:18px;right:18px;z-index:9999;display:flex;align-items:center;gap:7px;background:rgba(255,255,255,.94);border:1px solid #dfe8f5;border-radius:14px;padding:7px 10px;box-shadow:0 8px 24px rgba(31,76,145,.12);backdrop-filter:blur(12px)}
.language-picker span{font-size:16px}.language-picker select{width:auto!important;min-height:0!important;margin:0!important;padding:6px 26px 6px 5px!important;border:0!important;background:transparent!important;box-shadow:none!important;font-size:13px!important;font-weight:750;color:#31527e;cursor:pointer}
@media(max-width:600px){.language-picker{top:10px;right:10px;padding:5px 8px;border-radius:12px}.language-picker select{font-size:12px!important;padding-right:20px!important}.auth-shell{padding-top:58px}}
@media print{.language-picker{display:none!important}}
