@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@400;450;500;600;700&family=Inter:wght@400;500;600;650;700;800&display=swap');
:root{--purple:#7461cb;--deep:#54469b;--ink:#282737;--muted:#92919e;--line:#eeedf3;--bg:#f8f9fc;--green:#318975}*{box-sizing:border-box}body{margin:0;background:var(--bg);font:14px 'Inter','IBM Plex Sans Thai',sans-serif;color:var(--ink)}button,input,select,textarea{font:inherit}button,a,input,select{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #b7a7f1;outline-offset:3px}a{color:inherit;text-decoration:none}svg{width:19px;height:19px;stroke-width:1.65;flex-shrink:0}.sidebar{width:244px;background:white;border-right:1px solid var(--line);height:100vh;position:fixed;padding:35px 22px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;font-size:24px;font-weight:750;letter-spacing:-1.1px}.brand-light{font-weight:400}.brand small{display:block;font-size:10px;color:var(--muted);font-weight:400;letter-spacing:.6px;margin-top:3px}.logo{font-size:37px;color:white;background:var(--purple);border-radius:13px;line-height:47px;width:45px;height:46px;text-align:center;position:relative}.logo span{color:#d9d0fa;position:absolute;font-size:30px;right:4px;top:-8px}.workspace{display:flex;align-items:center;gap:10px;border:1px solid var(--line);padding:12px 10px;border-radius:10px;margin-top:39px;font-size:12px;font-weight:500}.workspace small,.profile small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.workspace-icon{background:#f1eef9;color:var(--purple);width:29px;height:30px;text-align:center;line-height:30px;border-radius:7px}.chevron{margin-left:auto;color:var(--muted)}.nav-label{margin:30px 12px 12px;color:#a7a4b3;font-size:10px}nav{display:grid;gap:7px}nav button{background:none;border:0;color:#817e91;display:flex;align-items:center;gap:11px;padding:13px 12px;border-radius:8px;font-size:12px;text-align:left}nav button.active{background:#efebfa;color:#7662bc;font-weight:600}nav .count,nav .badge{margin-left:auto;font-size:10px;padding:2px 6px;background:#e6dff6;color:var(--purple);border-radius:5px}nav .badge{background:#f8e8db;color:#b77f43}.sidebar-bottom{margin-top:auto}.demo-mark{border:1px dashed #e3deee;background:#fcfbfe;border-radius:9px;padding:13px;font-size:11px;color:#766987}.demo-mark small{display:block;font-size:10px;color:#a39aaa;padding-left:12px;margin-top:4px}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#8db9a4;margin-right:6px}.profile{border-top:1px solid var(--line);margin-top:21px;padding-top:20px;display:flex;gap:10px;align-items:center;font-size:11px}.avatar{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;font-size:11px;flex-shrink:0;font-weight:600}.purple{background:#ece7fa;color:#8c71bf}.avatar.small{width:31px;height:31px;font-size:10px}main{margin-left:244px}.topbar{height:77px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 40px;font-size:11px}.crumb{color:var(--muted)}.slash{color:#ccc8d7;margin:0 13px}.top-right{display:flex;align-items:center;gap:23px}.today{color:#928d9e}.content{max-width:1540px;margin:auto;padding:33px 39px 0}.heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:27px;gap:16px}.eyebrow{font-size:9px;font-weight:650;letter-spacing:2px;color:#a19bab}h1{font-size:25px;letter-spacing:-.6px;font-weight:600;margin:9px 0 4px}p{margin:0;color:var(--muted);font-size:12px}.heading-actions{display:flex;gap:9px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #e3e0eb;background:#fff;color:#6e687d;padding:10px 14px;border-radius:7px;font-size:11px;line-height:20px;white-space:nowrap}.btn svg{width:15px;height:15px}.btn:hover{background:#f3f0fb}.btn.primary{background:var(--purple);color:white;border-color:var(--purple);box-shadow:0 3px 5px #7461cb15}.btn.primary:hover{background:var(--deep)}.welcome{border:1px solid #e6e0f5;background:#eeebf7;border-radius:12px;padding:23px 27px;display:flex;align-items:center;justify-content:space-between;position:relative;overflow:hidden;margin-bottom:24px}.welcome h2{font-size:18px;font-weight:500;margin:0 0 7px;color:#51436c}.welcome p{color:#92849e;font-size:11px}.welcome b{color:#7461ad;font-weight:500}.welcome-art{width:165px;height:75px;position:relative;flex-shrink:0}.art-circle{border:1px solid #d9d2eb;border-radius:50%;width:125px;height:125px;position:absolute;right:7px;top:-24px}.art-circle:after{content:'';border:1px solid #d9d2eb;border-radius:50%;position:absolute;inset:13px}.mini-card{position:absolute;background:#fff;border:1px solid #e2ddee;box-shadow:0 5px 14px #8e79b312;border-radius:9px;padding:11px 15px;right:27px;top:0;transform:rotate(-7deg);color:#9b89b7}.mini-card svg{width:30px;height:30px}.mini-check{position:absolute;right:8px;bottom:0;border-radius:50%;background:#d5e4dc;color:#699b83;width:30px;height:30px;display:grid;place-items:center;border:4px solid #eeebf7}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:25px}.stat{background:#fff;border:1px solid var(--line);border-radius:10px;padding:18px 20px}.stat-top{display:flex;align-items:center;justify-content:space-between;color:#898394;font-size:11px}.stat-icon{width:31px;height:31px;border-radius:8px;display:grid;place-items:center;background:#f3effb;color:#9c84c4}.stat:nth-child(2) .stat-icon{background:#fdf3e7;color:#ccab77}.stat:nth-child(3) .stat-icon{background:#eaf4f0;color:#79a48f}.stat:nth-child(4) .stat-icon{background:#edf2fb;color:#94a7ca}.stat-number{font-size:30px;font-weight:600;letter-spacing:-1px;margin:9px 0 7px}.stat-number small{font-size:11px;color:#aaa4b3;font-weight:400;letter-spacing:0;margin-left:7px}.stat-foot{font-size:10px;color:#aaa4b3}.stat-foot .positive{color:#6c9b83}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(270px,1fr);gap:22px}.panel{background:white;border:1px solid var(--line);border-radius:11px;overflow:hidden;margin-bottom:22px}.panel-head{display:flex;justify-content:space-between;align-items:center;padding:20px 21px;gap:10px}.panel h2{font-size:13px;font-weight:600;margin:0}.panel h2 .pill{margin-left:6px}.panel-subtitle{font-size:10px;color:#aaa3b1;margin-top:4px}.link-btn{font-size:10px;border:0;background:transparent;color:#9381ba;padding:3px}.link-btn:hover{color:#5f4795}.pill{display:inline-flex;padding:4px 8px;border-radius:5px;font-size:9px;white-space:nowrap;line-height:1.5}.pill.pending{background:#fcf2e5;color:#be9656}.pill.approved{background:#eaf5ef;color:#6d9f85}.pill.rejected{background:#fbecec;color:#c37a7a}.pill.active{background:#edf5f0;color:#76a185}.pill.inactive{background:#f1eff4;color:#9b93a8}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{font-size:10px;font-weight:400;color:#a19aa9;background:#fcfbfd;border-top:1px solid #f4f2f7;border-bottom:1px solid #f4f2f7;padding:12px 20px}td{font-size:11px;padding:14px 20px;border-bottom:1px solid #f4f2f7;color:#868091}tr:last-child td{border-bottom:0}.person{display:flex;align-items:center;gap:10px}.person strong{display:block;font-size:11px;font-weight:500;color:#55505f}.person small{font-size:9px;display:block;margin-top:4px;color:#b0a8b7}.person .avatar{width:32px;height:32px;font-size:10px}.approve-actions{display:flex;gap:6px}.approve-actions button{width:25px;height:25px;border:1px solid #e3ece6;background:#f3f9f5;color:#80a68b;border-radius:5px;display:grid;place-items:center}.approve-actions button.reject{border-color:#eee3e3;background:#fcf7f7;color:#c5a0a0}.approve-actions svg{width:13px;height:13px}.panel-bottom{padding:12px 20px;background:#fdfcfe;border-top:1px solid #f4f2f7;display:flex;justify-content:space-between;align-items:center;color:#aaa3b1;font-size:10px}.bars{padding:3px 22px 21px;display:grid;gap:18px}.bar-label{display:flex;justify-content:space-between;font-size:10px;color:#8e8599;margin-bottom:8px}.bar-label b{font-weight:500;color:#a19aaa}.bar-track{height:7px;background:#f5f2f8;border-radius:5px;overflow:hidden}.bar-fill{height:100%;border-radius:5px;background:#b6a4db}.legend{font-size:9px;color:#aaa2b3;padding:0 22px 20px}.legend .dot{background:#b6a4db}.on-leave{padding:0 20px 7px}.leave-person{display:flex;align-items:center;gap:10px;padding:12px 0;border-top:1px solid #f5f2f8}.leave-person .when{font-size:9px;color:#aaa2b3;margin-left:auto}.empty{padding:32px 20px;text-align:center;color:#a69eaf;font-size:12px}.toolbar{display:flex;gap:10px;padding:0 20px 20px;align-items:center}.search-wrap{position:relative;flex:1;max-width:360px}.search-wrap svg{position:absolute;left:12px;top:11px;width:16px;color:#aaa1b8}.search-wrap input{padding-left:36px;width:100%}input,select,textarea{border:1px solid #e7e1ed;border-radius:6px;padding:10px 11px;color:#666071;background:#fff;font-size:12px;outline:none}input:focus,select:focus,textarea:focus{border-color:#b3a1d3;box-shadow:0 0 0 3px #eee8f8}input::placeholder{color:#b9b0c2}.toolbar select{max-width:180px}.edit{color:#9581b8;border:0;background:none;font-size:11px}.summary-note{border:1px solid #e4dfed;border-radius:8px;background:#faf8fd;color:#998aa8;font-size:11px;padding:14px 17px;margin-bottom:22px}.section-tabs{display:flex;gap:4px;padding:0 20px 17px;flex-wrap:wrap}.tab{border:0;background:none;color:#9a90a5;padding:8px 13px;border-radius:6px;font-size:11px}.tab.selected{background:#f0ebf8;color:#8a70b2}footer{display:flex;justify-content:space-between;gap:12px;padding:5px 0 25px;font-size:9px;color:#b6adbf}.footer-divider{margin:0 7px;color:#d5cedd}dialog{border:0;border-radius:13px;padding:25px;width:520px;max-width:calc(100% - 30px);color:var(--ink);box-shadow:0 20px 90px #37234b26}dialog::backdrop{background:#26203366;backdrop-filter:blur(3px)}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}.modal-header h2{font-size:20px;font-weight:500;margin:5px 0 0}.icon-btn{border:0;background:#f5f1fa;color:#9582b0;border-radius:6px;font-size:23px;width:30px;height:30px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:flex;flex-direction:column;gap:7px;font-size:11px;color:#8a7f99}.field.full{grid-column:1/-1}.field textarea{resize:vertical;min-height:75px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:25px}.form-note{color:#a89bb4;font-size:10px;margin-top:15px;line-height:1.8}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%) translateY(100px);background:#4f4263;color:white;padding:12px 22px;border-radius:8px;opacity:0;transition:.25s;font-size:12px;z-index:5}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.muted{color:#b0a4be}.count-summary{font-size:10px;color:#a69aaf}.date-tag{font-size:9px;color:#a69aaf;border:1px solid #eee9f4;padding:5px 8px;border-radius:5px}.chart-note{color:#aaa0b2;font-size:10px;padding:0 22px 20px}.balance{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:0 20px 20px}.balance div{padding:13px;background:#f9f7fc;border-radius:7px;font-size:11px;color:#91819e}.balance strong{display:block;font-size:19px;margin:6px 0;color:#78658e;font-weight:500}
.leave-reason{font-size:10px;margin-top:8px;white-space:normal;max-width:220px}.leave-reason summary{cursor:pointer;color:#9581b8}.leave-reason p{font-size:11px;color:#8d8199;line-height:1.8;margin-top:6px;overflow-wrap:anywhere}
@media(min-width:1500px){.content{padding-top:40px}.stat{padding:23px}.welcome{padding:28px}.dashboard-grid{grid-template-columns:minmax(0,1.8fr) minmax(320px,1fr)}}
@media(max-width:1180px){.sidebar{width:210px;padding:30px 15px}main{margin-left:210px}.content{padding:26px 23px 0}.topbar{padding:0 24px}.dashboard-grid{grid-template-columns:1fr}.dashboard-right{display:grid;grid-template-columns:1fr 1fr;gap:20px}.stats{gap:10px}.stat{padding:15px}.stat-top{font-size:10px}.stat-number{font-size:26px}td,th{padding-left:15px;padding-right:15px}}
@media(max-width:760px){.sidebar{width:70px;padding:23px 10px}.brand>span:last-child,.workspace,.nav-label,.sidebar-bottom,nav .count,nav .badge{display:none}.brand{justify-content:center}.logo{width:39px;height:40px;line-height:40px;font-size:32px}nav{margin-top:35px}nav button{font-size:0;padding:13px;gap:0}nav svg{width:21px;height:21px}main{margin-left:70px}.content{padding:23px 16px 0}.topbar{height:60px;padding:0 17px}.topbar .crumb,.slash,.today{display:none}.heading{align-items:flex-start;flex-direction:column;gap:17px}.heading-actions{width:100%}.heading-actions .btn{flex:1}.eyebrow{font-size:8px}h1{font-size:23px}.welcome{padding:20px}.welcome h2{font-size:16px}.welcome p{font-size:10px;max-width:210px;line-height:1.9}.welcome-art{width:70px;opacity:.8}.mini-card{right:0}.art-circle{right:-30px}.stats{grid-template-columns:1fr 1fr;gap:10px}.stat{padding:15px}.stat-number{font-size:28px}.dashboard-right{display:block}.toolbar{flex-wrap:wrap}.toolbar select{max-width:none;flex:1}.search-wrap{max-width:none;flex-basis:100%}.panel-head{padding:17px}footer{flex-direction:column;font-size:8px;line-height:1.8}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.balance{gap:6px;padding:0 12px 15px}.balance div{padding:10px;font-size:10px}}
[hidden]{display:none!important}.install-banner{border:1px solid #e4ddef;background:#f1edf9;border-radius:10px;padding:17px 20px;display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 22px}.install-brand{display:flex;align-items:center;gap:13px}.install-brand img{border-radius:10px}.install-brand strong{font-size:12px;font-weight:500;color:#75618f}.install-brand p{font-size:10px;margin-top:4px;color:#a08eaf}.install-banner .btn{color:#8a71ad;background:white;border-color:#e0d6ee}.install-intro{font-size:12px;line-height:1.9;color:#9b8ba7;margin-bottom:17px}.install-options{display:grid;gap:15px;margin:18px 0}.install-options section{padding:15px;border:1px solid #eee8f5;border-radius:9px;background:#fcfafe}.install-options h3{margin:0 0 8px;font-size:12px;color:#8b70a8;font-weight:500}.install-options ol{margin:0;padding-left:20px;font-size:11px;color:#9b8ba7;line-height:2}.install-options li+li{margin-top:3px}#install-feedback{font-size:11px;color:#89709d;line-height:1.8;margin-top:12px;overflow-wrap:anywhere}#install-dialog{max-height:85vh;overflow:auto}#install-dialog .form-note{margin-bottom:15px}#install-now{width:100%}@media(max-width:760px){.install-banner{align-items:flex-start;flex-direction:column}.install-banner .btn{width:100%}.install-brand strong{font-size:11px}}@media(display-mode:standalone){.topbar{padding-top:env(safe-area-inset-top)}.content{padding-bottom:env(safe-area-inset-bottom)}}
