:root{color:#172033;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#eef2f7;--ease-out: cubic-bezier(.22, 1, .36, 1);--ease-spring: cubic-bezier(.34, 1.56, .64, 1);--ease-in-out: cubic-bezier(.65, 0, .35, 1);--dur-fast: .16s;--dur-base: .26s;--dur-slow: .42s}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{align-items:center;background:#1264a3;border:0;border-radius:6px;color:#fff;cursor:pointer;display:inline-flex;font-weight:700;gap:8px;justify-content:center;min-height:42px;padding:0 16px;transition:background-color var(--dur-fast) var(--ease-out),box-shadow var(--dur-fast) var(--ease-out),opacity var(--dur-fast) var(--ease-out),transform var(--dur-fast) var(--ease-spring)}button:hover:not(:disabled){background:#0f568d;box-shadow:0 8px 18px #1264a338;transform:translateY(-1px)}button:active:not(:disabled){box-shadow:none;transform:translateY(0) scale(.97);transition-duration:80ms}button:disabled{cursor:progress;opacity:.72}label{color:#44546a;display:grid;font-size:13px;font-weight:700;gap:8px}input,select,textarea{background:#fff;border:1px solid #c9d4e2;border-radius:6px;box-sizing:border-box;color:#172033;font-family:inherit;font-size:14px;height:42px;line-height:1.2;padding:0 12px;transition:border-color .16s ease,box-shadow .16s ease;width:100%}select{appearance:none;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2344546a' d='M6 8L0 0h12z'/></svg>");background-position:right 12px center;background-repeat:no-repeat;background-size:10px;padding-right:32px}select[multiple]{appearance:auto;background-image:none;height:auto;padding:6px}input:focus,select:focus,textarea:focus{border-color:#1264a3;box-shadow:0 0 0 3px #1264a324;outline:none}input[type=file]{align-items:center;cursor:pointer;display:flex;padding:0 12px 0 0}input[type=file]::file-selector-button{background:#e8f2fb;border:0;border-radius:6px 0 0 6px;color:#1264a3;cursor:pointer;font-weight:700;height:40px;margin-right:12px;padding:0 16px;transition:background-color var(--dur-fast) var(--ease-out)}input[type=file]::file-selector-button:hover{background:#d4e8f8}input[type=checkbox]{accent-color:#1264a3;cursor:pointer;height:16px;margin:0;min-height:0;padding:0;transition:transform var(--dur-fast) var(--ease-spring);width:16px}input[type=checkbox]:hover{transform:scale(1.15)}input[type=checkbox]:active{transform:scale(.92)}.boot{animation:fade-in .36s ease both;display:grid;min-height:100vh;place-items:center}.boot:after{animation:pulse-dot .9s ease-in-out infinite;background:#1264a3;border-radius:999px;content:"";height:10px;margin-top:44px;position:absolute;width:10px}.login-page{align-items:center;animation:fade-in .42s ease both;background:linear-gradient(135deg,#f7fafc,#d9e7f4);display:flex;min-height:100vh;overflow:hidden;padding:24px}.login-panel{animation:rise-in .52s cubic-bezier(.2,.8,.2,1) both;background:#fff;border:1px solid #dbe3ee;border-radius:8px;box-shadow:0 18px 60px #122a4429;display:grid;gap:18px;margin:0 auto;max-width:420px;padding:32px;width:100%}.login-panel h1{font-size:28px;margin:0 0 8px}.app{animation:fade-in .26s ease both;display:grid;grid-template-columns:260px 1fr;min-height:100vh}.sidebar{animation:fade-in .22s ease both;background:#102033;color:#fff;padding:22px 16px}.brand{animation:fade-in .52s ease .12s both;font-size:18px;font-weight:800;margin-bottom:28px}.sidebar nav{display:grid;gap:6px}.sidebar a{align-items:center;animation:slide-right var(--dur-slow) var(--ease-out) both;border-radius:6px;color:#d8e3ef;display:flex;gap:10px;padding:11px 12px;position:relative;text-decoration:none;transition:background-color var(--dur-fast) var(--ease-out),color var(--dur-fast) var(--ease-out),transform var(--dur-fast) var(--ease-out)}.sidebar a:nth-child(1){animation-delay:40ms}.sidebar a:nth-child(2){animation-delay:80ms}.sidebar a:nth-child(3){animation-delay:.12s}.sidebar a:nth-child(4){animation-delay:.16s}.sidebar a:nth-child(5){animation-delay:.2s}.sidebar a:hover{transform:translate(3px)}.sidebar a:before{background:#63b3ed;border-radius:999px;content:"";height:18px;left:0;opacity:0;position:absolute;transform:scaleY(.45);transition:opacity .16s ease,transform .16s ease;width:3px}.sidebar a.active,.sidebar a:hover{background:#1f3854;color:#fff}.sidebar a.active:before,.sidebar a:hover:before{opacity:1;transform:scaleY(1)}.sidebar a svg,button svg,.panel-title svg{transition:opacity .16s ease}main{min-width:0}.topbar{align-items:center;animation:fade-in .22s ease both;background:#fff;border-bottom:1px solid #dbe3ee;display:flex;justify-content:space-between;min-height:70px;padding:0 28px}.topbar>div:first-child{display:grid;gap:2px}.topbar-actions{align-items:center;display:flex;gap:8px}.topbar-user{border-radius:6px;color:inherit;display:grid;gap:2px;padding:6px 10px;text-decoration:none;transition:background-color var(--dur-fast) var(--ease-out)}.topbar-user:hover{background:#f1f6fb}.profile-head{align-items:center;display:flex;gap:18px}.profile-avatar{align-items:center;background:linear-gradient(135deg,#1264a3,#2a8ad4);border-radius:999px;color:#fff;display:flex;flex:0 0 auto;font-size:28px;font-weight:800;height:68px;justify-content:center;width:68px}.profile-head h3{font-size:20px;margin:0 0 4px}.profile-head p{margin:0 0 8px}.profile-tags{display:flex;flex-wrap:wrap;gap:8px}.profile-grid{border-top:1px solid #e4ebf3;display:grid;gap:2px 24px;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));padding-top:18px}.profile-field{border-bottom:1px solid #f0f4f9;display:grid;gap:4px;padding:12px 0}.profile-field span{color:#66748a;font-size:12px;font-weight:800;letter-spacing:.02em;text-transform:uppercase}.profile-field strong{color:#172033;font-size:15px;word-break:break-word}.modal-overlay{align-items:center;animation:fade-in .16s ease both;background:#0f172a73;display:flex;justify-content:center;inset:0;padding:16px;position:fixed;z-index:1000}.modal{animation:modal-in var(--dur-base) var(--ease-spring) both;background:#fff;border-radius:10px;box-shadow:0 24px 60px #0f172a3d;display:grid;gap:18px;max-width:460px;padding:24px;width:100%}.muted{color:#66748a;font-size:13px}.ghost{background:transparent;color:#1264a3}.ghost:hover:not(:disabled){background:#e8f2fb;box-shadow:none}.content{animation:content-in var(--dur-base) var(--ease-out) both;padding:28px}.panel{animation:rise-in var(--dur-slow) var(--ease-out) both;background:#fff;border:1px solid #dbe3ee;border-radius:8px;display:grid;gap:18px;padding:22px;transition:box-shadow var(--dur-base) var(--ease-out)}.panel:hover{box-shadow:0 16px 40px #122a4414}.panel.narrow{max-width:560px}.panel-title{align-items:center;display:flex;gap:10px}.panel h2{font-size:20px;margin:0}.filters{align-items:end;display:flex;flex-wrap:wrap;gap:14px}.error,.success{animation:notice-in .26s ease both;font-weight:700;margin:0;white-space:pre-line}.error{color:#b42318}.success{color:#067647}.table-wrap{max-height:min(70vh,820px);overflow:auto;position:relative;scrollbar-gutter:stable}.table-wrap thead th{position:sticky;top:0;z-index:1}.table-wrap thead th:after{border-bottom:1px solid #dbe3ee;bottom:-1px;content:"";left:0;position:absolute;right:0}.table-wrap.sticky-cols th:nth-child(1),.table-wrap.sticky-cols td:nth-child(1),.table-wrap.sticky-cols th:nth-child(2),.table-wrap.sticky-cols td:nth-child(2),.table-wrap.sticky-cols th:nth-child(3),.table-wrap.sticky-cols td:nth-child(3){position:sticky;z-index:2}.table-wrap.sticky-cols th:nth-child(1),.table-wrap.sticky-cols td:nth-child(1){left:0;min-width:44px;width:44px}.table-wrap.sticky-cols th:nth-child(2),.table-wrap.sticky-cols td:nth-child(2){left:44px;min-width:96px;width:96px}.table-wrap.sticky-cols th:nth-child(3),.table-wrap.sticky-cols td:nth-child(3){box-shadow:6px 0 8px -6px #17203329;left:140px;min-width:200px;width:200px}.table-wrap.sticky-cols tbody td:nth-child(1),.table-wrap.sticky-cols tbody td:nth-child(2),.table-wrap.sticky-cols tbody td:nth-child(3){background:#fff}.table-wrap.sticky-cols tbody tr:hover td:nth-child(1),.table-wrap.sticky-cols tbody tr:hover td:nth-child(2),.table-wrap.sticky-cols tbody tr:hover td:nth-child(3){background:#f7fafd}.table-wrap.sticky-cols thead th:nth-child(1),.table-wrap.sticky-cols thead th:nth-child(2),.table-wrap.sticky-cols thead th:nth-child(3){background:#f4f7fb;z-index:3}table{border-collapse:collapse;min-width:900px;width:100%}th,td{border-bottom:1px solid #e4ebf3;padding:10px 12px;text-align:left;white-space:nowrap}th{background:#f4f7fb;color:#44546a;font-size:12px;text-transform:uppercase}tbody tr{animation:row-in var(--dur-base) var(--ease-out) both;transition:background-color var(--dur-fast) var(--ease-out)}tbody tr:nth-child(1){animation-delay:0ms}tbody tr:nth-child(2){animation-delay:35ms}tbody tr:nth-child(3){animation-delay:70ms}tbody tr:nth-child(4){animation-delay:105ms}tbody tr:nth-child(5){animation-delay:.14s}tbody tr:nth-child(6){animation-delay:175ms}tbody tr:nth-child(7){animation-delay:.21s}tbody tr:nth-child(8){animation-delay:245ms}tbody tr:nth-child(n+9){animation-delay:.28s}tbody tr:hover{background:#f8fbff}tbody tr td{transition:transform var(--dur-fast) var(--ease-out)}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes rise-in{0%{opacity:0;transform:translateY(14px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes content-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes slide-right{0%{opacity:0;transform:translate(-18px)}to{opacity:1;transform:translate(0)}}@keyframes slide-down{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes notice-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@keyframes row-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes pulse-dot{0%,to{opacity:.45;transform:scale(.75)}50%{opacity:1;transform:scale(1.1)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:1ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:1ms!important}}@media(max-width:860px){.app{grid-template-columns:1fr}.sidebar{position:static}.content,.topbar{padding-left:16px;padding-right:16px}}.panel-toolbar{align-items:center;display:flex;gap:16px;justify-content:space-between}.actions{align-items:center;display:flex;flex-wrap:wrap;gap:8px}td.actions{display:table-cell;min-width:172px}td.actions button,td.actions .link-button{font-size:13px;gap:5px;margin-right:6px;min-height:30px;padding:0 10px;vertical-align:middle;white-space:nowrap}td.actions button:last-child,td.actions .link-button:last-child{margin-right:0}td.actions button svg{height:14px;width:14px}button.danger{background:#b42318}button.danger:hover:not(:disabled){background:#971b12;box-shadow:0 8px 18px #b4231833}button.danger.ghost{background:transparent;color:#b42318}button.danger.ghost:hover:not(:disabled){background:#fff0ed;box-shadow:none}.link-button{align-items:center;background:#e8f2fb;border-radius:6px;color:#1264a3;display:inline-flex;font-weight:700;min-height:38px;padding:0 12px;text-decoration:none;transition:background-color var(--dur-fast) var(--ease-out),transform var(--dur-fast) var(--ease-spring)}.link-button:hover{background:#d4e8f8;transform:translateY(-1px)}.link-button:active{transform:scale(.97)}.split{align-items:start;display:grid;gap:18px;grid-template-columns:minmax(320px,420px) 1fr}.user-form{max-height:calc(100vh - 108px);overflow-y:auto;position:sticky;top:88px}.form-grid{display:grid;gap:18px 20px;grid-template-columns:1fr 1fr;margin-bottom:4px}.form-grid label{gap:6px;min-width:0}.form-grid .span-2{grid-column:1 / -1}.permission-panel{display:grid;gap:10px}.permission-panel>span{color:#344563;font-size:13px;font-weight:700}.permission-grid{display:grid;gap:10px 18px;grid-template-columns:repeat(2,minmax(180px,1fr))}.permission-option{align-items:center;background:#f8fafc;border:1px solid #dbe3ee;border-radius:6px;color:#1b2a41;display:flex;flex-direction:row;font-size:14px;font-weight:600;gap:10px;min-height:40px;padding:10px 12px}.permission-option input{flex:0 0 auto}.form-grid select[multiple]{min-height:108px;padding:6px}.form-grid select[multiple] option{padding:4px 6px}.row-inactive{color:#97a3b6;font-style:italic}.hint{background:#f4f7fb;border-left:3px solid #1264a3;border-radius:0 6px 6px 0;color:#44546a;font-size:13px;line-height:1.5;margin:-8px 0 0;padding:10px 12px}.check{align-items:center;display:flex;gap:10px}.check input{min-height:auto;width:18px}.table-wrap input{min-width:120px}.table-wrap input[type=checkbox]{min-width:0;width:18px}.col-check{text-align:center;width:44px}.bulk-bar{align-items:center;background:#f4f7fb;border:1px solid #dbe3ee;border-radius:8px;display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px;padding:10px 12px}.bulk-bar select,.bulk-bar input{min-height:36px}.bulk-sep{align-self:stretch;border-left:1px solid #cbd5e6;margin:0 4px;width:1px}.toolbar-right{align-items:center;display:flex;flex-wrap:wrap;gap:10px}.search-box{align-items:center;background:#fff;border:1px solid #dbe3ee;border-radius:8px;color:#64748b;display:flex;gap:6px;min-height:36px;padding:0 8px}.search-box input{border:0;min-width:240px;outline:none;padding:6px 0}.search-box .search-clear{border-radius:6px;font-size:18px;line-height:1;min-height:22px;padding:0 6px}.empty-row{color:#97a3b6;padding:22px 12px;text-align:center}.actions input[type=file]{flex:1 1 240px;min-width:0}@media(max-width:1100px){.split{grid-template-columns:1fr}.user-form{position:static}}.stack{display:grid;gap:18px}select[multiple]{min-height:130px;padding:8px 12px}select[multiple] option{padding:8px}.metric-grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.metric{animation:rise-in var(--dur-slow) var(--ease-out) both;background:#fff;border:1px solid #dbe3ee;border-radius:8px;display:grid;gap:6px;min-height:86px;padding:16px;transition:box-shadow var(--dur-base) var(--ease-out),transform var(--dur-base) var(--ease-out)}.metric:nth-child(1){animation-delay:0ms}.metric:nth-child(2){animation-delay:50ms}.metric:nth-child(3){animation-delay:.1s}.metric:nth-child(4){animation-delay:.15s}.metric:nth-child(5){animation-delay:.2s}.metric:hover{box-shadow:0 12px 28px #122a441a;transform:translateY(-3px)}.metric span{color:#66748a;font-size:12px;font-weight:800;text-transform:uppercase}.metric strong{color:#172033;font-size:24px}.inline-form{align-items:end;display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}.inline-form button{white-space:nowrap}.notification-list{display:grid;gap:10px}.notification{align-items:center;background:#f8fbff;border:1px solid #dbe3ee;border-left:4px solid #1264a3;border-radius:8px;display:flex;gap:16px;justify-content:space-between;padding:14px}.notification.read{background:#fff;border-left-color:#c9d4e2;opacity:.72}.notification p{color:#44546a;margin:4px 0}.bulkbar{align-items:center;background:#f4f7fb;border:1px solid #dbe3ee;border-radius:8px;display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;padding:10px 12px}.bulkbar span{color:#44546a;font-size:13px;font-weight:800;margin-right:auto}.badge{align-items:center;border-radius:999px;display:inline-flex;font-size:12px;font-weight:800;gap:6px;letter-spacing:.02em;padding:4px 10px;text-transform:uppercase}.badge:before{border-radius:999px;content:"";height:8px;width:8px}.badge-pending{background:#fff4d6;color:#8a5a00}.badge-pending:before{animation:pulse-dot 1.4s ease-in-out infinite;background:#eab308}.badge-level1{background:#dbeafe;color:#1e40af}.badge-level1:before{background:#2563eb}.badge-approved{background:#dcfce7;color:#166534}.badge-approved:before{background:#16a34a}.badge-rejected{background:#fee2e2;color:#991b1b}.badge-rejected:before{background:#dc2626}.toast-strip{animation:strip-in var(--dur-base) var(--ease-out) both;display:grid;gap:8px;justify-items:center;padding:14px 28px 0}@keyframes strip-in{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.toast{align-items:center;animation:toast-in var(--dur-base) var(--ease-spring) both,toast-out var(--dur-base) var(--ease-in-out) 3.34s both;background:#0f172af0;border-radius:999px;box-shadow:0 10px 28px #0f172a38;color:#f8fafc;display:flex;font-size:14px;font-weight:600;gap:10px;max-width:min(420px,calc(100vw - 32px));padding:11px 18px}.toast:before{border-radius:999px;content:"";flex:0 0 auto;height:8px;width:8px}.toast-success:before{background:#4ade80}.toast-error:before{background:#f87171}.toast-info:before{background:#60a5fa}@keyframes modal-in{0%{opacity:0;transform:translateY(16px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes toast-in{0%{opacity:0;transform:translateY(-10px) scale(.94)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes toast-out{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-6px)}}tr.row-flash td{animation:row-flash 1.6s ease both}.status-flash{animation:status-pop 1.8s cubic-bezier(.2,.8,.2,1) both;display:inline-block}@keyframes status-pop{0%{transform:scale(.6);opacity:0}25%{transform:scale(1.18);opacity:1}40%{transform:scale(1)}to{transform:scale(1)}}@keyframes row-flash{0%{background:#fff9db}60%{background:#fff9db}to{background:transparent}}.clickable-row{cursor:pointer}.reason-list{background:#f7fafc;border:1px solid #d9e3ef;border-left:3px solid #1264a3;border-radius:6px;color:#22314a;display:grid;gap:6px;margin:14px 0;padding:12px 14px}.reason-list p{margin:0}textarea{min-height:112px;padding:10px 12px;resize:vertical}.reason-modal h3{margin:0 0 6px}.reason-modal .muted{margin:0}.modal-actions{display:flex;gap:10px;justify-content:flex-end}.compact-error{margin:-4px 0 0}.item-review-actions{align-items:center;display:flex;flex-wrap:nowrap;gap:8px;justify-content:center;min-width:0}.item-review-actions button{min-height:38px;padding:0 12px;white-space:nowrap}.item-review-actions button.danger.active{box-shadow:inset 0 0 0 2px #b2231838}.item-reason-text{background:#fff1f0;border:1px solid #ffd8d2;border-radius:6px;color:#9f2419;display:block;font-size:12px;font-weight:700;line-height:1.35;max-width:140px;overflow:hidden;padding:4px 8px;text-align:center;text-overflow:ellipsis;white-space:nowrap}.overtime-items-table{table-layout:fixed}.overtime-items-table tbody tr.item-row-rejected,.overtime-items-table tbody tr.item-row-rejected:hover{background:#fff5f3}.overtime-items-table tbody tr.item-row-rejected td{border-bottom-color:#ffd8d2}.overtime-items-table .col-stt{width:4%}.overtime-items-table .col-employee-id{width:8%}.overtime-items-table .col-employee-name{width:18%}.overtime-items-table .col-date{width:11%}.overtime-items-table .col-time{width:9%}.overtime-items-table .col-hours{width:7%}.overtime-items-table .col-note{width:21%}.overtime-items-table .col-actions{width:13%}.overtime-items-table.no-actions .col-stt{width:5%}.overtime-items-table.no-actions .col-employee-id{width:10%}.overtime-items-table.no-actions .col-employee-name{width:22%}.overtime-items-table.no-actions .col-date{width:15%}.overtime-items-table.no-actions .col-time{width:12%}.overtime-items-table.no-actions .col-hours{width:9%}.overtime-items-table.no-actions .col-note{width:15%}.overtime-items-table td.actions{min-width:150px;width:150px}.overtime-items-table .item-review-actions{min-width:0;margin:0 auto;width:fit-content}.overtime-items-table .item-review-actions button{font-size:12px;min-height:30px;padding:0 10px;flex:0 0 auto;width:auto}.overtime-items-table .item-reason-text{flex:1 1 auto;max-width:90px}
