@font-face{font-family:Kanit;src:url('Kanit-Regular.ttf') format('truetype');font-weight:100 900;font-display:swap}*{box-sizing:border-box}body{margin:0;font:15px/1.6 Kanit,Tahoma,sans-serif;color:#164563;background:#f0f9ff}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus,select:focus,textarea:focus{outline:3px solid #7dd3fc;outline-offset:2px}a{text-decoration:none;color:inherit}button{border:0}h1,h2,h3,p{margin:0}h1{font-size:27px;letter-spacing:-.6px}h2{font-size:18px}h3{font-size:16px}.muted{color:#7895a8;font-size:13px}.eyebrow{font-size:11px;letter-spacing:2px;color:#0284c7}.layout{display:grid;grid-template-columns:235px minmax(0,1fr);min-height:100vh}.sidebar{background:linear-gradient(165deg,#0758ba 0,#0c4a6e 85%);color:#d8eeff;padding:28px 14px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:22px;overflow:auto;box-shadow:8px 0 30px #0758ba13}.brand{display:flex;align-items:center;gap:12px;padding:0 10px;color:white}.brand img{width:47px;height:47px;box-shadow:0 5px 14px #00204644;border-radius:14px}.brand b{font-size:21px;line-height:1.15}.brand small{display:block;font-size:11px;opacity:.7}.nav{display:grid;gap:6px}.nav button{background:transparent;color:inherit;display:flex;gap:12px;align-items:center;padding:13px 15px;border-radius:13px;text-align:left;font-size:14px;min-height:48px}.nav button.active{background:linear-gradient(120deg,#38bdf8,#0ea5e9);color:white;box-shadow:0 6px 18px #031d4e44, inset 0 1px 0 #b9ecff80}.nav button:hover{background-color:#ffffff16}.nav .icon{width:21px;height:21px}.nav .badge{margin-left:auto;background:#fef3c7;color:#92400e;min-width:23px;text-align:center}.side-profile{border:1px solid #ffffff25;background:#ffffff0b;border-radius:15px;padding:14px;display:flex;gap:10px}.avatar{width:39px;height:39px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;background:#e0f2fe;color:#0284c7;font-size:18px}.side-profile small{display:block;font-size:11px;color:#acd5f2}.side-foot{margin-top:auto;font-size:11px;padding:15px;border:1px solid #ffffff20;border-radius:12px;color:#b5d8ed}.side-foot strong{display:block;color:white;font-weight:400}.main{min-width:0}.topbar{height:82px;background:#ffffffdf;backdrop-filter:blur(12px);border-bottom:1px solid #dbeaf5;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 30px;position:sticky;top:0;z-index:20;box-shadow:0 3px 15px #07598508}.top-title{display:flex;align-items:center;gap:16px}.top-title b{font-size:20px}.topbar input{border-radius:30px;background:#f0f7fc;width:260px;padding:10px 20px}.top-right{display:flex;align-items:center;gap:14px}.clock{border-right:1px solid #d4e5f2;padding-right:20px;font-size:13px}.icon{width:22px;height:22px;display:inline-block;vertical-align:middle;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.icon-button{width:45px;height:45px;display:grid;place-items:center;background:transparent;color:#0284c7;border-radius:11px}.top-tabs{display:none}.content{padding:24px 30px 35px;max-width:1720px;margin:auto}.bread{font-size:12px;color:#94a9ba;margin-bottom:13px}.context{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}.context-controls{display:flex;gap:10px;align-items:center;max-width:650px}.context select{min-width:270px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.page-heading p{font-size:13px;color:#7a98ac;margin-top:3px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border-radius:11px;padding:10px 17px;background:#fff;border:1px solid #d7e7f3;color:#286384;white-space:nowrap;font-size:13px}.btn.primary{background:linear-gradient(125deg,#0ea5e9,#0284c7);border-color:#0ea5e9;color:white;box-shadow:0 6px 15px #0ea5e927}.btn.danger{color:#c44e5f;background:#fff1f2;border-color:#fecdd3}.btn.small{min-height:36px;padding:6px 11px;font-size:12px}.btn:hover{filter:brightness(.97)}.notice{border:1px solid #f5e5b0;background:#fffbeb;color:#97702e;border-radius:12px;padding:11px 16px;font-size:12px;margin-bottom:18px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.notice select{width:auto;max-width:240px}.welcome{border:1px solid #d4ebfa;background:linear-gradient(115deg,#e0f2fe 0%,#f8fcff 68%,#d8f3ff 100%);border-radius:19px;padding:24px 30px;margin-bottom:22px;display:flex;align-items:center;justify-content:space-between;overflow:hidden}.welcome h2{font-size:27px;color:#0c4a6e;line-height:1.35;margin:5px 0 10px}.welcome p{font-size:13px;color:#6b95ad}.welcome-art{display:grid;place-items:center;position:relative;width:180px;height:150px;flex-shrink:0}.welcome-art:before{content:'';position:absolute;width:170px;height:170px;background:#ffffffb0;border-radius:50%;box-shadow:0 0 0 18px #ffffff45}.welcome-art img{width:102px;z-index:1;transform:rotate(-7deg);border-radius:26px;box-shadow:0 14px 25px #0284c735}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:22px}.stat{position:relative;padding:19px 20px 14px;border-radius:15px;overflow:hidden;color:white;box-shadow:0 8px 18px #0284c724;background:linear-gradient(120deg,#0ea5e9,#1462db)}.stat:nth-child(2){background:linear-gradient(120deg,#43d58b,#13a67c)}.stat:nth-child(3){background:linear-gradient(120deg,#ba83fa,#8455db)}.stat:nth-child(4){background:linear-gradient(120deg,#28c2cf,#07a3b3)}.stat .icon{width:42px;height:42px;position:absolute;right:20px;top:24px;opacity:.8}.stat label{font-size:13px;color:#ffffffdf}.stat strong{display:block;font:600 31px/1.5 Kanit;margin-top:2px}.stat:after{content:'';position:absolute;right:-25px;top:-25px;width:115px;height:115px;border-radius:50%;background:#ffffff0e}.progress{height:6px;background:#ffffff30;border-radius:10px;margin:12px 0 6px;overflow:hidden}.progress span{display:block;height:100%;background:#ffffffca;border-radius:10px}.stat small{font-size:11px;color:#ffffffce}.grid-two{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(320px,1fr);gap:20px}.grid-three{display:grid;grid-template-columns:1.2fr 1fr 1.2fr;gap:18px}.card{background:white;border:1px solid #dfebf5;border-radius:16px;padding:22px;margin-bottom:20px;box-shadow:0 4px 12px #1e5d9607}.card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.card-head h2{display:flex;align-items:center;gap:8px}.card-head .icon{color:#0284c7}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:13px}th{background:#e8f5fd;color:#3c789e;font-size:12px;font-weight:400;padding:12px;white-space:nowrap}th:first-child{border-radius:9px 0 0 9px}th:last-child{border-radius:0 9px 9px 0}td{padding:13px 12px;border-bottom:1px solid #edf4f9;vertical-align:middle}tr:last-child td{border:0}.badge{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:6px;font-size:11px;background:#eaf6fd;color:#2787b6;white-space:nowrap}.badge.confirmed,.badge.approved{background:#dcfce7;color:#15803d}.badge.pending{background:#fff2cd;color:#a06b0a}.badge.returned{background:#ffe4e6;color:#b94357}.badge.draft{background:#f1f5f9;color:#71899e}.empty{text-align:center;padding:35px 15px;color:#91a8ba;font-size:13px}.filters{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-bottom:16px}.filters input{flex:1;min-width:150px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#547e99}.field small{font-size:11px;color:#8ba3b3}input,select,textarea{font:inherit;width:100%;min-width:0;border:1px solid #d6e6f2;padding:10px 12px;border-radius:10px;color:#174e70;background:#fff;min-height:44px}textarea{resize:vertical;min-height:110px;line-height:1.8}.wide{grid-column:1/-1}.actions{display:flex;gap:10px;align-items:center;justify-content:flex-end;flex-wrap:wrap;margin-top:20px}.save-state{font-size:12px;color:#7a96aa}.save-state.error{color:#be4559}.detail-text{white-space:pre-wrap;overflow-wrap:anywhere}.attendance-count{display:flex;gap:12px;flex-wrap:wrap;padding:13px;border-radius:10px;background:#f0f9ff;font-size:13px;margin:15px 0}.attendance-select{min-width:130px}.chart{height:170px;display:flex;align-items:flex-end;gap:12px;padding:10px 5px 0;border-bottom:1px solid #e2edf5}.bar-group{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:6px}.bar{width:65%;min-width:15px;max-width:40px;border-radius:6px 6px 0 0;background:linear-gradient(#38bdf8,#0284c7);min-height:3px}.bar-label{font-size:11px;color:#8ca4b5;white-space:nowrap}.bar-number{font-size:11px;color:#0ea5e9}.donut{width:142px;height:142px;margin:14px auto;border:16px solid #dff3ff;border-top-color:#0ea5e9;border-right-color:#7c86ef;border-radius:50%;display:grid;place-items:center;text-align:center}.donut strong{font-size:28px;display:block;line-height:1.1}.steps{display:flex;gap:6px;align-items:flex-start;justify-content:space-around;padding:14px 0}.step{text-align:center;font-size:11px;color:#7c95aa;flex:1;min-width:0}.step-circle{border:4px solid #e5f4fc;background:#f0f9ff;width:45px;height:45px;border-radius:50%;display:grid;place-items:center;color:#7ca9c7;margin:0 auto 9px;box-shadow:0 4px 8px #7baaca19;font-size:16px}.step.done .step-circle{background:#22c6a0;color:white}.step.current .step-circle{background:#0ea5e9;color:white;box-shadow:0 0 0 4px #d5f1ff}.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.quick{display:flex;align-items:center;gap:12px;padding:16px 14px;background:linear-gradient(120deg,#f0f9ff,#e0f2fe);border:1px solid #b9e3fc;border-radius:13px;text-align:left;color:#0c4a6e;min-height:75px}.quick:nth-child(2){background:linear-gradient(120deg,#eafff3,#dcfce7);border-color:#a8ebcf}.quick:nth-child(3){background:linear-gradient(120deg,#f7f0ff,#efe5ff);border-color:#dcc4fb}.quick:nth-child(4){background:linear-gradient(120deg,#fff7ed,#ffedd5);border-color:#f9d7b3}.quick .icon{width:31px;height:31px;color:#0284c7}.quick small{display:block;font-size:11px;color:#7c9aaf}.timeline{display:grid;gap:17px}.timeline-item{display:flex;gap:12px;align-items:flex-start;font-size:12px}.timeline-dot{width:9px;height:9px;border-radius:50%;background:#0ea5e9;margin-top:6px;flex-shrink:0;box-shadow:0 0 0 4px #e0f2fe}.room-card{border:1px solid #d8eaf7;border-radius:15px;background:white;padding:22px;text-align:left;min-height:170px;color:inherit}.room-card h2{color:#0284c7;font-size:24px}.room-grid,.report-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.report-card{margin:0;display:flex;flex-direction:column;gap:12px}.report-card .btn{margin-top:auto}.report-icon{width:45px;height:45px;border-radius:12px;background:#e0f2fe;color:#0284c7;display:grid;place-items:center}.audit{padding:12px 0;border-bottom:1px solid #eaf2f8}.audit b{font-size:13px}.signature-pad{width:100%;height:190px;border:2px dashed #7dd3fc;border-radius:12px;background:#fff;touch-action:none}.checkline{display:flex;align-items:flex-start;gap:10px;font-size:13px}.checkline input{width:20px;min-height:20px;flex-shrink:0}.footer{display:flex;justify-content:space-between;gap:15px;color:#94a9b9;font-size:11px;padding:15px 0}.bottom-nav{display:none}.login-page{min-height:100vh;background:radial-gradient(at 0 0,#bae6fd,transparent 60%),radial-gradient(at 100% 100%,#dbeafe,transparent 50%),#f0f9ff;display:grid;place-items:center;padding:20px}.login-card{width:min(950px,100%);display:grid;grid-template-columns:1.1fr 1fr;background:#fff;border:1px solid #d6ebfa;border-radius:26px;overflow:hidden;box-shadow:0 30px 100px #07598516}.login-hero{padding:45px;background:linear-gradient(145deg,#0284c7,#0c4a6e);color:white;display:flex;flex-direction:column;gap:20px;justify-content:center}.login-hero img{width:75px}.login-hero h1{font-size:33px;line-height:1.4}.login-hero p{color:#b6e5fa;font-size:14px}.login-fields{padding:46px 36px}.login-fields h2{font-size:25px;margin-bottom:8px}.login-fields .field{margin-top:20px}.login-fields .btn{margin-top:25px;width:100%}.demo-accounts{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}.demo-accounts button{padding:6px 9px;border:1px solid #d6e6f4;background:#f0f9ff;border-radius:7px;font-size:11px;color:#286384}.loading{min-height:60vh;display:grid;place-items:center;color:#0284c7}dialog{border:1px solid #d9edf9;background:#fff;border-radius:20px;max-width:780px;width:calc(100% - 28px);padding:26px;box-shadow:0 30px 100px #0c4a6e33;color:#164563;max-height:92vh;overflow:auto}dialog::backdrop{background:#082f4955;backdrop-filter:blur(5px)}dialog.pdf-dialog{width:calc(100% - 28px);max-width:1150px;height:94vh;display:flex;flex-direction:column}dialog:not([open]){display:none}.pdf-frame{border:1px solid #d6e6f2;border-radius:12px;width:100%;flex:1;min-height:350px;background:#e2e8f0}#toast{display:none;position:fixed;bottom:24px;left:50%;transform:translateX(-50%);border-radius:12px;background:#0c4a6e;color:white;padding:13px 22px;z-index:100;max-width:90vw;font-size:13px;box-shadow:0 10px 30px #07598533}#toast.show{display:block}#toast.error{background:#b44155}.error-text{color:#b44155;font-size:13px;white-space:pre-wrap}.search-result{padding:12px;border-bottom:1px solid #e8f3fa;text-align:left;background:white;width:100%;color:inherit}.user-chip{display:flex;align-items:center;gap:10px}.mobile-only{display:none}
@media(min-width:1700px){.content{padding:28px 38px}.welcome{padding:30px 36px}}@media(max-width:1250px){.layout{grid-template-columns:208px minmax(0,1fr)}.content{padding:20px}.topbar{padding:15px 20px}.topbar input{width:200px}.grid-three{grid-template-columns:1fr 1fr}.grid-three>.card:last-child{grid-column:1/-1}.quick-grid{grid-template-columns:1fr 1fr}.clock{display:none}.stat{padding:16px}.stat .icon{width:30px;right:12px}}@media(max-width:950px){.layout{display:block}.sidebar{display:none}.sidebar.open{display:flex;position:fixed;left:0;top:0;width:240px;z-index:45}.top-tabs{display:flex;padding:0 20px;background:#fff;border-bottom:1px solid #dbeaf5;gap:10px;overflow:auto}.top-tabs button{padding:11px 8px;background:white;color:#6a8ba5;font-size:12px;white-space:nowrap}.top-tabs button.active{color:#0284c7;border-bottom:3px solid #0ea5e9}.top-right .user-name{display:none}.mobile-only{display:block}.context-controls{max-width:100%}.room-grid,.report-grid{grid-template-columns:repeat(2,1fr)}.grid-two{grid-template-columns:1fr}.welcome h2{font-size:25px}}@media(max-width:640px){body{font-size:14px}.topbar{height:66px;padding:10px 13px}.top-title{gap:4px}.top-title b{font-size:17px}.topbar input{display:none}.top-right{gap:4px}.top-right>.btn{display:none}.avatar{width:34px;height:34px}.top-tabs{display:none}.content{padding:18px 14px 90px}.bread{margin-bottom:10px}.context{display:block;margin-bottom:15px}.context-controls{margin-top:10px;display:block}.context select{min-width:0}.page-heading{align-items:flex-start;flex-wrap:wrap}.page-heading h1{font-size:23px}.page-heading .btn{width:100%}.welcome{padding:21px;margin-bottom:18px}.welcome h2{font-size:22px}.welcome-art{display:none}.welcome .btn{margin-top:14px}.stats{grid-template-columns:1fr 1fr;gap:11px}.stat{padding:13px;border-radius:13px}.stat strong{font-size:27px}.stat label{font-size:11px}.stat .icon{display:none}.stat small{font-size:10px}.stat .progress{margin:7px 0}.grid-three{display:block}.card{padding:17px;border-radius:14px}.card-head{align-items:flex-start;flex-wrap:wrap}.card-head h2{font-size:16px}.quick-grid{gap:9px}.quick{padding:12px;display:block}.quick .icon{display:block;margin-bottom:7px}.quick b{font-size:12px}.quick small{font-size:10px}.grid-two{gap:0}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}.btn{min-height:46px;padding:11px 14px;font-size:13px}.actions{justify-content:stretch}.actions .btn{flex:1}.room-grid,.report-grid{grid-template-columns:1fr}.table-wrap{margin:0 -6px}td,th{padding:10px;font-size:12px}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:#fffffff5;backdrop-filter:blur(15px);border-top:1px solid #d4e9f7;z-index:40;padding:6px 5px max(6px,env(safe-area-inset-bottom));justify-content:space-around;box-shadow:0 -5px 25px #07598509}.bottom-nav button{background:none;color:#8fa9bc;border-radius:10px;padding:5px 10px;min-width:55px;min-height:52px;font-size:10px;display:grid;place-items:center;gap:3px}.bottom-nav button.active{color:#0284c7;background:#e0f2fe}.bottom-nav .icon{width:23px;height:23px}#toast{bottom:82px}.login-card{grid-template-columns:1fr;max-width:450px}.login-hero{padding:25px}.login-hero h1{font-size:25px}.login-hero img{width:48px}.login-hero p{display:none}.login-fields{padding:25px}.login-fields h2{font-size:21px}.footer{display:block}.notice{padding:10px 12px}.notice select{max-width:100%}.pdf-dialog{padding:14px}.pdf-frame{min-height:350px}dialog{padding:20px}.chart{gap:6px}.signature-pad{height:175px}}
