:root{font-family:Inter,system-ui,"Noto Sans Thai",sans-serif;color:#10213e;background:#f3f6fb;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}
.hr-app{max-width:1320px;margin:auto;padding:24px}.hr-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.hr-top h1{margin:0;font-size:clamp(24px,3vw,36px)}.hr-top p{margin:5px 0;color:#64748b}.hr-top a{color:#1764c6;text-decoration:none;font-weight:700}
.hr-hero{background:linear-gradient(115deg,#0c3372,#1975e8);color:#fff;border-radius:24px;padding:24px;margin-bottom:18px}.hr-hero h2{margin:0 0 6px}.hr-hero p{margin:0;color:#dbeafe}
.hr-tabs{display:flex;gap:8px;overflow:auto;margin:16px 0}.hr-tabs button{border:1px solid #d0dff3;border-radius:12px;padding:10px 16px;background:white;color:#153459;font-weight:700;white-space:nowrap}.hr-tabs button.active{background:#1764c6;color:white;border-color:#1764c6}
.hr-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}.hr-card{background:white;border:1px solid #dce5f3;border-radius:18px;padding:20px;box-shadow:0 6px 25px #1230570a;margin-bottom:16px}.hr-card h3{margin:0 0 12px;font-size:19px}.hr-card p{line-height:1.6;color:#52637b}.hr-card small,.hr-muted{color:#64748b}.hr-card strong.big{display:block;font-size:28px;color:#0d4184}
.hr-directory-filters{display:grid;grid-template-columns:minmax(220px,2fr) repeat(2,minmax(150px,1fr));gap:12px}.hr-directory-filters label{display:grid;gap:6px;font-size:13px;font-weight:700}.hr-table tr[hidden]{display:none}@media(max-width:760px){.hr-directory-filters{grid-template-columns:1fr}}
.hr-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.hr-form label{display:grid;gap:6px;font-size:13px;font-weight:700}.hr-form .wide{grid-column:1/-1}.hr-form input,.hr-form select,.hr-form textarea,.hr-filter{width:100%;border:1px solid #cbd8e9;border-radius:10px;background:white;padding:10px;color:#10213e}.hr-form textarea{min-height:70px}.hr-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.hr-btn{border:0;border-radius:10px;background:#1764c6;color:#fff;padding:10px 16px;font-weight:800}.hr-btn.secondary{background:#eaf2ff;color:#1555a0}.hr-btn.danger{background:#fff1f2;color:#ad2233}.hr-btn:disabled{opacity:.5;cursor:not-allowed}
.hr-form .hr-check{display:flex;align-items:center;gap:8px;align-self:end;padding:10px 0}.hr-form .hr-check input{width:auto}
.hr-list{display:grid;gap:9px}.hr-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #e5edf6;padding:9px 0}.hr-row:last-child{border-bottom:0}.hr-row small{display:block}.hr-badge{display:inline-block;border-radius:999px;padding:4px 9px;background:#e9f2ff;color:#1057a5;font-size:12px;font-weight:800}.hr-badge.pending{background:#fff4d8;color:#8a5b00}.hr-badge.approved,.hr-badge.paid{background:#def7ed;color:#047857}.hr-badge.rejected{background:#fee7e7;color:#b4232e}
.hr-alert{border-radius:12px;padding:12px 16px;margin:12px 0;background:#e6f7ee;color:#087046}.hr-alert.error{background:#fff0f0;color:#ad2233}.hr-table{width:100%;border-collapse:collapse}.hr-table th,.hr-table td{text-align:left;padding:10px;border-bottom:1px solid #e5edf6}.hr-table-wrap{overflow:auto}.hr-money{text-align:right!important;font-variant-numeric:tabular-nums}.hr-empty{color:#64748b;padding:12px 0}.hr-item-line{display:grid;grid-template-columns:1fr 1.5fr 1fr auto;gap:7px;margin:6px 0}.hr-item-line input,.hr-item-line select{min-width:0;width:100%;padding:9px;border:1px solid #cbd8e9;border-radius:9px}
.hr-weekly-table{min-width:900px}.hr-weekly-table th{white-space:nowrap}.hr-weekly-table input,.hr-weekly-table select{width:100%;min-width:95px;padding:8px;border:1px solid #cbd8e9;border-radius:9px;background:#fff}.hr-weekly-table input[type=checkbox]{width:auto;min-width:0}.hr-weekly-table td:last-child input{min-width:170px}
@media(max-width:650px){.hr-app{padding:12px}.hr-top{align-items:flex-start}.hr-card{padding:15px}.hr-row{align-items:flex-start}.hr-item-line{grid-template-columns:1fr 1fr}.hr-item-line input:nth-child(2){grid-column:span 2}}
.hr-login{min-height:calc(100vh - 48px);display:grid;grid-template-columns:1fr 1fr;background:#fff;border-radius:24px;overflow:hidden;box-shadow:0 12px 40px #12305718}.hr-login-brand{background:linear-gradient(140deg,#0b2858,#1764c6);color:white;padding:clamp(32px,6vw,90px);display:flex;flex-direction:column;justify-content:center}.hr-login-brand strong{letter-spacing:.13em}.hr-login-brand h1{font-size:clamp(44px,6vw,80px);margin:24px 0 12px}.hr-login-brand p{font-size:20px;color:#dbeafe}.hr-login-brand small{color:#bfdbfe}.hr-login-form{max-width:430px;width:100%;margin:auto;padding:36px;display:grid;gap:18px}.hr-login-form h2{font-size:30px;margin:0}.hr-login-form label{display:grid;gap:8px;font-weight:700}.hr-login-form input{padding:13px;border:1px solid #cbd8e9;border-radius:10px;width:100%}.hr-login-form button{padding:14px}@media(max-width:760px){.hr-login{grid-template-columns:1fr}.hr-login-brand{min-height:250px}.hr-login-form{padding:26px}}

/* Empeo-inspired layout with THE ONE IT controls and data. */
:root{color-scheme:dark;color:#eeeef2;background:#17171b}
body{background:#17171b;color:#eeeef2}
.hr-app{max-width:none;min-height:100vh;margin:0;padding:0}
.hr-top{position:sticky;top:0;z-index:10;align-items:center;min-height:66px;margin:0;padding:0 25px;background:#202025;border-bottom:1px solid #303036}
.hr-top-brand{display:flex;align-items:center;gap:11px;font-size:15px;font-weight:800;letter-spacing:.06em;white-space:nowrap}
.hr-top-brand b{color:#ff815b}.hr-brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#f36b42;color:#17171b;font-size:22px;font-weight:900;letter-spacing:-.08em}
.hr-top-account{display:flex;align-items:center;gap:13px}.hr-account-name{display:grid;text-align:right;font-size:13px;font-weight:700}.hr-account-name small{font-size:11px;font-weight:500;color:#aaa9b4}.hr-avatar,.hr-person-avatar{display:grid;place-items:center;flex:none;border-radius:50%;background:linear-gradient(135deg,#f5875b,#b94638);color:#fff;font-weight:800}
.hr-avatar{width:35px;height:35px}.hr-shell{display:grid;grid-template-columns:84px minmax(0,1fr);min-height:calc(100vh - 66px)}
.hr-sidebar{position:sticky;top:66px;align-self:start;display:flex;flex-direction:column;min-height:calc(100vh - 66px);background:#202025;border-right:1px solid #303036}
.hr-sidebar-title{padding:22px 8px 8px;text-align:center;color:#878792;font-size:10px;font-weight:700;letter-spacing:.09em}
.hr-sidebar-foot{margin-top:auto;padding:18px 4px;text-align:center;color:#777781;font-size:9px;font-weight:700;letter-spacing:.06em}
.hr-tabs{display:grid;gap:5px;margin:0;padding:7px 8px;overflow:visible}
.hr-tabs button{display:grid;justify-items:center;gap:4px;width:100%;min-width:0;padding:9px 3px;border:0;border-radius:10px;background:transparent;color:#aaa9b4;font-size:10px;line-height:1.2;font-weight:600;white-space:normal}
.hr-tabs button:hover,.hr-tabs button:focus-visible{background:#303036;color:#fff}.hr-tabs button.active{background:#342822;color:#ff8b65;border:0}
.hr-nav-icon{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:#2d2d34;color:#e2e0e5;font-size:13px;font-weight:800}.hr-tabs button.active .hr-nav-icon{background:#f36b42;color:#17171b}.hr-nav-label{text-align:center}
.hr-content{min-width:0;max-width:1640px;width:100%;margin:0 auto;padding:28px clamp(20px,3vw,50px) 56px}
.hr-page-heading{display:flex;justify-content:space-between;align-items:end;gap:16px;margin:0 0 21px}.hr-eyebrow{color:#fb8159;font-size:10px;font-weight:800;letter-spacing:.14em}.hr-page-heading h1{margin:5px 0 3px;font-size:clamp(23px,2vw,30px);line-height:1.3}.hr-page-heading p{margin:0;color:#9e9ca7;font-size:13px}.hr-heading-count{border:1px solid #4e3831;border-radius:999px;padding:7px 12px;background:#2b231f;color:#ffa37f;font-size:12px;font-weight:800;white-space:nowrap}
.hr-directory-tabs{display:flex;gap:20px;overflow:auto;margin:0 0 18px;border-bottom:1px solid #36363d}.hr-directory-tabs button{position:relative;flex:none;border:0;border-radius:0;background:transparent;color:#aaa9b4;padding:11px 0 14px;font-size:13px;font-weight:700}.hr-directory-tabs button:hover,.hr-directory-tabs button:focus-visible{color:#fff}.hr-directory-tabs button.active{color:#ff8b65}.hr-directory-tabs button.active:after{content:"";position:absolute;right:0;bottom:0;left:0;height:2px;background:#f36b42}.hr-directory-tabs button span{margin-left:5px;padding:2px 7px;border-radius:999px;background:#303036;color:#aaa9b4;font-size:11px}.hr-directory-tabs button.active span{background:#493026;color:#ff9b74}
.hr-card{background:#232329;border:1px solid #35353c;border-radius:14px;box-shadow:none;color:#eeeef2}.hr-card h3{color:#f4f4f6}.hr-card p{color:#aaa9b4}.hr-card small,.hr-muted{color:#aaa9b4}.hr-card strong.big{color:#ff916c}
.hr-directory-card{padding:0;overflow:hidden}.hr-directory-toolbar{padding:19px 20px 0}.hr-directory-filters{grid-template-columns:minmax(220px,2fr) minmax(130px,.65fr) minmax(170px,1fr);max-width:800px}.hr-directory-filters label{color:#aaa9b4;font-size:11px}.hr-directory-count{margin:12px 20px 16px!important;font-size:12px}
.hr-table{color:#dddde4}.hr-table th{background:#2b2b31;color:#b5b4bf;font-size:12px;font-weight:700;white-space:nowrap}.hr-table th,.hr-table td{border-bottom:1px solid #34343b;padding:12px 14px}.hr-table tbody tr:hover{background:#2b292c}.hr-table tbody tr:last-child td{border-bottom:0}
.hr-directory-table{min-width:1030px}.hr-directory-table td{font-size:12px}.hr-code{color:#bdbbc8;font-variant-numeric:tabular-nums}.hr-person{display:flex;align-items:center;gap:10px;white-space:nowrap}.hr-person b{color:#fff;font-size:13px}.hr-person-avatar{width:31px;height:31px;font-size:14px}.hr-directory-actions{display:flex;gap:5px;white-space:nowrap}.hr-directory-actions .hr-btn{padding:6px 9px;font-size:11px}
.hr-form input,.hr-form select,.hr-form textarea,.hr-filter,.hr-item-line input,.hr-item-line select,.hr-weekly-table input,.hr-weekly-table select,.hr-login-form input{border-color:#45454f;background:#1b1b20;color:#f1f1f4}.hr-form input::placeholder,.hr-filter::placeholder,.hr-login-form input::placeholder{color:#82818d}.hr-form label,.hr-directory-filters label{color:#b8b7c1}.hr-form input:focus,.hr-form select:focus,.hr-filter:focus,.hr-login-form input:focus{outline:2px solid #f36b42;outline-offset:1px}
.hr-btn{background:#f36b42;color:#18181d}.hr-btn:hover{background:#ff8157}.hr-btn.secondary{background:#303039;color:#ecebf0}.hr-btn.secondary:hover{background:#3b3b45}.hr-btn.danger{background:#4a292f;color:#ffb8bd}.hr-badge{background:#303039;color:#d4d2da}.hr-badge.pending{background:#493b27;color:#ffd07a}.hr-badge.approved,.hr-badge.paid{background:#21423a;color:#9de3c8}.hr-badge.rejected{background:#4a2d33;color:#ffb2bb}
.hr-grid{gap:14px}.hr-row{border-color:#3a3a42}.hr-alert{background:#1d4538;color:#a7e8cb}.hr-alert.error{background:#512b32;color:#ffbdc4}.hr-empty{color:#aaa9b4}.hr-weekly-table{min-width:900px}
.hr-login{min-height:100vh;border-radius:0;background:#202025;box-shadow:none}.hr-login-brand{background:linear-gradient(145deg,#1d1d22,#3f2924);color:#f4f4f6}.hr-login-brand p,.hr-login-brand small{color:#ccc0be}.hr-login-form h2{color:#fff}.hr-login-form label{color:#c8c7d0}
@media(max-width:760px){.hr-top{min-height:60px;padding:0 14px}.hr-top-brand{font-size:12px}.hr-top-account{gap:7px}.hr-account-name{display:none}.hr-top-account .hr-btn{padding:7px 9px;font-size:11px}.hr-shell{display:block;min-height:calc(100vh - 60px)}.hr-sidebar{position:sticky;top:60px;z-index:9;min-height:0;border-right:0;border-bottom:1px solid #35353c}.hr-sidebar-title,.hr-sidebar-foot{display:none}.hr-tabs{display:flex;gap:3px;padding:5px 8px;overflow-x:auto}.hr-tabs button{flex:0 0 65px;padding:6px 2px;font-size:9px}.hr-nav-icon{width:25px;height:25px;font-size:11px}.hr-content{padding:20px 12px 35px}.hr-page-heading{align-items:start}.hr-page-heading p{font-size:12px}.hr-heading-count{display:none}.hr-directory-filters{grid-template-columns:1fr 1fr}.hr-directory-filters label:first-child{grid-column:1/-1}.hr-card{padding:15px}.hr-directory-card{padding:0}.hr-directory-toolbar{padding:15px 13px 0}.hr-directory-count{margin:11px 13px!important}.hr-table th,.hr-table td{padding:9px 10px}}
