:root{--teal:#0d9488;--teal-dark:#0f766e;--slate:#0f172a;--muted:#64748b;--line:#e2e8f0;--bg:#f6f8fa;--card:#fff;--radius:5px}*{box-sizing:border-box}body{margin:0;font-family:Kantumruy Pro,Khmer OS Siemreap,sans-serif;color:#1e293b;background:var(--bg)}button,input,select,textarea{font:inherit}.hidden{display:none!important}.login{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr;background:#fff}.login-art{background:linear-gradient(145deg,#083b3a,#0f766e);color:#fff;padding:10%;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.login-art:after{content:"";position:absolute;width:420px;height:420px;border:1px solid #ffffff20;border-radius:50%;right:-130px;bottom:-160px;box-shadow:0 0 0 70px #ffffff08,0 0 0 140px #ffffff08}.brand-mark{width:42px;height:42px;border-radius:var(--radius);background:var(--teal);color:#fff;display:grid;place-items:center;font-size:24px;font-weight:800}.login-art .brand-mark{background:#fff;color:var(--teal)}.login-art h1{font-family:Moul,Khmer OS Muol Light;font-size:30px;font-weight:400;max-width:560px;margin:35px 0 10px;line-height:1.6}.login-art p{font-size:16px;opacity:.75}.art-grid{display:flex;gap:10px;margin-top:50px}.art-grid span{width:55px;height:5px;background:#ffffff40}.art-grid span:first-child{background:#fff}.login-card{width:min(430px,82%);margin:auto}.login-card.compact{text-align:center}.login-card h2{font-size:27px;margin:8px 0}.eyebrow{color:var(--teal);letter-spacing:.08em;font-size:12px;font-weight:700;margin:0}.muted{color:var(--muted)}label{display:grid;gap:7px;font-size:13px;font-weight:600;margin-top:20px}input,select,textarea{border:1px solid var(--line);border-radius:var(--radius);padding:11px 12px;outline:none;background:var(--card);color:inherit}input:focus,select:focus{border-color:var(--teal);box-shadow:0 0 0 3px #0d948815}.form-row{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin:18px 0}.check{display:flex;grid-template-columns:auto 1fr;align-items:center;margin:0;font-weight:400}.check input{padding:0}.form-row a{color:var(--teal)}button{border:0;cursor:pointer;border-radius:var(--radius)}.primary{background:var(--teal);color:#fff;padding:11px 16px;font-weight:600}.primary:hover{background:var(--teal-dark)}.wide{width:100%;display:flex;justify-content:center;gap:15px}.login-card small{display:block;text-align:center;color:#94a3b8;margin-top:18px}.mobile-logo{display:none}.security-icon{margin:0 auto 22px;width:60px;height:60px;border-radius:50%;background:#ccfbf1;color:var(--teal);display:grid;place-items:center;font-size:32px}.otp{display:flex;gap:8px;margin:28px 0}.otp input{width:calc(16.6% - 7px);text-align:center;font-size:22px}.app{min-height:100vh;display:flex}aside{position:fixed;width:255px;height:100vh;background:#f8fafc;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:5;transition:.2s}.side-brand{height:70px;display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line)}.side-brand strong{display:block;color:var(--slate)}.side-brand small,.side-user small{color:var(--muted);font-size:10px}.side-brand button{margin-left:auto;background:#e2e8f0;width:24px;height:24px}.nav-section{padding:18px 16px 6px;font-size:9px;letter-spacing:.13em;color:#94a3b8;font-weight:700}.nav-item{margin:2px 10px;padding:10px 12px;display:flex;gap:12px;align-items:center;color:#475569;font-size:13px;border-radius:var(--radius);cursor:pointer}.nav-item:hover{background:#e2e8f0}.nav-item.active{background:var(--teal);color:#fff;box-shadow:0 3px 8px #0d948833}.nav-icon{font-size:17px;width:20px;text-align:center}.side-user{margin-top:auto;padding:14px;display:flex;align-items:center;gap:9px;border-top:1px solid var(--line)}.side-user strong{font-size:11px;display:block}.side-user button{margin-left:auto;background:none}.avatar{width:34px;height:34px;border-radius:50%;background:#ccfbf1;color:var(--teal-dark);display:grid;place-items:center;font-size:11px;font-weight:700}.amber{background:#f59e0b;color:#fff}main{margin-left:255px;width:calc(100% - 255px)}header{height:70px;background:var(--card);border-bottom:1px solid var(--line);padding:0 25px;display:flex;align-items:center;position:sticky;top:0;z-index:4}header h1{font-family:Moul,Khmer OS Muol Light;font-weight:400;font-size:16px;margin:3px 0}header p{font-size:10px;color:#94a3b8;margin:0}.header-actions{margin-left:auto;display:flex;align-items:center;gap:8px}.header-actions button{background:#f1f5f9;padding:8px 10px;color:#475569}.bell{position:relative}.bell i{position:absolute;width:6px;height:6px;background:#ef4444;border-radius:50%;right:5px;top:4px}#mobileMenu{display:none;background:none;font-size:20px;margin-right:10px}#content{padding:24px}.hero{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.hero h2{font-size:20px;margin:0 0 5px}.hero p{margin:0;color:var(--muted);font-size:12px}.actions{display:flex;gap:8px}.btn{padding:9px 13px;background:var(--card);border:1px solid var(--line);color:#475569;font-size:12px}.btn.teal{background:var(--teal);border-color:var(--teal);color:#fff}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:20px}.stat,.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 1px 2px #0f172a08}.stat{padding:18px;position:relative}.stat .sicon{position:absolute;right:17px;top:17px;width:35px;height:35px;border-radius:var(--radius);display:grid;place-items:center;background:#ccfbf1;color:var(--teal)}.stat small{color:var(--muted)}.stat strong{display:block;font-size:25px;margin:10px 0 2px;color:var(--slate)}.trend{font-size:10px;color:#16a34a}.grid-2{display:grid;grid-template-columns:1.5fr 1fr;gap:16px}.card-head{padding:15px 18px;border-bottom:1px solid var(--line);display:flex;align-items:center}.card-head h3{margin:0;font-size:14px}.card-head span,.card-head button{margin-left:auto;font-size:10px;color:var(--teal);background:none}.card-body{padding:17px}.chart{height:170px;display:flex;align-items:flex-end;gap:14px;border-bottom:1px solid var(--line);padding:10px 10px 0}.bar{flex:1;background:linear-gradient(#2dd4bf,#0d9488);border-radius:3px 3px 0 0;min-height:12px;position:relative}.bar:after{content:attr(data-day);position:absolute;bottom:-22px;width:100%;text-align:center;color:#94a3b8;font-size:9px}.schedule-row{display:grid;grid-template-columns:45px 1fr auto;gap:12px;padding:10px 0;border-bottom:1px solid #f1f5f9;align-items:center}.schedule-row:last-child{border:0}.time{font-size:10px;color:var(--teal);font-weight:700}.schedule-row strong{font-size:11px;display:block}.schedule-row small{color:var(--muted);font-size:9px}.badge{font-size:9px;padding:4px 7px;border-radius:999px;background:#dcfce7;color:#15803d}.table-card{background:var(--card);border:1px solid var(--line)}.table-tools{padding:13px;display:flex;gap:8px;border-bottom:1px solid var(--line)}.search{width:280px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px}th{text-align:left;background:#f8fafc;color:#64748b;font-size:10px;padding:11px 14px;border-bottom:1px solid var(--line)}td{padding:12px 14px;border-bottom:1px solid #f1f5f9}td strong{display:block}.name-cell{display:flex;align-items:center;gap:9px}.mini-avatar{width:30px;height:30px;border-radius:50%;background:#e0f2fe;color:#0369a1;display:grid;place-items:center;font-weight:700}.icon-btn{padding:5px 8px;background:#f1f5f9;margin-right:3px}.danger{color:#e11d48}.empty{text-align:center;color:var(--muted);padding:40px}.progress{height:6px;background:#e2e8f0;width:100px}.progress i{display:block;height:100%;background:var(--teal)}.settings-grid{display:grid;grid-template-columns:220px 1fr;gap:16px}.setting-nav .active{background:#ccfbf1;color:var(--teal-dark)}.setting-nav div{padding:11px;font-size:12px}.setting-form{padding:20px}.setting-form h3{margin-top:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:20px}.form-grid label{margin:0}.full{grid-column:1/-1}.modal{position:fixed;inset:0;background:#0f172a99;display:grid;place-items:center;z-index:20;padding:20px}.modal-card{background:var(--card);width:min(700px,100%);max-height:90vh;overflow:auto;border-radius:var(--radius)}.modal-head{padding:18px 20px;border-bottom:1px solid var(--line);display:flex}.modal-head h2{margin:3px 0 0}.modal-head button{margin-left:auto;background:none;font-size:24px}.form-grid button{grid-column:1/-1}.toast{position:fixed;right:24px;bottom:24px;background:#0f766e;color:#fff;padding:12px 18px;border-radius:var(--radius);transform:translateY(80px);opacity:0;transition:.2s;z-index:30}.toast.show{transform:none;opacity:1}.dark{--bg:#020617;--card:#0f172a;--line:#243244;color:#e2e8f0}.dark aside{background:#07101f}.dark .stat strong,.dark .side-brand strong{color:#fff}.dark input,.dark select{background:#07101f}.dark th{background:#111c2f}@media(max-width:900px){aside{transform:translate(-100%)}aside.open{transform:none}main{margin-left:0;width:100%}#mobileMenu{display:block}.stats{grid-template-columns:1fr 1fr}.grid-2,.login{grid-template-columns:1fr}.login-art{display:none}.mobile-logo{display:grid;width:44px;height:44px;place-items:center;background:var(--teal);color:#fff;font-weight:800}.settings-grid{grid-template-columns:1fr}.setting-nav{display:flex;overflow:auto}}@media(max-width:560px){#content{padding:15px}.stats{grid-template-columns:1fr}.hero{align-items:flex-start;gap:12px;flex-direction:column}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.search{width:100%}.header-actions .amber,.bell{display:none}}.reference-login{display:grid;place-items:center;min-height:100vh;background:radial-gradient(circle at 20% 10%,#dff7f4 0,transparent 28%),linear-gradient(135deg,#eef4f7,#dce9ed);padding:24px}.auth-shell{width:min(720px,100%);background:#fff;border:1px solid #ffffffcc;border-radius:18px;box-shadow:0 24px 65px -18px #0f172a55;padding:34px;display:grid;grid-template-columns:190px 1fr;gap:34px;align-items:center}.auth-logo{display:grid;place-items:center;text-align:center;color:#64748b;border-right:1px solid #e2e8f0;min-height:250px}.logo-seal{width:128px;height:128px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#0f766e,#115e59);color:#fff;font-family:Moul;font-size:25px;border:8px solid #ccfbf1;box-shadow:0 0 0 2px #0f766e,0 12px 25px #0f766e33}.auth-logo small{font-size:11px;letter-spacing:.08em}.reference-login .login-card{width:100%;margin:0}.auth-heading{text-align:center;margin-bottom:23px}.auth-heading h1{font-family:Moul,Khmer OS Muol Light;font-size:17px;line-height:1.8;font-weight:400;color:#1e293b;margin:0}.auth-heading p{font-size:9px;letter-spacing:.18em;color:#0d9488;font-weight:700}.input-group{display:flex;gap:0;margin:13px 0;border:1px solid #dbe3eb;border-radius:5px;overflow:hidden;align-items:center}.input-group>span{align-self:stretch;width:43px;display:grid;place-items:center;background:#f0f4f8;color:#64748b;border-right:1px solid #dbe3eb}.input-group input{border:0;box-shadow:none;flex:1;min-width:0}.input-group button{align-self:stretch;width:42px;background:#fbfcfd;border-left:1px solid #dbe3eb;color:#94a3b8}.remember{display:flex;grid-template-columns:auto 1fr;align-items:center;gap:8px;margin:14px 0;font-weight:400;color:#64748b;font-size:11px}.reference-login .primary{background:#087fdb}.reference-login .primary:hover{background:#066dbd}.auth-error{padding:9px 11px;color:#be123c;background:#fff1f2;border:1px solid #fecdd3;font-size:11px;margin:10px 0}.center{text-align:center;font-size:12px}.setup-panel{text-align:center;background:#f8fafc;border:1px solid #e2e8f0;padding:12px;margin-bottom:12px}.setup-panel p{font-size:10px;color:#64748b;margin:0 0 8px}.qr-code svg{width:145px;height:145px;background:#fff;padding:5px}.setup-panel code{display:block;font-size:10px;word-break:break-all;color:#0f766e;margin-top:6px}.auth-back{display:block;margin:14px auto 0;background:none;color:#64748b;font-size:11px}.reference-login .otp{margin:20px 0}.reference-login .otp input{height:46px;padding:4px}.dark .auth-shell{background:#0f172a;border-color:#1e293b}.dark .auth-heading h1{color:#f1f5f9}.dark .auth-logo{border-color:#334155}.dark .reference-login{background:#020617}@media(max-width:650px){.auth-shell{grid-template-columns:1fr;padding:25px}.auth-logo{border-right:0;border-bottom:1px solid #e2e8f0;min-height:auto;padding-bottom:20px}.logo-seal{width:88px;height:88px;font-size:18px}.auth-logo small{display:none}.auth-heading h1{font-size:14px}}.auth-prit-logo{display:block;width:145px;height:145px;object-fit:contain;margin:auto;filter:drop-shadow(0 10px 16px rgba(15,118,110,.16))}.reference-login{width:100%;min-height:100dvh;align-items:center;justify-items:center}.reference-login .auth-shell{margin:auto}.reference-login .login-card{align-self:center}@media(max-width:650px){.auth-prit-logo{width:100px;height:100px}}.login.reference-login{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(100dvh,auto);place-items:center!important;padding:24px!important}.login.reference-login>.auth-shell{grid-column:1;grid-row:1;justify-self:center;align-self:center}.twofa-shell{display:grid;grid-template-columns:minmax(190px,240px) minmax(0,1fr);align-items:center}.twofa-shell .auth-logo{display:grid;grid-template-rows:auto auto auto;align-content:center;justify-items:center;gap:12px;height:auto;min-height:350px;padding:18px 26px 18px 0}.twofa-shell .setup-panel{width:100%;margin:4px 0 0;padding:10px;background:#f8fafc}.twofa-shell .setup-panel p{font-size:9px;line-height:1.45}.twofa-shell .qr-code{display:grid;place-items:center}.twofa-shell .qr-code svg{display:block;width:135px;height:135px}.twofa-shell #secretKey{font-size:9px;line-height:1.35}@media(max-width:650px){.twofa-shell{grid-template-columns:1fr}.twofa-shell .auth-logo{border-right:0;border-bottom:1px solid #e2e8f0;min-height:auto;padding:0 0 18px}.twofa-shell .setup-panel{max-width:260px}}.reference-login .twofa-shell{width:min(800px,100%);grid-template-columns:250px minmax(0,1fr);gap:38px;padding:32px 38px}.twofa-shell .auth-heading{margin-bottom:16px}.twofa-shell .auth-heading h1{font-size:18px;line-height:1.75;text-wrap:balance}.twofa-shell .auth-heading p{margin:7px 0 0}.twofa-shell .login-card{max-width:430px;justify-self:center}.twofa-shell .center{line-height:1.7;margin:0 auto 14px}.twofa-shell .otp{display:grid;grid-template-columns:repeat(6,minmax(42px,1fr));gap:9px;margin:18px 0 22px}.twofa-shell .otp input{width:100%;height:52px;font-size:21px;font-weight:700;border-radius:5px}.twofa-shell #verifyButton{min-height:46px}.twofa-shell .auth-back{padding:8px 12px;margin-top:8px}@media(max-width:650px){.reference-login .twofa-shell{grid-template-columns:1fr;gap:22px;padding:24px 20px}.twofa-shell .login-card{max-width:100%}.twofa-shell .auth-heading h1{font-size:15px}.twofa-shell .otp{gap:6px;grid-template-columns:repeat(6,minmax(36px,1fr))}.twofa-shell .otp input{height:46px;font-size:18px}}body{font-family:Siemreap,Kantumruy Pro,Khmer OS Siemreap,sans-serif}.sidebar-logo{width:38px;height:38px;object-fit:contain;flex:0 0 auto}.side-brand{height:72px;background:#f1f5f980}.side-brand strong{font-size:16px;letter-spacing:.02em}.side-brand small{display:block;max-width:165px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nav-item{min-height:42px;line-height:1.45}.nav-item.active{background:#0d9488;box-shadow:0 2px 5px #0d948840}header{height:72px;background:#ffffffe0;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 1px 2px #0f172a0a}header h1{line-height:1.6}.dark{--bg:#020617;--card:#0f172a;--line:#263449;--muted:#94a3b8;color:#e2e8f0}.dark aside{background:#020b19;border-color:#263449}.dark .side-brand{background:#020617;border-color:#263449}.dark header{background:#0f172ae0;border-color:#263449}.dark .nav-item.active{color:#fff;background:#0d9488}.dark .side-user{border-color:#263449}.dark .table-card,.dark .card,.dark .stat{background:#0f172a;border-color:#263449}.dark th{background:#111c2f;color:#94a3b8}.dark td{border-color:#1e293b}.dark .header-actions button{background:#1e293b;color:#cbd5e1}.dark .header-actions button:hover{background:#334155}.dark .table-tools{border-color:#263449}.nav-icon{display:grid;place-items:center;width:20px;height:20px;flex:0 0 20px}.nav-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.nav-icon svg path[d*="M4 4h6"]{fill:currentColor;stroke:none}.nav-item.active .nav-icon svg{stroke-width:2}.report-card{overflow:hidden;position:relative}.report-card:before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:#0d9488}.report-card .report-top{display:flex;align-items:center;gap:12px}.report-card .report-icon{width:42px;height:42px;display:grid;place-items:center;background:#ccfbf1;color:#0f766e;border-radius:5px}.dark .report-card .report-icon{background:#134e4a;color:#5eead4}.report-card .report-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:15px}.report-card .report-meta{font-size:10px;color:#64748b;margin-top:5px}aside,main,.side-brand,.nav-item,.side-user{transition:width .22s ease,margin .22s ease,padding .22s ease,transform .22s ease}.sidebar-toggle{margin-left:auto;width:27px;height:27px;display:grid;place-items:center;background:#e2e8f0;color:#64748b;border:1px solid #cbd5e1}.sidebar-toggle svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.sidebar-toggle:hover{background:#cbd5e1;color:#0f172a}.dark .sidebar-toggle{background:#172033;border-color:#334155;color:#94a3b8}.sidebar-collapsed aside{width:76px}.sidebar-collapsed main{margin-left:76px;width:calc(100% - 76px)}.sidebar-collapsed .side-brand{padding:12px 10px;justify-content:center;gap:0}.sidebar-collapsed .sidebar-logo{width:40px;height:40px}.sidebar-collapsed .brand-copy{display:none}.sidebar-collapsed .sidebar-toggle{position:absolute;left:62px;top:23px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 2px 8px #0f172a22}.dark .sidebar-collapsed .sidebar-toggle{background:#1e293b}.sidebar-collapsed .sidebar-toggle svg{transform:rotate(180deg)}.sidebar-collapsed .nav-section{height:12px;padding:8px 0 2px;font-size:0;text-align:center}.sidebar-collapsed .nav-section:after{content:"";display:inline-block;width:20px;border-top:1px solid #cbd5e1}.dark .sidebar-collapsed .nav-section:after{border-color:#334155}.sidebar-collapsed .nav-item{justify-content:center;margin:4px 11px;padding:11px 0}.sidebar-collapsed .nav-item>span:last-child{display:none}.sidebar-collapsed .nav-icon{width:22px;height:22px;flex-basis:22px}.sidebar-collapsed .nav-icon svg{width:21px;height:21px}.sidebar-collapsed .side-user{justify-content:center;padding:14px 8px}.sidebar-collapsed .side-user>div:not(.avatar),.sidebar-collapsed .side-user>button{display:none}@media(max-width:900px){.sidebar-toggle{display:none}.sidebar-collapsed aside{width:255px}.sidebar-collapsed main{margin-left:0;width:100%}.sidebar-collapsed .brand-copy{display:block}.sidebar-collapsed .side-brand{padding:12px 16px;justify-content:flex-start;gap:12px}.sidebar-collapsed .nav-section{height:auto;padding:18px 16px 6px;font-size:9px;text-align:left}.sidebar-collapsed .nav-section:after{display:none}.sidebar-collapsed .nav-item{justify-content:flex-start;margin:2px 10px;padding:10px 12px}.sidebar-collapsed .nav-item>span:last-child{display:inline}.sidebar-collapsed .side-user{justify-content:flex-start;padding:14px}.sidebar-collapsed .side-user>div:not(.avatar),.sidebar-collapsed .side-user>button{display:block}}header{padding:0 28px;gap:18px}.header-title{display:flex;align-items:center;min-width:0}.header-title h1{font-family:Moul,Khmer OS Muol Light,serif;font-size:16px;color:#1e293b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dark .header-title h1{color:#f1f5f9}.header-actions{display:flex;align-items:center;gap:9px}.date-chip{height:36px;display:flex;align-items:center;padding:0 13px;border:1px solid #e2e8f0;border-radius:5px;background:#f8fafc;color:#64748b;font-size:10px;white-space:nowrap}.header-icon,.language-switch{height:36px;border:1px solid #e2e8f0!important;background:#f8fafc!important;color:#475569!important}.header-icon{width:38px;padding:0!important;display:grid;place-items:center}.header-icon svg,.language-switch svg,.profile-trigger .chevron,.profile-menu button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.header-icon.is-dark svg{transform:rotate(25deg)}.language-switch{display:flex;align-items:center;gap:7px;padding:0 11px!important;font-family:Siemreap;font-weight:600}.profile-wrap{position:relative}.profile-trigger{height:48px;display:flex;align-items:center;gap:9px;background:transparent;padding:5px 7px;border:1px solid transparent}.profile-trigger:hover,.profile-trigger.open{background:#f8fafc;border-color:#e2e8f0}.profile-copy{display:flex;flex-direction:column;text-align:left;min-width:105px}.profile-copy strong{font-size:11px;color:#1e293b;line-height:1.35}.profile-copy small{font-size:9px;color:#94a3b8}.profile-trigger .chevron{width:13px;height:13px;color:#94a3b8;transition:transform .15s}.profile-trigger.open .chevron{transform:rotate(180deg)}.profile-menu{position:absolute;right:0;top:54px;width:255px;background:#fff;border:1px solid #e2e8f0;border-radius:5px;box-shadow:0 18px 38px #0f172a26;overflow:hidden;z-index:30}.profile-menu-head{display:flex;align-items:center;gap:11px;padding:16px;background:#f8fafc;border-bottom:1px solid #e2e8f0}.profile-menu-head strong{display:block;font-size:12px}.profile-menu-head small{display:block;color:#64748b;font-size:10px;margin-top:2px}.profile-menu>button{width:calc(100% - 12px);margin:6px;padding:9px 10px;display:flex;align-items:center;gap:9px;text-align:left;background:transparent;color:#e11d48;font-size:11px}.profile-menu>button:hover{background:#e11d48;color:#fff}.dark .date-chip,.dark .header-icon,.dark .language-switch{background:#1e293b!important;border-color:#334155!important;color:#cbd5e1!important}.dark .profile-trigger:hover,.dark .profile-trigger.open{background:#1e293b;border-color:#334155}.dark .profile-copy strong{color:#f1f5f9}.dark .profile-menu{background:#0f172a;border-color:#334155}.dark .profile-menu-head{background:#111c2f;border-color:#334155}.dark .profile-menu-head strong{color:#f1f5f9}.dark .profile-menu-head small{color:#94a3b8}@media(max-width:1050px){.date-chip,.profile-copy{display:none}.profile-trigger{height:42px}.profile-trigger .chevron{display:none}}@media(max-width:620px){header{padding:0 14px}.language-switch span{display:none}.language-switch{width:38px;padding:0!important;justify-content:center}.header-title h1{font-size:13px}.header-actions{gap:5px}}#nav{padding:14px 10px;overflow-y:auto;flex:1}.nav-item{margin:2px 0;padding:9px 11px;min-height:40px;border-radius:5px;font-size:12px;font-weight:500;color:#64748b}.nav-item:hover{background:#e2e8f080;color:#334155}.nav-item.active{background:#0d9488;color:#fff;font-weight:600;box-shadow:0 3px 8px #0d948833}.nav-item.active .nav-icon{color:#fff}.nav-icon{color:#94a3b8}.nav-item:hover .nav-icon{color:#475569}.sidebar-footer{margin-top:auto;min-height:70px;padding:14px 16px;display:flex;align-items:center;justify-content:center;border-top:1px solid #e2e8f0;background:#f1f5f9;color:#94a3b8;text-align:center;font-family:Siemreap;font-size:9px;line-height:1.65}.dark .sidebar-footer{background:#020617;border-color:#263449;color:#64748b}.dark .nav-item{color:#94a3b8}.dark .nav-item:hover{background:#172033;color:#f8fafc}.dark .nav-item.active{background:#0d9488;color:#fff}.sidebar-collapsed #nav{padding:14px 10px}.sidebar-collapsed .sidebar-footer{min-height:70px;padding:10px 5px}.sidebar-collapsed .sidebar-footer span{display:none}.sidebar-collapsed .sidebar-footer:after{content:"DCS - RPITSSR";font-size:8px;writing-mode:vertical-rl;letter-spacing:.08em}@media(max-width:900px){#nav,.sidebar-collapsed #nav{padding:14px 10px}.sidebar-collapsed .sidebar-footer span{display:inline}.sidebar-collapsed .sidebar-footer:after{display:none}}.side-brand{position:relative;overflow:visible}.sidebar-toggle{position:absolute!important;right:-13px!important;left:auto!important;top:22px!important;margin:0!important;z-index:50;width:27px;height:27px;border-radius:50%!important;background:#fff!important;box-shadow:0 2px 8px #0f172a2e}.sidebar-toggle:hover{transform:scale(1.05)}.dark .sidebar-toggle{background:#1e293b!important}.sidebar-collapsed .sidebar-toggle{position:absolute;right:-12px!important;left:auto!important;top:23px!important}.sidebar-collapsed .side-brand{overflow:visible}@media(max-width:900px){.sidebar-toggle{display:none!important}}.sidebar-toggle{display:grid!important;place-items:center!important;padding:0!important;line-height:0!important;text-align:center!important}.sidebar-toggle svg{display:block!important;width:15px!important;height:15px!important;margin:0!important;position:static!important;transform-origin:50% 50%!important;overflow:visible}.sidebar-toggle svg path{vector-effect:non-scaling-stroke}.sidebar-collapsed .sidebar-toggle svg{transform:rotate(180deg)!important}.modal{background:#02061794;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);padding:20px}.modal-card{width:min(720px,100%);border:1px solid #e2e8f0;border-radius:5px;box-shadow:0 25px 70px #0f172a47;overflow:hidden}.modal-head{min-height:72px;padding:16px 20px;background:#f8fafc;align-items:center}.modal-head .eyebrow{font-size:9px;letter-spacing:.14em}.modal-head h2{font-family:Moul,Khmer OS Muol Light,serif;font-size:15px;color:#1e293b;line-height:1.6}.modal-head>button{width:32px;height:32px;display:grid;place-items:center;padding:0;color:#64748b;border:1px solid #e2e8f0;background:#fff;font-size:20px}.modal-head>button:hover{background:#fee2e2;color:#e11d48;border-color:#fecdd3}.modal-form,.form-grid{padding:0;display:block}.modal-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px;padding:20px}.modal-fields label{margin:0;display:grid;gap:6px}.modal-fields label>span{font-size:11px;color:#475569;font-weight:600}.modal-fields input,.modal-fields select{height:40px;padding:8px 11px;font-size:12px;background:#fff}.modal-actions{display:flex;justify-content:flex-end;gap:8px;padding:13px 20px;background:#f8fafc;border-top:1px solid #e2e8f0}.modal-actions button{min-width:95px;height:38px;padding:8px 15px}.modal-actions .primary{grid-column:auto}.dark .modal-card{background:#0f172a;border-color:#334155}.dark .modal-head,.dark .modal-actions{background:#111c2f;border-color:#334155}.dark .modal-head h2{color:#f1f5f9}.dark .modal-head>button{background:#1e293b;border-color:#334155;color:#94a3b8}.dark .modal-fields label>span{color:#cbd5e1}.dark .modal-fields input,.dark .modal-fields select{background:#07101f;border-color:#334155}@media(max-width:620px){.modal{padding:10px}.modal-fields{grid-template-columns:1fr;padding:16px}.modal-actions{padding:12px 16px}.modal-actions button{flex:1}}.report-catalog{display:grid;grid-template-columns:1fr 1fr;gap:34px 30px;background:var(--card);border:1px solid var(--line);padding:24px 20px 30px}.report-section-wide{grid-column:1/-1}.report-section h3{margin:0 0 12px;padding:0 10px;font-family:Moul,Khmer OS Muol Light,serif;font-size:14px;font-weight:400;color:#475569;line-height:1.7}.report-list{display:grid;gap:6px}.report-list-two{grid-template-columns:1fr 1fr;gap:6px 30px}.report-list-item{width:100%;min-height:92px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 20px;text-align:left;background:#fff;border:1px solid #dbe1e8;border-radius:0;color:#111827;transition:border-color .15s,background .15s,box-shadow .15s}.report-list-item:hover{border-color:#94a3b8;background:#f8fafc;box-shadow:0 2px 5px #0f172a0f}.report-list-copy{display:flex;min-width:0;flex-direction:column}.report-list-copy strong{font-family:Siemreap,Khmer OS Siemreap,sans-serif;font-size:16px;font-weight:500;line-height:1.55;color:#1f2937}.report-list-copy small{margin-top:2px;color:#94a3b8;font-size:11px;line-height:1.45}.report-list-copy em{margin-top:4px;color:#0d9488;font-size:9px;font-style:normal}.report-open-icon{width:26px;height:26px;display:grid;place-items:center;flex:0 0 26px;color:#111827}.report-open-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.dark .report-catalog{background:#0f172a}.dark .report-section h3{color:#cbd5e1}.dark .report-list-item{background:#0f172a;border-color:#334155;color:#e2e8f0}.dark .report-list-item:hover{background:#172033;border-color:#64748b}.dark .report-list-copy strong,.dark .report-open-icon{color:#f1f5f9}.dark .report-list-copy small{color:#64748b}@media(max-width:1000px){.report-catalog{grid-template-columns:1fr}.report-section-wide{grid-column:auto}.report-list-two{grid-template-columns:1fr}}@media(max-width:600px){.report-catalog{padding:18px 12px;gap:26px}.report-list-item{min-height:82px;padding:13px 14px}.report-list-copy strong{font-size:14px}}.profile-menu .profile-link{color:#475569}.profile-menu .profile-link:hover{background:#f1f5f9;color:#0d9488}.profile-menu-divider{height:1px;background:#e2e8f0;margin:2px 8px}.dark .profile-menu .profile-link{color:#cbd5e1}.dark .profile-menu .profile-link:hover{background:#1e293b;color:#5eead4}.dark .profile-menu-divider{background:#334155}.profile-trigger .avatar img,.profile-menu-head .avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.profile-grid{display:grid;grid-template-columns:260px minmax(0,1fr);gap:18px;align-items:start}.profile-summary{padding:26px 20px;text-align:center;position:sticky;top:94px}.profile-photo-wrap{display:flex;flex-direction:column;align-items:center}.profile-photo{width:104px;height:104px;border-radius:50%;display:grid;place-items:center;background:#ccfbf1;color:#0f766e;border:4px solid #fff;box-shadow:0 0 0 1px #cbd5e1,0 8px 20px #0f172a1f;overflow:hidden;font-size:27px;font-weight:700}.profile-photo img{width:100%;height:100%;object-fit:cover}.photo-button{display:inline-flex;margin:14px 0 0;padding:7px 12px;background:#f1f5f9;color:#0f766e;border:1px solid #e2e8f0;border-radius:5px;font-size:10px;cursor:pointer}.photo-button:hover{background:#ccfbf1}.profile-summary h2{font-family:Moul,Khmer OS Muol Light,serif;font-size:15px;font-weight:400;line-height:1.6;margin:17px 0 4px}.profile-summary>p{font-size:11px;color:#64748b;margin:0}.role-pill{display:inline-flex;margin-top:12px;padding:4px 9px;border-radius:999px;background:#ccfbf1;color:#0f766e;font-size:9px;font-weight:700}.profile-summary>small{display:block;margin-top:18px;color:#94a3b8;font-size:9px;line-height:1.6}.profile-panels{display:grid;gap:16px}.profile-panel{overflow:hidden}.profile-panel-head{display:flex;align-items:center;gap:12px;padding:17px 20px;background:#f8fafc;border-bottom:1px solid #e2e8f0}.panel-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:5px;background:#ccfbf1;color:#0f766e;flex:0 0 36px}.panel-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.panel-icon.security{background:#dbeafe;color:#1d4ed8}.profile-panel-head h3{font-size:13px;margin:0;color:#1e293b}.profile-panel-head p{font-size:10px;color:#64748b;margin:3px 0 0}.profile-form{display:grid;grid-template-columns:1fr 1fr;gap:15px;padding:20px}.profile-form label{margin:0}.profile-form label>span{font-size:11px;color:#475569}.profile-form input{height:41px}.profile-form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;padding-top:4px}.profile-form-actions button{min-width:125px}.security-status{margin-left:auto;padding:4px 9px;border-radius:999px;background:#dcfce7;color:#15803d;font-size:9px;font-weight:700}.security-action{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px}.security-action strong{display:block;font-size:12px}.security-action small{display:block;color:#64748b;font-size:10px;margin-top:3px}.danger-outline{color:#e11d48!important;border-color:#fecdd3!important;background:#fff1f2!important}.danger-outline:hover{color:#fff!important;background:#e11d48!important}.dark .profile-photo{border-color:#0f172a;box-shadow:0 0 0 1px #334155}.dark .photo-button{background:#1e293b;border-color:#334155;color:#5eead4}.dark .profile-panel-head{background:#111c2f;border-color:#334155}.dark .profile-panel-head h3,.dark .profile-summary h2,.dark .security-action strong{color:#f1f5f9}.dark .profile-panel-head p,.dark .security-action small,.dark .profile-summary>p{color:#94a3b8}.dark .profile-form label>span{color:#cbd5e1}.dark .danger-outline{background:#4c0519!important;border-color:#881337!important;color:#fda4af!important}@media(max-width:900px){.profile-grid{grid-template-columns:1fr}.profile-summary{position:static}.profile-form{grid-template-columns:1fr}.profile-form-actions{grid-column:auto}}@media(max-width:560px){.profile-panel-head,.security-action{align-items:flex-start;padding:15px}.security-action{flex-direction:column}.security-action button{width:100%}.security-status{display:none}}.table-card table{border-collapse:collapse!important;border-spacing:0;width:100%;border:1px solid #cbd5e1}.table-card thead,.table-card tbody{border:0}.table-card th,.table-card td{border:1px solid #cbd5e1!important}.table-card th{background:#f1f5f9!important;color:#475569!important;font-weight:700;vertical-align:middle}.table-card td{background:#fff;vertical-align:middle}.table-card tbody tr:hover td{background:#f8fafc}.table-wrap{padding:0;overflow:auto}.dark .table-card table,.dark .table-card th,.dark .table-card td{border-color:#334155!important}.dark .table-card th{background:#1e293b!important;color:#cbd5e1!important}.dark .table-card td{background:#0f172a}.dark .table-card tbody tr:hover td{background:#172033}.profile-summary{position:static!important;top:auto!important;align-self:start}.profile-all-form{display:grid;gap:16px}.profile-savebar{display:flex;justify-content:flex-end;padding:14px 20px;background:#f8fafc;border:1px solid #e2e8f0}.profile-savebar .primary{min-width:145px}.password-fields{padding-bottom:20px}.dark .profile-savebar{background:#111c2f;border-color:#334155}@media(max-width:560px){.profile-savebar{padding:12px 15px}.profile-savebar .primary{width:100%}}.profile-summary{position:sticky!important;inset:94px auto auto!important;width:auto!important;height:auto!important;max-height:calc(100vh - 118px);overflow:auto;z-index:1;align-self:start;display:block!important;transform:none!important}.profile-summary::-webkit-scrollbar{width:4px}.profile-summary::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px}.dark .profile-summary::-webkit-scrollbar-thumb{background:#475569}@media(max-width:900px){.profile-summary{position:static!important;top:auto!important;max-height:none;overflow:visible}}html,body{overflow-x:hidden}main,#content,.profile-grid,.profile-panels,.profile-all-form,.profile-panel{min-width:0}.profile-grid{width:100%;grid-template-columns:260px minmax(0,1fr)}.profile-summary{width:260px!important;max-width:260px;box-sizing:border-box}.sidebar-collapsed .profile-grid{grid-template-columns:260px minmax(0,1fr)}.sidebar-collapsed .profile-summary{width:260px!important;max-width:260px}.sidebar-collapsed main{min-width:0;overflow:visible}.sidebar-collapsed #content{width:100%;overflow:visible}@media(max-width:1050px){.profile-grid,.sidebar-collapsed .profile-grid{grid-template-columns:230px minmax(0,1fr)}.profile-summary,.sidebar-collapsed .profile-summary{width:230px!important;max-width:230px}}@media(max-width:900px){.profile-grid,.sidebar-collapsed .profile-grid{grid-template-columns:minmax(0,1fr)}.profile-summary,.sidebar-collapsed .profile-summary{width:100%!important;max-width:none}}.actions{flex-wrap:wrap;justify-content:flex-end}.action-btn{height:38px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 16px;background:#fff;font-weight:600;box-shadow:0 1px 3px #0f172a14;white-space:nowrap}.action-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.action-btn.template{color:#2563eb}.action-btn.import{color:#16a34a}.action-btn.export{color:#475569}.action-btn.add{background:#2563eb;border-color:#2563eb;color:#fff;min-width:130px}.action-btn.add:hover{background:#1d4ed8}.action-btn b{font-size:18px;line-height:1}.dark .action-btn:not(.add){background:#111c2f;border-color:#334155}.dark .action-btn.export{color:#cbd5e1}@media(max-width:760px){.hero{align-items:flex-start;gap:14px;flex-direction:column}.hero .actions{width:100%;justify-content:flex-start}.action-btn{padding:0 11px}.action-btn span{font-size:10px}}.import-modal .modal-card{width:min(880px,96vw)}.import-modal #modalForm{display:block;padding:0}.import-modal-body{padding:20px}.import-drop{margin:0;min-height:190px;border:2px dashed #cbd5e1;border-radius:8px;background:#f8fafc;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;cursor:pointer;transition:.18s}.import-drop:hover,.import-drop.dragging{border-color:#0d9488;background:#f0fdfa}.import-file-icon{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#ccfbf1;color:#0d9488}.import-file-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8}.import-drop strong{font-size:14px;color:#1e293b}.import-drop small{font-size:11px;color:#64748b}.import-drop .btn{margin-top:5px;color:#0d9488}.selected-file{margin-top:15px;padding:12px 14px;border:1px solid #e2e8f0;border-radius:6px;display:flex;align-items:center;gap:11px;background:#fff}.selected-file>span{width:35px;height:35px;border-radius:5px;background:#dcfce7;color:#16a34a;display:grid;place-items:center}.selected-file svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}.selected-file div{flex:1}.selected-file strong,.selected-file small{display:block}.selected-file strong{font-size:12px}.selected-file small{font-size:10px;color:#64748b;margin-top:2px}.selected-file i{font-style:normal;color:#16a34a;font-weight:700}.import-summary{margin-top:14px;display:flex;align-items:center;gap:10px;padding:11px 13px;border:1px solid #bbf7d0;background:#f0fdf4;border-radius:6px}.import-ok{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#22c55e;color:#fff}.import-summary strong,.import-summary small{display:block}.import-summary strong{font-size:12px;color:#166534}.import-summary small{font-size:10px;color:#4d7c5b;margin-top:2px}.import-preview{margin-top:12px;max-height:250px;overflow:auto;border:1px solid #cbd5e1}.import-preview table{font-size:10px;white-space:nowrap}.import-preview th,.import-preview td{border:1px solid #cbd5e1;padding:7px 9px}.preview-more{display:block;text-align:right;color:#64748b;margin-top:7px}.import-loading,.import-error{margin-top:13px;padding:12px;text-align:center;border-radius:5px}.import-loading{background:#f1f5f9;color:#64748b}.import-error{background:#fff1f2;color:#be123c}.import-modal .modal-actions{padding:14px 20px;border-top:1px solid #e2e8f0;background:#f8fafc}.import-modal .modal-actions .primary:disabled{opacity:.5;cursor:not-allowed}.dark .import-drop{background:#111c2f;border-color:#475569}.dark .import-drop strong{color:#f1f5f9}.dark .selected-file,.dark .import-modal .modal-actions{background:#111c2f;border-color:#334155}.dark .import-preview{border-color:#475569}.backup-panel{margin-top:18px;overflow:hidden}.backup-head{display:flex;align-items:center;gap:12px;padding:17px 20px;border-bottom:1px solid #e2e8f0;background:#f8fafc}.backup-head h3{margin:0;font-size:14px}.backup-head p{margin:3px 0 0;color:#64748b;font-size:10px}.backup-toolbar{margin-left:auto;display:flex;gap:8px}.backup-toolbar .btn{height:38px;display:inline-flex;align-items:center;gap:7px;font-weight:600}.backup-toolbar svg,.backup-actions svg,.backup-name svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.backup-import{color:#16a34a}.backup-export{background:#0d9488!important;color:#fff!important}.backup-panel>.table-card{border:0;box-shadow:none}.backup-name{display:flex;align-items:center;gap:10px}.backup-name>span{width:34px;height:34px;border-radius:5px;background:#e0f2fe;color:#0369a1;display:grid;place-items:center}.backup-name strong,.backup-name small{display:block}.backup-name small{margin-top:2px;color:#64748b;font-size:9px}.backup-actions{display:flex;align-items:center;gap:6px}.backup-actions .icon-btn{display:grid;place-items:center;color:#2563eb}.restore-btn{padding:6px 10px;color:#0d9488;border-color:#99f6e4}.restore-btn:hover{background:#0d9488;color:#fff}.dark .backup-head{background:#111c2f;border-color:#334155}.dark .backup-head h3{color:#f1f5f9}@media(max-width:720px){.backup-head{align-items:flex-start;flex-wrap:wrap}.backup-toolbar{width:100%;margin-left:48px}.backup-toolbar .btn{flex:1;justify-content:center}}.setting-form{padding:0!important;overflow:hidden}.setting-form>.form-grid{padding:20px}.settings-config-head{margin:0}.settings-config-head h3,.backup-head h3{font-family:Kantumruy Pro,Khmer OS Siemreap,sans-serif;font-size:14px;font-weight:700;line-height:1.4}.settings-config-head p,.backup-head p{font-size:10px;line-height:1.5}.weekly-modal .modal-card{width:min(1180px,97vw);max-height:94vh}.weekly-modal #modalForm{display:block;padding:0}.weekly-schedule-body{padding:20px}.weekly-main-fields{display:grid;grid-template-columns:2fr 1fr .7fr;gap:14px}.weekly-main-fields label{margin:0}.weekly-presets{display:flex;gap:8px;margin:17px 0 12px}.weekly-presets .btn{color:#0d9488;font-weight:600}.weekly-editor{border:1px solid #cbd5e1;max-height:330px}.weekly-editor th,.weekly-editor td{border:1px solid #cbd5e1;padding:5px}.weekly-editor th{text-align:center}.weekly-editor select,.weekly-editor input{width:100%;height:38px;padding:7px 8px;border:0;border-radius:0;box-shadow:none}.weekly-editor td:nth-child(1){min-width:125px}.weekly-editor td:nth-child(2){min-width:180px}.weekly-editor td:nth-child(3){min-width:130px}.weekly-editor td:nth-child(4){min-width:105px}.weekly-editor td:nth-child(5),.weekly-editor td:nth-child(6){min-width:120px}.remove-weekly-row{width:30px;height:30px;border-radius:50%;background:#fff1f2;color:#e11d48;font-size:19px}.remove-weekly-row:hover{background:#e11d48;color:#fff}.weekly-preview-head{display:flex;align-items:center;margin:22px 0 10px}.weekly-preview-head h3{margin:0;font-size:14px}.weekly-preview-head p{margin:3px 0 0;color:#64748b;font-size:10px}.weekly-preview-head>span{margin-left:auto;padding:5px 10px;border-radius:999px;background:#ccfbf1;color:#0f766e;font-size:10px;font-weight:700}.weekly-preview>.table-card{box-shadow:none}.weekly-preview th,.weekly-preview td{border:1px solid #cbd5e1}.weekly-modal .modal-actions{padding:14px 20px;border-top:1px solid #e2e8f0;background:#f8fafc}.teacher-report-item{display:flex;align-items:center;text-align:left}.teacher-report-item .mini-avatar{flex:0 0 34px}.dark .weekly-editor,.dark .weekly-editor th,.dark .weekly-editor td,.dark .weekly-preview th,.dark .weekly-preview td{border-color:#475569}.dark .weekly-modal .modal-actions{background:#111c2f;border-color:#334155}@media(max-width:760px){.weekly-main-fields{grid-template-columns:1fr}.weekly-presets{flex-wrap:wrap}.weekly-presets .btn{flex:1}.weekly-schedule-body{padding:14px}}.settings-tabs{display:flex;gap:5px;margin-bottom:16px;padding:5px;background:#e9eef4;border:1px solid #d8e0ea;border-radius:7px;width:max-content}.settings-tabs button{min-width:135px;padding:9px 14px;display:flex;align-items:center;justify-content:center;gap:8px;background:transparent;color:#64748b;font-size:11px;font-weight:700}.settings-tabs button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.settings-tabs button.active{background:#fff;color:#0d9488;box-shadow:0 1px 4px #0f172a18}.settings-tab-panel{display:none}.settings-tab-panel.active{display:block}.catalog-grid{display:grid;gap:18px}.catalog-card{overflow:hidden}.catalog-head{padding:16px 18px;display:flex;align-items:center;border-bottom:1px solid #e2e8f0;background:#f8fafc}.catalog-head h3{font-size:14px;margin:0}.catalog-head p{font-size:10px;color:#64748b;margin:3px 0 0}.catalog-head .btn{margin-left:auto}.catalog-card>.table-card{border:0;box-shadow:none}.catalog-card td small{display:block;color:#64748b;font-size:9px;margin-top:2px}.dark .settings-tabs{background:#07101f;border-color:#334155}.dark .settings-tabs button.active{background:#1e293b;color:#5eead4}.dark .catalog-head{background:#111c2f;border-color:#334155}.dark .catalog-head h3{color:#f1f5f9}@media(max-width:620px){.settings-tabs{width:100%}.settings-tabs button{min-width:0;flex:1;padding:9px 7px}.settings-tabs button span{font-size:9px}.catalog-head{align-items:flex-start}.catalog-head .btn{white-space:nowrap}}.nav-group{position:relative}.nav-group>.nav-item{position:relative}.submenu-chevron{width:14px;height:14px;margin-left:auto;fill:none;stroke:currentColor;stroke-width:1.8;transition:transform .18s}.nav-group.open .submenu-chevron{transform:rotate(180deg)}.sidebar-submenu{display:none;margin:2px 11px 7px 31px;padding-left:14px;border-left:1px solid #cbd5e1}.nav-group.open .sidebar-submenu{display:grid;gap:2px}.sidebar-subitem{position:relative;min-height:34px;padding:7px 10px;text-align:left;background:transparent;color:#64748b;border-radius:4px;font-size:10px;display:flex;align-items:center;gap:8px}.sidebar-subitem>span{position:absolute;left:-18px;width:8px;height:1px;background:#cbd5e1}.sidebar-subitem em{font-style:normal}.sidebar-subitem:hover{color:#0d9488;background:#f1f5f9}.sidebar-subitem.active{color:#0d9488;background:#ccfbf1;font-weight:700}.dark .sidebar-submenu{border-color:#334155}.dark .sidebar-subitem>span{background:#334155}.dark .sidebar-subitem:hover{background:#111c2f}.dark .sidebar-subitem.active{background:#134e4a;color:#99f6e4}.sidebar-collapsed .submenu-chevron,.sidebar-collapsed .sidebar-submenu{display:none!important}@media(max-width:760px){.sidebar-submenu{margin-left:28px}}@keyframes skeleton-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.skeleton-line,.skeleton-avatar,.skeleton-stat>i,.skeleton-chart i{display:block;background:linear-gradient(90deg,#e8edf3 25%,#f8fafc 42%,#e8edf3 60%);background-size:300% 100%;animation:skeleton-shimmer 1.45s ease-in-out infinite;border-radius:4px}.skeleton-card{background:#fff;border:1px solid #e2e8f0;border-radius:5px;overflow:hidden}.skeleton-heading{min-height:48px;margin-bottom:20px;display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.skeleton-heading>div:first-child{display:grid;gap:9px}.skeleton-actions{display:flex;gap:8px}.skeleton-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:20px}.skeleton-stat{height:135px;padding:20px;display:grid;align-content:start;gap:14px;position:relative}.skeleton-stat>i{position:absolute;right:18px;top:18px;width:36px;height:36px}.skeleton-chart{height:280px;padding:20px}.skeleton-chart>div{height:205px;margin-top:25px;display:flex;align-items:flex-end;gap:14px;border-bottom:1px solid #e2e8f0}.skeleton-chart i{flex:1;border-radius:4px 4px 0 0}.skeleton-table-head,.skeleton-table-row{display:grid;grid-template-columns:repeat(var(--skeleton-cols,6),1fr);align-items:center;gap:20px;padding:13px 16px;border-bottom:1px solid #e2e8f0}.skeleton-table-head{height:43px;background:#f8fafc}.skeleton-table-row{height:57px}.skeleton-table-head:has(>:nth-child(7)),.skeleton-table-row:has(>:nth-child(7)){grid-template-columns:repeat(7,1fr)}.skeleton-profile{display:grid;grid-template-columns:260px minmax(0,1fr);gap:18px}.skeleton-profile-side{height:430px;padding:30px 20px;display:flex;flex-direction:column;align-items:center;gap:18px}.skeleton-avatar{width:108px;height:108px;border-radius:50%}.skeleton-profile-main{display:grid;gap:16px}.skeleton-form-panel{height:190px}.skeleton-form-panel header{height:70px;padding:18px 20px;display:grid;gap:8px;background:#f8fafc;border-bottom:1px solid #e2e8f0}.skeleton-form-panel>div{padding:22px;display:flex;gap:18px;flex-wrap:wrap}.skeleton-settings{min-height:300px;padding:22px;display:grid;align-content:start;gap:10px}.skeleton-settings>div{display:flex;gap:18px;flex-wrap:wrap;margin-top:20px}.skeleton-report-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.skeleton-report-item{height:105px;padding:20px;display:grid;align-content:center;gap:10px}.dark .skeleton-card{background:#0f172a;border-color:#334155}.dark .skeleton-line,.dark .skeleton-avatar,.dark .skeleton-stat>i,.dark .skeleton-chart i{background:linear-gradient(90deg,#1e293b 25%,#334155 42%,#1e293b 60%);background-size:300% 100%}.dark .skeleton-table-head,.dark .skeleton-form-panel header{background:#111c2f;border-color:#334155}.dark .skeleton-table-row,.dark .skeleton-chart>div{border-color:#334155}@media(max-width:950px){.skeleton-stats{grid-template-columns:1fr 1fr}.skeleton-profile{grid-template-columns:220px 1fr}}@media(max-width:700px){.skeleton-heading{display:block}.skeleton-actions{margin-top:14px}.skeleton-stats,.skeleton-profile,.skeleton-report-grid{grid-template-columns:1fr}.skeleton-profile-side{height:280px}.skeleton-table{overflow:hidden}.skeleton-table-head,.skeleton-table-row{min-width:720px}}@media(prefers-reduced-motion:reduce){.skeleton-line,.skeleton-avatar,.skeleton-stat>i,.skeleton-chart i{animation:none}}@media(min-width:901px){.sidebar-collapsed aside,.sidebar-collapsed #nav{overflow:visible}.sidebar-collapsed .settings-nav-group{position:relative}.sidebar-collapsed .settings-nav-group .sidebar-submenu{display:none!important;position:absolute;left:58px;top:0;width:205px;margin:0;padding:8px;background:#fff;border:1px solid #e2e8f0;border-left:1px solid #e2e8f0;border-radius:5px;box-shadow:0 14px 32px #0f172a2e;z-index:80}.sidebar-collapsed .settings-nav-group:hover .sidebar-submenu,.sidebar-collapsed .settings-nav-group.flyout-open .sidebar-submenu{display:grid!important;gap:3px}.sidebar-collapsed .sidebar-subitem{min-height:38px;padding:8px 12px;font-size:11px}.sidebar-collapsed .sidebar-subitem>span{display:none}.sidebar-collapsed .sidebar-subitem em{display:block!important;white-space:nowrap}.dark.sidebar-collapsed .settings-nav-group .sidebar-submenu,.dark .sidebar-collapsed .settings-nav-group .sidebar-submenu{background:#0f172a;border-color:#334155}.sidebar-collapsed .settings-nav-group:after{content:"Settings";display:none;position:absolute;left:66px;top:-30px;padding:5px 9px;border-radius:4px;background:#0f172a;color:#fff;font-size:10px;white-space:nowrap;z-index:81}.sidebar-collapsed .settings-nav-group:hover:after{display:block}}.sidebar-collapsed .nav-item>.nav-icon+span{display:none!important}.sidebar-collapsed #nav{max-width:76px}.sidebar-collapsed .settings-nav-group{max-width:56px}.sidebar-collapsed .settings-nav-group .nav-item{width:54px;overflow:hidden}@media(max-width:900px){.sidebar-collapsed #nav,.sidebar-collapsed .settings-nav-group{max-width:none}.sidebar-collapsed .settings-nav-group .nav-item{width:auto;overflow:visible}.sidebar-collapsed .nav-item>.nav-icon+span{display:inline!important}}.boot-screen{position:fixed;inset:0;z-index:9999;display:grid;place-content:center;justify-items:center;gap:18px;background:#f6f8fa}.boot-screen img{width:74px;height:74px;object-fit:contain;filter:drop-shadow(0 8px 18px rgba(15,23,42,.14))}.boot-screen span{width:110px;height:4px;border-radius:999px;overflow:hidden;background:#dbe3ec;position:relative}.boot-screen span:after{content:"";position:absolute;inset:0;width:42%;border-radius:inherit;background:#0d9488;animation:boot-progress 1s ease-in-out infinite alternate}@keyframes boot-progress{0%{transform:translate(0)}to{transform:translate(140%)}}.dark .boot-screen{background:#020617}.dark .boot-screen span{background:#1e293b}@media(prefers-reduced-motion:reduce){.boot-screen span:after{animation:none;width:100%}}@media(min-width:901px){.sidebar-collapsed .settings-nav-group{max-width:none;width:100%}.sidebar-collapsed .settings-nav-group .nav-item{width:auto;max-width:none;margin:4px 11px;padding:11px 0;overflow:hidden;justify-content:center}}.setting-form #saveSettings{grid-column:1/-1;justify-self:end;align-self:center;width:auto!important;min-width:132px;max-width:max-content;height:40px;padding:8px 16px;line-height:1.2;font-size:11px;border-radius:5px}.setting-form .form-grid{align-items:end}@media(max-width:560px){.setting-form #saveSettings{justify-self:stretch;max-width:none;width:100%!important}}body.auth-mode{overflow:hidden!important;height:100dvh}.auth-mode .reference-login{position:fixed;inset:0;width:100vw;height:100dvh;min-height:0!important;overflow:hidden;display:grid!important;place-items:center!important;padding:16px!important;background:#eaf1f8!important}.auth-mode .reference-login.hidden{display:none!important}.auth-mode .auth-shell,.auth-mode .reference-login .twofa-shell{width:min(850px,calc(100vw - 32px))!important;min-height:440px;max-height:calc(100dvh - 32px);margin:0!important;padding:36px 40px!important;grid-template-columns:215px minmax(0,1fr)!important;gap:38px!important;align-items:center!important;border:0!important;border-radius:28px!important;background:#fff!important;box-shadow:0 28px 60px #1e293b2e!important;overflow:hidden}.auth-mode .auth-logo,.auth-mode .twofa-shell .auth-logo{height:auto!important;min-height:260px!important;padding:0!important;border:0!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:10px}.auth-mode .auth-prit-logo{width:158px!important;height:158px!important;margin:0!important;filter:drop-shadow(0 8px 14px rgba(15,23,42,.12))}.auth-mode .auth-logo>small{display:none!important}.auth-mode .login-card,.auth-mode .twofa-shell .login-card{width:100%!important;max-width:none!important;margin:0!important;justify-self:stretch!important}.auth-mode .auth-heading{margin:0 0 24px!important;text-align:center}.auth-mode .auth-heading h1{font-family:Moul,Khmer OS Muol Light,serif!important;font-size:19px!important;line-height:1.75!important;font-weight:400!important;color:#14213d!important;text-wrap:balance}.auth-mode .auth-heading p,.auth-mode .auth-institute{margin:7px 0 0!important;font-family:Kantumruy Pro,Khmer OS Siemreap,sans-serif!important;font-size:11px!important;line-height:1.55!important;letter-spacing:0!important;color:#334155!important;font-weight:600!important}.auth-mode .input-group{height:48px;margin:12px 0!important;border-color:#d8e2ee!important;border-radius:5px!important}.auth-mode .input-group>span{width:56px!important;background:#f2f6fa!important}.auth-mode .input-group input{height:46px;padding:10px 18px!important;font-size:12px!important}.auth-mode .input-group button{width:56px!important}.auth-mode .remember{height:28px;margin:8px 0 12px!important;font-size:11px!important}.auth-mode .remember input{width:20px;height:20px;margin:0}.auth-mode .primary.wide{height:46px!important;min-height:46px!important;padding:8px 16px!important;border-radius:5px!important;background:#087cf0!important;font-size:12px!important;line-height:1.2!important}.auth-mode .primary.wide:hover{background:#066dd5!important}.auth-mode .auth-error{margin:0 0 10px!important}.auth-mode .twofa-shell .auth-heading{margin-bottom:12px!important}.auth-mode .twofa-shell .center{margin:0 0 16px!important;font-size:11px!important;color:#334155!important}.auth-mode .twofa-shell .otp{display:grid!important;grid-template-columns:repeat(6,1fr)!important;gap:14px!important;margin:18px 0 28px!important}.auth-mode .twofa-shell .otp input{width:100%!important;height:60px!important;padding:5px!important;border:1px solid #d8e2ee!important;border-radius:5px!important;background:#fff!important;font-size:22px!important}.auth-mode .auth-back{margin:7px auto 0!important;padding:5px 10px!important;font-size:10px!important}.auth-mode .twofa-shell .setup-panel{width:190px!important;max-height:220px;margin:4px 0 0!important;padding:8px!important;overflow:hidden}.auth-mode .twofa-shell .setup-panel p{font-size:8px!important;margin-bottom:5px!important}.auth-mode .twofa-shell .qr-code svg{width:118px!important;height:118px!important}.auth-mode .twofa-shell #secretKey{font-size:8px!important;margin-top:3px!important}.dark.auth-mode .reference-login,.dark .auth-mode .reference-login{background:#07101f!important}.dark.auth-mode .auth-shell,.dark .auth-mode .auth-shell{background:#0f172a!important}.dark.auth-mode .auth-heading h1,.dark .auth-mode .auth-heading h1{color:#f1f5f9!important}.dark.auth-mode .auth-heading p,.dark .auth-mode .auth-heading p{color:#cbd5e1!important}@media(max-width:700px){.auth-mode .auth-shell,.auth-mode .reference-login .twofa-shell{width:min(460px,calc(100vw - 24px))!important;min-height:0!important;padding:22px 20px!important;grid-template-columns:1fr!important;gap:13px!important;border-radius:20px!important}.auth-mode .auth-logo,.auth-mode .twofa-shell .auth-logo{min-height:76px!important}.auth-mode .auth-prit-logo{width:76px!important;height:76px!important}.auth-mode .auth-heading{margin-bottom:14px!important}.auth-mode .auth-heading h1{font-size:14px!important;line-height:1.65!important}.auth-mode .auth-heading p{font-size:9px!important}.auth-mode .input-group{height:44px;margin:9px 0!important}.auth-mode .input-group input{height:42px}.auth-mode .twofa-shell .otp{gap:6px!important;margin:12px 0 18px!important}.auth-mode .twofa-shell .otp input{height:46px!important;font-size:18px!important}.auth-mode .twofa-shell .setup-panel{position:absolute;left:50%;top:92px;transform:translate(-50%);z-index:2;background:#fff!important}.auth-mode .twofa-shell:has(.setup-panel:not(.hidden)){padding-top:245px!important}}@media(max-height:590px)and (min-width:701px){.auth-mode .auth-shell,.auth-mode .reference-login .twofa-shell{min-height:0;height:calc(100dvh - 24px);padding-top:20px!important;padding-bottom:20px!important}.auth-mode .auth-prit-logo{width:125px!important;height:125px!important}.auth-mode .auth-heading{margin-bottom:12px!important}.auth-mode .twofa-shell .otp{margin:10px 0 16px!important}}@media(min-width:701px){.auth-mode .auth-shell,.auth-mode .reference-login .twofa-shell{width:min(680px,calc(100vw - 32px))!important;min-height:0!important;max-height:calc(100dvh - 32px)!important;padding:32px!important;grid-template-columns:136px minmax(0,1fr)!important;gap:32px!important;border-radius:24px!important}.auth-mode .auth-logo,.auth-mode .twofa-shell .auth-logo{min-height:250px!important}.auth-mode .auth-prit-logo{width:128px!important;height:128px!important}.auth-mode .auth-heading{margin-bottom:22px!important}.auth-mode .auth-heading h1{font-size:21px!important;line-height:1.55!important;letter-spacing:.01em!important}.auth-mode .auth-heading .auth-institute{font-family:Moul,Khmer OS Muol Light,serif!important;font-size:13px!important;line-height:1.65!important;margin-top:8px!important;color:#475569!important}.auth-mode .input-group{height:42px!important;margin:0 0 16px!important;border-radius:8px!important}.auth-mode .input-group>span{width:44px!important}.auth-mode .input-group input{height:40px!important;padding:8px 14px!important}.auth-mode .input-group button{width:44px!important}.auth-mode .remember{margin:-1px 0 8px!important;height:24px!important}.auth-mode .remember input{width:16px!important;height:16px!important}.auth-mode .primary.wide{height:42px!important;min-height:42px!important;border-radius:8px!important}.auth-mode .twofa-shell .auth-heading h1{font-size:21px!important}.auth-mode .twofa-shell .auth-heading p{font-family:Moul,Khmer OS Muol Light,serif!important;font-size:13px!important;line-height:1.65!important;margin-top:8px!important}.auth-mode .twofa-shell .center{text-align:left!important;font-size:11px!important;margin:0 0 12px!important}.auth-mode .twofa-shell .otp{gap:10px!important;margin:8px 0 18px!important}.auth-mode .twofa-shell .otp input{height:48px!important;border-radius:12px!important;font-size:18px!important}.auth-mode .twofa-shell:has(.setup-panel:not(.hidden)){width:min(700px,calc(100vw - 32px))!important;grid-template-columns:240px minmax(0,1fr)!important}.auth-mode .twofa-shell:has(.setup-panel:not(.hidden)) .auth-logo{min-height:300px!important;padding:16px!important;background:#f8fafc;border:1px solid #f1f5f9!important;border-radius:16px!important}.auth-mode .twofa-shell:has(.setup-panel:not(.hidden)) .auth-prit-logo{display:none!important}.auth-mode .twofa-shell:has(.setup-panel:not(.hidden)) .setup-panel{width:100%!important;max-height:none!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important}.auth-mode .twofa-shell:has(.setup-panel:not(.hidden)) .qr-code svg{width:160px!important;height:160px!important}.auth-mode .twofa-shell:has(.setup-panel:not(.hidden)) #secretKey{font-size:9px!important}}@media(max-height:560px)and (min-width:701px){.auth-mode .auth-shell,.auth-mode .reference-login .twofa-shell{padding:22px 28px!important}.auth-mode .auth-logo,.auth-mode .twofa-shell .auth-logo{min-height:210px!important}.auth-mode .auth-prit-logo{width:105px!important;height:105px!important}.auth-mode .auth-heading{margin-bottom:12px!important}.auth-mode .auth-heading h1{font-size:17px!important}.auth-mode .input-group{margin-bottom:10px!important}.auth-mode .twofa-shell .otp{margin:5px 0 12px!important}}.auth-mode #backLogin{display:none!important}.auth-mode .twofa-shell .center strong{font-weight:700;color:#334155}.dark.auth-mode .twofa-shell .center strong,.dark .auth-mode .twofa-shell .center strong{color:#e2e8f0}.auth-mode #loginButton,.auth-mode #verifyButton{height:50px!important;min-height:50px!important;padding:5px 18px 3px!important;display:flex!important;align-items:center!important;justify-content:center!important;font-family:Moul,Khmer OS Muol Light,serif!important;font-size:15px!important;font-weight:400!important;line-height:1.6!important;letter-spacing:0!important;text-align:center!important}.auth-mode #loginButton:disabled,.auth-mode #verifyButton:disabled{opacity:.65;cursor:not-allowed}@media(max-width:700px){.auth-mode #loginButton,.auth-mode #verifyButton{height:46px!important;min-height:46px!important;font-size:13px!important}}@font-face{font-family:Khmer OS Muol Light Local;src:url(/fonts/KhmerOS_muollight.ttf) format("truetype");font-weight:400;font-style:normal;font-display:swap}.auth-mode #loginButton,.auth-mode #verifyButton{font-family:Khmer OS Muol Light Local,Khmer OS Muol Light,Moul,serif!important;font-weight:400!important}@font-face{font-family:Khmer OS Siemreap Local;src:url(/fonts/KhmerOS_siemreap.ttf) format("truetype");font-weight:400;font-style:normal;font-display:swap}body{font-family:Khmer OS Siemreap Local,Kantumruy Pro,Khmer OS Siemreap,sans-serif}#nav .nav-item{font-size:16px;line-height:1.55}.sidebar-subitem{font-size:14px;line-height:1.5}.sidebar-collapsed .settings-nav-group .sidebar-subitem{font-size:14px}.nav-section{font-size:10px}@media(max-width:900px){#nav .nav-item{font-size:16px}.sidebar-subitem{font-size:14px}}.report-catalog{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:26px 30px!important;align-items:stretch}.report-catalog .report-section,.report-catalog .report-section-wide{grid-column:auto!important;min-width:0;display:flex;flex-direction:column}.report-catalog .report-section h3{min-height:48px;display:flex;align-items:flex-end;margin-bottom:10px}.report-catalog .report-list,.report-catalog .report-list-two{grid-template-columns:minmax(0,1fr)!important;flex:1}.report-catalog .report-list-item{height:100%;min-height:118px}@media(max-width:900px){.report-catalog{grid-template-columns:1fr!important}.report-catalog .report-section h3{min-height:0}.report-catalog .report-list-item{min-height:96px}}.report-catalog{row-gap:14px!important;padding-top:18px!important;padding-bottom:20px!important}.report-catalog .report-section h3{min-height:34px!important;margin:0 0 6px!important;line-height:1.45!important}.report-catalog .report-list-item{min-height:102px!important;padding-top:13px!important;padding-bottom:13px!important}@media(max-width:900px){.report-catalog{row-gap:12px!important}.report-catalog .report-list-item{min-height:90px!important}}.report-catalog{align-items:start!important}.report-column{display:grid;gap:14px;align-content:start;min-width:0}.report-column .report-section{align-self:start}.report-column .report-list{flex:none!important}.report-column .report-list-item{height:102px!important;min-height:102px!important}@media(max-width:900px){.report-column{gap:12px}.report-column .report-list-item{height:auto!important;min-height:90px!important}}.report-heading-spacer{visibility:hidden}.weekly-modal .modal-card{display:flex;flex-direction:column;overflow:hidden}.weekly-modal .modal-head{flex:0 0 auto}.weekly-modal #modalForm{display:flex;flex:1 1 auto;min-height:0;flex-direction:column;overflow:hidden}.weekly-modal .weekly-schedule-body{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable}.weekly-modal .modal-actions{flex:0 0 auto;position:relative;z-index:2}.activity-chart-card{margin:20px 0;overflow:visible}.activity-chart-head{min-height:68px;justify-content:space-between;gap:20px}.activity-chart-head h3{font-size:14px}.activity-chart-head p{margin:4px 0 0;color:#94a3b8;font-size:10px}.activity-legend{margin-left:auto;display:flex;align-items:center;gap:18px;flex-wrap:wrap;font-size:10px;color:#64748b}.activity-legend span{display:flex;align-items:center;gap:6px;white-space:nowrap}.activity-legend i{width:9px;height:9px;border-radius:3px}.activity-chart{padding:24px 24px 17px}.activity-plot{height:250px;display:grid;grid-template-columns:repeat(7,minmax(54px,1fr));gap:18px;padding:18px 10px 0;border-bottom:1px solid #cbd5e1;background:repeating-linear-gradient(to bottom,transparent 0,transparent 49px,#e2e8f0 50px)}.activity-day{height:100%;min-width:0;display:grid;grid-template-rows:1fr 24px;gap:7px;text-align:center}.activity-bars{height:100%;display:flex;align-items:flex-end;justify-content:center;gap:6px}.activity-bar{position:relative;width:min(22px,28%);min-height:3px;border-radius:7px 7px 2px 2px;transition:transform .15s,filter .15s;cursor:pointer;box-shadow:inset 0 0 0 1px #0f172a14}.activity-bar.scheduled,.activity-legend .scheduled{background:#7479ed}.activity-bar.present,.activity-legend .present{background:#35bdb2}.activity-bar.absent,.activity-legend .absent{background:#fb8294}.activity-bar>span{display:none}.activity-bar:hover{transform:translateY(-3px);filter:saturate(1.12);z-index:5}.activity-bar:hover:after{content:attr(data-tooltip);position:absolute;left:50%;bottom:calc(100% + 9px);transform:translate(-50%);padding:7px 9px;border-radius:4px;background:#0f172a;color:#fff;font:11px Siemreap,Khmer OS Siemreap,sans-serif;white-space:nowrap;box-shadow:0 5px 15px #0f172a38;pointer-events:none}.activity-bar:hover:before{content:"";position:absolute;left:50%;bottom:calc(100% + 3px);transform:translate(-50%);border:4px solid transparent;border-top-color:#0f172a}.activity-day>small{font-size:10px;color:#64748b}.dark .activity-chart-head p,.dark .activity-legend,.dark .activity-day>small{color:#94a3b8}.dark .activity-plot{border-color:#475569;background:repeating-linear-gradient(to bottom,transparent 0,transparent 49px,#243244 50px)}@media(max-width:900px){.activity-chart-head{align-items:flex-start;flex-direction:column}.activity-legend{margin-left:0}.activity-chart{overflow-x:auto}.activity-plot{min-width:680px}}.dashboard-lower-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,.85fr);gap:16px;align-items:stretch}.dashboard-lower-grid .activity-chart-card{margin:0;min-width:0}.dashboard-lower-grid .today-schedule-card{min-width:0}.today-schedule-card .card-body{max-height:319px;overflow-y:auto}@media(max-width:1100px){.dashboard-lower-grid{grid-template-columns:1fr}.today-schedule-card .card-body{max-height:none}}.setting-form .form-grid>.primary{grid-column:1/-1;justify-self:end;width:auto;min-width:150px;min-height:44px;margin-top:12px;padding:9px 20px}.settings-save-row{display:flex;justify-content:flex-end;align-items:center;margin-top:12px}.settings-save-row .primary{width:auto;min-width:190px;min-height:44px;padding:9px 20px}.catalog-head .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:9px 16px}.catalog-head .btn b{font-size:17px;line-height:1}.catalog-head .btn span{line-height:1.4}@media(max-width:620px){.setting-form .form-grid>.primary,.settings-save-row .primary{width:100%;justify-self:stretch}}.modal-card{display:flex;flex-direction:column;max-height:calc(100dvh - 40px);overflow:hidden}.modal-card>.modal-head{flex:0 0 auto}.modal-card>#modalForm{display:flex;flex:1 1 auto;min-height:0;flex-direction:column;overflow:hidden}.modal-card .modal-fields{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.modal-card .modal-actions{flex:0 0 auto;position:relative;z-index:3}.room-location-tools{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;gap:12px;padding-top:4px}.room-location-tools .btn{min-width:190px;min-height:42px;color:#0d9488;font-weight:600}.room-location-tools small{max-width:330px;color:#64748b;font-size:10px;line-height:1.5}@media(max-width:620px){.modal{padding:8px}.modal-card{max-height:calc(100dvh - 16px)}.modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.modal-actions button{width:100%;min-width:0!important;margin:0}.room-location-tools{align-items:stretch;flex-direction:column}.room-location-tools .btn{width:100%}.room-location-tools small{text-align:center;max-width:none}}.room-location-tools{grid-column:2!important;display:flex!important;align-items:end!important;justify-content:stretch!important;padding-top:0!important}.room-location-tools .btn{width:100%;min-width:0!important;height:40px!important;min-height:40px!important;padding-top:8px;padding-bottom:8px}.room-location-alert{margin-right:auto;display:flex;align-items:center;gap:8px;max-width:480px;padding:7px 10px;border:1px solid #fcd34d;border-radius:6px;background:#fffbeb;color:#92400e}.room-location-alert>span{width:20px;height:20px;flex:0 0 20px;display:grid;place-items:center;border-radius:50%;background:#f59e0b;color:#fff;font-weight:800;font-size:11px}.room-location-alert small{font-size:9px;line-height:1.5;text-align:left}@media(max-width:620px){.room-location-tools{grid-column:1!important}.room-location-alert{grid-column:1/-1;width:100%;max-width:none;margin:0 0 4px}.modal-actions:has(.room-location-alert){grid-template-columns:1fr 1fr}.modal-actions:has(.room-location-alert) .room-location-alert{grid-column:1/-1}}.confirm-overlay{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:18px;background:#0f172a9e;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);opacity:0;transition:opacity .16s ease}.confirm-overlay.visible{opacity:1}.confirm-dialog{position:relative;width:min(440px,100%);padding:28px 28px 24px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;box-shadow:0 28px 80px #0f172a57;text-align:center;transform:translateY(8px) scale(.98);transition:transform .16s ease}.confirm-overlay.visible .confirm-dialog{transform:none}.confirm-close{position:absolute;top:13px;right:13px;width:32px;height:32px;display:grid;place-items:center;border:1px solid #e2e8f0;background:#f8fafc;color:#64748b;font-size:20px}.confirm-close:hover{background:#fff1f2;color:#e11d48;border-color:#fecdd3}.confirm-warning{width:58px;height:58px;margin:0 auto 16px;display:grid;place-items:center;border-radius:50%;background:#fff1f2;color:#e11d48}.confirm-warning svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.8}.confirm-warning:has(svg:empty):before,.confirm-warning:not(:has(svg)):before{content:"!";font-size:28px;font-weight:800}.confirm-dialog h2{margin:0;color:#172033;font-family:Moul,Khmer OS Muol Light,serif;font-size:16px;font-weight:400;line-height:1.65}.confirm-dialog p{margin:10px auto 22px;max-width:365px;color:#64748b;font-size:12px;line-height:1.75}.confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.confirm-actions button{height:43px;padding:9px 16px;font-weight:600}.confirm-cancel{background:#fff}.confirm-danger{background:#e11d48;color:#fff}.confirm-danger:hover{background:#be123c}.confirm-danger:focus{outline:3px solid rgba(225,29,72,.2);outline-offset:2px}.dark .confirm-dialog{background:#0f172a;border-color:#334155}.dark .confirm-dialog h2{color:#f8fafc}.dark .confirm-close,.dark .confirm-cancel{background:#111c2f;border-color:#334155;color:#cbd5e1}@media(max-width:480px){.confirm-dialog{padding:25px 18px 18px}.confirm-actions{grid-template-columns:1fr}.confirm-actions .confirm-danger{grid-row:1}.confirm-dialog p{font-size:11px}}.system-users-card .catalog-head{padding:18px 20px}.system-users-card .table-card{border-left:0;border-right:0;border-bottom:0}.system-users-card .name-cell small{display:block;margin-top:3px;color:#64748b;font-size:10px}.user-role{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:700;background:#e0f2fe;color:#0369a1}.user-role.role-super_admin{background:#fef3c7;color:#92400e}.user-role.role-teacher_manager{background:#dcfce7;color:#166534}.user-role.role-schedule_manager{background:#ede9fe;color:#6d28d9}.user-2fa-off{background:#f1f5f9;color:#64748b}.dark .user-2fa-off{background:#1e293b;color:#cbd5e1}@media(max-width:700px){.system-users-card .catalog-head{align-items:flex-start;gap:12px}.system-users-card .catalog-head .btn{width:auto}}.role-selector{grid-column:1/-1;margin:0;padding:14px;border:1px solid #dbe3eb;border-radius:6px}.role-selector legend{padding:0 7px;color:#475569;font-size:11px;font-weight:700}.role-choice{display:flex!important;grid-template-columns:none!important;align-items:flex-start;gap:10px!important;margin:8px 0!important;padding:10px 12px;border:1px solid #e2e8f0;border-radius:5px;background:#f8fafc;cursor:pointer}.role-choice input{width:17px;height:17px;margin:2px 0 0;accent-color:#0d9488}.role-choice span,.role-choice strong,.role-choice small{display:block}.role-choice strong{font-size:11px;color:#1e293b}.role-choice small{margin-top:3px;color:#64748b;font-size:9px;font-weight:400}.user-role-list{display:flex;flex-wrap:wrap;gap:5px}.skeleton-card,.skeleton-heading{animation:skeleton-enter .22s ease both}@keyframes skeleton-enter{0%{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}.dark .role-selector,.dark .role-choice{border-color:#334155}.dark .role-choice{background:#111c2f}.dark .role-choice strong,.dark .role-selector legend{color:#e2e8f0}@media(max-width:620px){.role-selector{padding:10px}}.notification-wrap,.notification-bell{position:relative}.notification-bell b{position:absolute;right:-5px;top:-6px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#e11d48;color:#fff;border:2px solid var(--card);display:grid;place-items:center;font:700 9px/1 sans-serif}.notification-menu{position:absolute;right:0;top:44px;width:min(390px,calc(100vw - 28px));background:var(--card);border:1px solid var(--line);border-radius:7px;box-shadow:0 20px 45px #0f172a2e;z-index:40;overflow:hidden}.notification-menu-head{height:auto;padding:13px 15px;display:flex;align-items:center;border-bottom:1px solid var(--line)}.notification-menu-head strong{font-size:13px}.notification-menu-head button{margin-left:auto;background:none!important;color:var(--teal)!important;padding:4px!important;font-size:10px}.notification-list{max-height:370px;overflow:auto}.notification-item{width:100%;display:grid;grid-template-columns:34px 1fr auto;gap:10px;padding:12px 14px;text-align:left;background:transparent;border-bottom:1px solid var(--line);color:inherit}.notification-item.unread{background:#0d948812}.notification-item i{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#ccfbf1;color:var(--teal);font-style:normal}.notification-item strong,.notification-item span{display:block;font-size:11px}.notification-item small{display:block;color:var(--muted);font-size:9px;margin-top:3px}.notification-item em{width:6px;height:6px;border-radius:50%;background:var(--teal);margin-top:8px}.notification-empty{padding:35px 16px;text-align:center;color:var(--muted);font-size:11px}.notification-view-all{width:100%;padding:11px;background:transparent;color:var(--teal);font-size:11px;border-top:1px solid var(--line)}.dark .notification-menu{background:#0f172a;border-color:#334155}@media(max-width:620px){.notification-menu{position:fixed;right:14px;top:64px}}.academic-section{margin-bottom:18px;overflow:hidden}.academic-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.academic-empty{padding:42px 18px;text-align:center;color:var(--muted);font-size:12px}.academic-progress{width:130px;height:7px;border-radius:999px;background:#e2e8f0;overflow:hidden;display:inline-block;margin-right:8px}.academic-progress i{height:100%;display:block;background:var(--teal)}.request-status{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:10px}.status-pending{background:#fef3c7;color:#92400e}.status-approved{background:#dcfce7;color:#166534}.status-rejected{background:#ffe4e6;color:#be123c}.request-detail{padding:20px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.request-detail p{margin:0;padding:12px;border:1px solid var(--line);border-radius:5px}.request-detail strong{display:block;font-size:10px;color:var(--muted);margin-bottom:5px}@media(max-width:1100px){.academic-columns{grid-template-columns:1fr}}@media(max-width:700px){.request-detail{grid-template-columns:1fr}}.telegram-recipient-card{margin-top:18px;overflow:hidden}.telegram-recipient-form{padding:20px}.telegram-recipient-form label{margin:0}.telegram-recipient-form textarea{width:100%;resize:vertical}.telegram-recipient-form small{color:var(--muted);font-weight:400}.telegram-recipient-actions{display:flex;justify-content:flex-end;margin-top:14px}.telegram-recipient-list{border-top:1px solid var(--line)}.telegram-recipient-row{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;padding:13px 20px;border-bottom:1px solid var(--line)}.telegram-recipient-row strong,.telegram-recipient-row small{display:block}.telegram-recipient-row small{color:var(--muted);font-size:10px}@media(max-width:650px){.telegram-recipient-row{grid-template-columns:1fr auto}.telegram-recipient-row .btn{grid-column:1/-1}}.academic-report-section{grid-column:1/-1}.academic-report-filters{display:flex;gap:10px;margin:0 0 12px}.academic-report-filters select{min-width:180px;height:42px}.academic-report-filters .btn{height:42px}.academic-report-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}.academic-report-list .report-list-item{height:100%;min-height:112px}@media(max-width:800px){.academic-report-list{grid-template-columns:1fr}.academic-report-filters{flex-direction:column}.academic-report-filters select{width:100%}}.bulk-teacher-option{grid-column:1/-1!important;display:flex!important;grid-template-columns:auto 1fr!important;align-items:flex-start!important;gap:12px;padding:14px;border:1px solid #99f6e4;border-radius:6px;background:#f0fdfa}.bulk-teacher-option input{margin-top:3px}.bulk-teacher-option strong,.bulk-teacher-option small{display:block}.bulk-teacher-option small{margin-top:4px;color:var(--muted);font-weight:400}.dark .bulk-teacher-option{background:#0f2f2c;border-color:#115e59}.teacher-credential-note{grid-column:1/-1;padding:13px 15px;border:1px solid #bfdbfe;border-radius:6px;background:#eff6ff;color:#1e3a8a}.teacher-credential-note strong,.teacher-credential-note span{display:block}.teacher-credential-note span{margin-top:4px;font-size:11px}.teacher-credential-note code{font-weight:700;background:#dbeafe;padding:2px 6px;border-radius:4px}.dark .teacher-credential-note{background:#172554;border-color:#1d4ed8;color:#dbeafe}.teacher-credential-note span .credential-value{display:inline;margin-left:4px;vertical-align:baseline}.report-catalog section.academic-report-section{grid-column:1 / -1!important;width:100%}.report-catalog .academic-report-section .academic-report-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 130px;gap:12px;width:100%;margin:0 0 14px}.report-catalog .academic-report-section .academic-report-filters select{width:100%;min-width:0;height:46px;padding:0 42px 0 16px;border:1px solid var(--line);border-radius:7px;background-color:var(--card);color:var(--text);font:inherit}.report-catalog .academic-report-section .academic-report-filters .btn{width:100%;height:46px;justify-content:center}.report-catalog .academic-report-section .academic-report-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px 18px!important;width:100%}.report-catalog .academic-report-section .academic-report-list .report-list-item{width:100%;height:100%!important;min-height:102px!important}@media(max-width:800px){.report-catalog .academic-report-section .academic-report-filters{grid-template-columns:1fr}.report-catalog .academic-report-section .academic-report-list{grid-template-columns:1fr!important}}.report-catalog .report-period-panel{grid-column:1 / -1!important;display:grid;grid-template-columns:minmax(240px,1fr) auto;align-items:end;gap:18px 28px;width:100%;padding:16px 18px;border:1px solid var(--line);background:var(--card)}.report-period-heading{display:flex;flex-direction:column;gap:3px}.report-period-heading strong{font-family:Moul,Khmer OS Muol Light,serif;font-size:14px;font-weight:400;color:var(--text)}.report-period-heading small{color:var(--muted);font-size:11px}.report-period-fields{display:flex;align-items:center;justify-content:flex-end;gap:10px;width:auto}.report-period-fields select{width:auto;field-sizing:content;min-width:150px;height:44px;padding:0 40px 0 14px;border:1px solid var(--line);border-radius:7px;background:var(--card);color:var(--text);font:inherit}@media(max-width:1050px){.report-catalog .report-period-panel{grid-template-columns:1fr}}@media(max-width:700px){.report-period-fields{grid-template-columns:1fr}}.academic-year-panel{overflow:hidden}.academic-year-head{padding:20px 22px;border-bottom:1px solid var(--line)}.active-academic-year{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:16px 20px;padding:14px 18px;border:1px solid #99f6e4;background:#f0fdfa;border-radius:8px}.active-academic-year span{color:#64748b;font-size:12px}.active-academic-year strong{font-family:Moul,Khmer OS Muol Light,serif;color:#0f766e;font-weight:400}.academic-year-status{display:inline-flex;padding:5px 10px;border-radius:999px;font-size:11px}.academic-year-status.draft{background:#f1f5f9;color:#475569}.academic-year-status.active{background:#dcfce7;color:#15803d}.academic-year-status.closed{background:#fef3c7;color:#92400e}.academic-year-status.archived{background:#e2e8f0;color:#475569}.academic-year-actions{display:flex;flex-wrap:wrap;gap:6px}.academic-year-actions .btn{height:34px;padding:5px 10px;font-size:11px}.rollover-summary{display:flex;flex-direction:column;gap:5px;grid-column:1/-1;padding:13px 15px;border:1px solid #bfdbfe;background:#eff6ff;border-radius:7px}.rollover-summary small{color:#64748b}.rollover-options{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:14px;border:1px solid var(--line);border-radius:7px}.rollover-options legend{padding:0 7px;font-weight:700}.rollover-options label{display:flex;align-items:center;gap:8px;padding:9px;border:1px solid var(--line);border-radius:6px}.rollover-options input{width:17px;height:17px;accent-color:#0d9488}.rollover-warning{grid-column:1/-1;padding:12px 14px;border:1px solid #fbbf24;background:#fffbeb;color:#92400e;border-radius:7px;font-size:12px}.dark .active-academic-year{background:#0f2f2d;border-color:#115e59}.dark .rollover-summary{background:#172554;border-color:#1d4ed8}.dark .rollover-warning{background:#422006;border-color:#92400e;color:#fde68a}@media(max-width:760px){.rollover-options{grid-template-columns:1fr}.academic-year-head,.active-academic-year{align-items:flex-start;flex-direction:column}}.teacher-edit-window-notice{margin:-2px 0 14px;padding:11px 14px;border:1px solid #99f6e4;border-radius:7px;background:#f0fdfa;color:#0f766e;font-size:12px}.dark .teacher-edit-window-notice{background:#0f2f2d;border-color:#115e59;color:#99f6e4}.profile-settings-group{margin:6px;border:1px solid #e2e8f0;border-radius:5px;overflow:hidden;background:#fff}.profile-settings-toggle,.profile-settings-submenu button{width:100%;display:flex;align-items:center;gap:10px;border:0;border-radius:0;background:#fff;color:#475569;text-align:left;font-family:inherit}.profile-settings-toggle{min-height:42px;padding:9px 11px;font-size:12px}.profile-settings-toggle:hover,.profile-settings-toggle.open{background:#f8fafc;color:#0f766e}.profile-settings-toggle>svg:first-child,.profile-settings-submenu button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}.profile-settings-chevron{width:15px!important;height:15px!important;margin-left:auto;transition:transform .18s}.profile-settings-toggle.open .profile-settings-chevron{transform:rotate(180deg)}.profile-settings-submenu{margin:0 8px 8px;border:1px solid #e2e8f0;border-radius:5px;overflow:hidden;box-shadow:0 7px 18px #0f172a14}.profile-settings-submenu button{min-height:41px;padding:9px 12px;font-size:11px}.profile-settings-submenu button+button{border-top:1px solid #e2e8f0}.profile-settings-submenu button:hover{background:#ecfdf5;color:#0f766e}.dark .profile-settings-group,.dark .profile-settings-toggle,.dark .profile-settings-submenu button{background:#0f172a;border-color:#334155;color:#cbd5e1}.dark .profile-settings-group,.dark .profile-settings-submenu,.dark .profile-settings-submenu button+button{border-color:#334155}.dark .profile-settings-toggle:hover,.dark .profile-settings-toggle.open,.dark .profile-settings-submenu button:hover{background:#1e293b;color:#5eead4}.telegram-settings-grid{display:grid;grid-template-columns:1fr;gap:18px;align-items:start;margin-bottom:18px}.telegram-settings-grid>.card{margin:0;min-width:0;overflow:hidden}.telegram-settings-grid .form-grid{grid-template-columns:1fr}.telegram-settings-grid .form-grid .full{grid-column:1}.telegram-settings-grid .telegram-recipient-form{padding:20px}.telegram-settings-grid .telegram-recipient-list{max-height:280px;overflow:auto}@media(max-width:1050px){.telegram-settings-grid{grid-template-columns:1fr}}body.confirm-open{overflow:hidden}.modern-confirm-overlay{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:18px;background:#0f172a94;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:confirmFade .16s ease-out}.modern-confirm{position:relative;width:min(420px,100%);padding:28px 28px 24px;border:1px solid var(--line);border-radius:10px;background:var(--card);box-shadow:0 28px 80px #0f172a57;text-align:center;animation:confirmPop .2s ease-out}.modern-confirm-close{position:absolute;right:14px;top:12px;width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--line);background:transparent;color:var(--muted);font-size:21px}.modern-confirm-close:hover{border-color:#fecdd3;background:#fff1f2;color:#e11d48}.modern-confirm-icon{width:54px;height:54px;margin:2px auto 17px;display:grid;place-items:center;border-radius:50%}.modern-confirm-icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.modern-confirm-icon.danger{background:#fff1f2;color:#e11d48}.modern-confirm-icon.safe{background:#ecfdf5;color:#0d9488}.modern-confirm h3{margin:0;font-family:Moul,Khmer OS Muol Light,serif;font-size:16px;font-weight:400;color:var(--text)}.modern-confirm p{margin:12px auto 22px;max-width:340px;color:var(--muted);font-size:12px;line-height:1.75}.modern-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.modern-confirm-actions button{height:42px;padding:8px 16px;font-weight:600}.modern-confirm-submit{color:#fff}.modern-confirm-submit.danger{background:#e11d48}.modern-confirm-submit.danger:hover{background:#be123c}.modern-confirm-submit.teal{background:#0d9488}.modern-confirm-submit.teal:hover{background:#0f766e}.dark .modern-confirm,.dark .modern-confirm-close{border-color:#334155}.dark .modern-confirm-icon.danger{background:#4c0519}.dark .modern-confirm-icon.safe{background:#042f2e}@keyframes confirmFade{0%{opacity:0}to{opacity:1}}@keyframes confirmPop{0%{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:none}}@media(max-width:480px){.modern-confirm{padding:25px 18px 18px}.modern-confirm-actions{grid-template-columns:1fr}}.telegram-start-note{margin:18px 20px 0;padding:12px 14px;display:flex;flex-direction:column;gap:4px;border:1px solid #99f6e4;border-radius:7px;background:#f0fdfa;color:#115e59}.telegram-start-note strong{font-size:11px}.telegram-start-note span{font-size:10px;line-height:1.65}.telegram-last-error{max-width:520px;margin-top:4px!important;color:#e11d48!important;line-height:1.5}.dark .telegram-start-note{border-color:#115e59;background:#042f2e;color:#99f6e4}html{-webkit-text-size-adjust:100%;text-size-adjust:100%}@media(max-width:700px),(hover:none)and (pointer:coarse){input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{font-size:16px!important}.auth-mode .input-group input{font-size:16px!important}button,.btn{touch-action:manipulation}}.mobile-bottom-nav,.mobile-sidebar-backdrop{display:none}@media(max-width:900px){body:not(.auth-mode){padding-bottom:calc(68px + env(safe-area-inset-bottom))}body.mobile-drawer-open{overflow:hidden}.app{min-height:100dvh;background:var(--bg)}.app main{padding-bottom:0}.app main>header{height:64px;padding:calc(env(safe-area-inset-top) + 7px) 12px 7px;min-height:calc(64px + env(safe-area-inset-top));box-shadow:0 1px 10px #0f172a0f}#mobileMenu{width:40px;height:40px;margin:0 8px 0 0;padding:0;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--text);font-size:0}#mobileMenu:before{content:"☰";font-size:20px;line-height:1}#sidebar{z-index:70;width:min(310px,86vw);height:100dvh;padding-top:env(safe-area-inset-top);box-shadow:18px 0 55px #0f172a3d;transform:translate(-105%)}#sidebar.open{transform:translate(0)}.mobile-sidebar-backdrop{display:block;position:fixed;inset:0;z-index:65;border:0;border-radius:0;background:#0f172a73;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}#content{padding:18px 14px 12px}#content>.hero{margin-bottom:14px}.card,.stat,.table-card,.report-catalog,.setting-form{border-radius:14px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.stat{min-height:126px;padding:16px}.table-wrap{-webkit-overflow-scrolling:touch;scrollbar-width:thin}.header-title h1{max-width:38vw;font-size:14px}.header-actions{gap:5px}.header-icon,.language-switch{height:40px!important;min-width:40px;border-radius:11px!important}.profile-trigger{width:42px;height:42px;padding:4px;border-radius:12px}.profile-trigger .avatar{width:32px;height:32px}.profile-menu{position:fixed;right:12px;top:calc(62px + env(safe-area-inset-top));width:min(330px,calc(100vw - 24px));border-radius:14px}.mobile-bottom-nav{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);left:8px;right:8px;bottom:8px;z-index:60;min-height:60px;padding:5px 4px calc(5px + env(safe-area-inset-bottom));border:1px solid rgba(226,232,240,.9);border-radius:18px;background:#fffffff0;box-shadow:0 15px 45px #0f172a33;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);overflow:hidden}.mobile-bottom-nav button{position:relative;min-width:0;padding:5px 2px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;border-radius:12px;background:transparent;color:#94a3b8}.mobile-bottom-nav button span{width:22px;height:22px;display:grid;place-items:center}.mobile-bottom-nav button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.mobile-bottom-nav button em{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-style:normal;font-size:9px;line-height:1.25}.mobile-bottom-nav button.active{background:#ecfdf5;color:#0d9488}.mobile-bottom-nav button.active:after{content:"";position:absolute;top:2px;width:18px;height:3px;border-radius:999px;background:#0d9488}.dark .mobile-bottom-nav{background:#0f172af0;border-color:#334155}.dark .mobile-bottom-nav button.active{background:#0f2f2d;color:#5eead4}}@media(max-width:560px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat strong{font-size:22px}.hero h2{font-size:18px}.actions{width:100%;overflow-x:auto;padding-bottom:4px}.actions .btn{flex:0 0 auto}}@media(display-mode:standalone){body:not(.auth-mode){overscroll-behavior-y:none}.mobile-bottom-nav{bottom:max(8px,env(safe-area-inset-bottom))}.app main>header{background:#fffffff0;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.dark .app main>header{background:#0f172af0}}.schedule-dimension-bar,.report-dimension-fields{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:14px;margin:0 0 18px;padding:8px 20px 18px;border:1px solid var(--line,#d9e2ee);background:var(--card,#fff)}.schedule-dimension-bar label{display:grid;gap:7px}.schedule-dimension-bar label span{font-weight:700;color:var(--muted,#52627a)}.schedule-dimension-bar select,.report-dimension-fields select{width:100%;height:50px;padding:0 14px;border:1px solid var(--line,#d9e2ee);border-radius:7px;background:var(--card,#fff);color:var(--text,#14213d);font:inherit}.report-dimension-fields{grid-column:1/-1;margin:10px 0 0;padding:0;border:0;background:transparent}@media(max-width:760px){.schedule-dimension-bar,.report-dimension-fields{grid-template-columns:1fr;gap:10px;padding:14px}.report-dimension-fields{padding:0}.schedule-data-table{width:100%;max-width:100%;min-width:0}}.weekly-main-fields{grid-template-columns:repeat(4,minmax(0,1fr))!important}.semester-credit-note{display:flex;gap:12px;align-items:center;margin:14px 0 4px;padding:11px 14px;border:1px solid #99f6e4;background:#f0fdfa;color:#0f766e}.semester-assignment-panel{position:relative;margin:14px 0;border:1px solid #cbd5e1;background:#fff;overflow:visible}.semester-assignment-head{padding:14px 16px;border-bottom:1px solid #dbe4ee}.semester-assignment-head h3{margin:0 0 3px}.semester-assignment-head p{margin:0;color:#64748b;font-size:13px}.semester-subject-select{position:relative;padding:14px 16px;background:#f8fafc;border-bottom:1px solid #dbe4ee}.semester-subject-trigger{display:flex;align-items:center;justify-content:space-between;width:min(100%,680px);min-height:58px;padding:8px 14px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#14213d;text-align:left;cursor:pointer}.semester-subject-trigger>span{display:grid;gap:2px;min-width:0}.semester-subject-trigger small{color:#64748b;font-size:12px}.semester-subject-trigger strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}.semester-subject-trigger svg{flex:0 0 20px;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;transition:transform .18s}.semester-subject-trigger[aria-expanded=true] svg{transform:rotate(180deg)}.semester-subject-menu{position:absolute;z-index:80;top:calc(100% - 8px);left:16px;display:none;width:min(680px,calc(100% - 32px));overflow:hidden;border:1px solid #cbd5e1;border-radius:8px;background:#fff;box-shadow:0 18px 40px #0f172a33}.semester-subject-menu.open{display:block}.semester-subject-search{display:flex;align-items:center;gap:9px;padding:10px 12px;border-bottom:1px solid #e2e8f0}.semester-subject-search svg{flex:0 0 19px;width:19px;height:19px;fill:none;stroke:#64748b;stroke-width:2}.semester-subject-search input{width:100%;height:40px;padding:0;border:0!important;outline:0;background:transparent!important;box-shadow:none!important;font:inherit}.semester-subject-picker{display:grid;max-height:290px;overflow-y:auto;padding:6px;background:#fff}.semester-subject-option{display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 10px;border:1px solid transparent;border-radius:6px;background:#fff;cursor:pointer}.semester-subject-option:hover{background:#f8fafc}.semester-subject-option.selected{border-color:#99f6e4;background:#ecfdf5;color:#0f766e}.semester-subject-option input{flex:0 0 18px;width:18px;height:18px;accent-color:#0d9488}.semester-subject-option span{display:grid;gap:1px}.semester-subject-option small{color:#64748b;font-size:11px}.semester-subject-empty{padding:20px;text-align:center;color:#64748b}.semester-subject-menu-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-top:1px solid #e2e8f0;background:#f8fafc}.semester-subject-menu-footer span{color:#64748b;font-size:12px}.semester-subject-menu-footer button{height:38px;padding:0 18px;border:0;border-radius:6px;background:#0d9488;color:#fff;font:inherit;font-weight:700;cursor:pointer}.semester-assignment-table{overflow-x:auto}.semester-assignment-table table{width:100%;min-width:820px;table-layout:fixed}.semester-assignment-table .assignment-subject-col{width:25%}.semester-assignment-table .assignment-class-col{width:22%}.semester-assignment-table .assignment-hours-col{width:20%}.semester-assignment-table .assignment-room-col{width:26%}.semester-assignment-table .assignment-action-col{width:64px}.semester-assignment-row td{vertical-align:middle}.semester-assignment-row input,.semester-assignment-row select{display:block;width:100%;height:46px;padding:0 12px;border:1px solid #d9e2ee;border-radius:6px;background:#fff;color:#14213d;font:inherit}.remove-assignment{display:grid;place-items:center;width:36px;height:36px;margin:auto;border:0;border-radius:50%;background:#fff1f2;color:#e11d48;font-size:20px;cursor:pointer}.dark .semester-assignment-panel,.dark .semester-subject-trigger,.dark .semester-subject-menu,.dark .semester-subject-picker,.dark .semester-subject-option{background:#111827;border-color:#334155;color:#e2e8f0}.dark .semester-subject-select,.dark .semester-subject-menu-footer{background:#0f172a;border-color:#334155}.dark .semester-assignment-head,.dark .semester-subject-search{border-color:#334155}.dark .semester-subject-option:hover{background:#1e293b}.dark .semester-subject-option.selected{background:#102b2b;border-color:#0f766e}.dark .semester-assignment-row input,.dark .semester-assignment-row select{background:#111827;border-color:#334155;color:#e2e8f0}.has-field-issue{position:relative!important;z-index:999!important}.has-field-issue input,.has-field-issue select{border-color:#ef4444!important;box-shadow:0 0 0 2px #ef44441f!important}.field-issue-marker{position:absolute;z-index:1000!important;top:-7px;right:-7px;display:grid;place-items:center;width:22px;height:22px;padding:0;border:2px solid #fff;border-radius:50%;background:#ef4444;color:#fff;font:700 13px/1 Arial;cursor:help;box-shadow:0 3px 10px #7f1d1d4d}.has-field-issue:before{content:attr(data-issue);position:absolute;z-index:1001!important;right:0;bottom:calc(100% + 9px);display:none;width:max-content;max-width:300px;padding:9px 11px;border-radius:6px;background:#7f1d1d;color:#fff;font-size:11px;line-height:1.55;white-space:normal;box-shadow:0 10px 28px #0f172a4d}.has-field-issue:hover:before,.has-field-issue:focus-within:before{display:block}.dark .field-issue-marker{border-color:#0f172a}.dark .has-field-issue:before{background:#fecaca;color:#7f1d1d}.semester-credit-note span{font-size:12px;color:#475569}.schedule-credit-progress{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border:1px solid #99f6e4;background:#f0fdfa;color:#0f766e}.weekly-editor td:nth-child(4){min-width:150px}.weekly-editor table{min-width:1180px}.dark .semester-credit-note,.dark .schedule-credit-progress{background:#102b2b;border-color:#0f766e;color:#5eead4}.dark .semester-credit-note span{color:#cbd5e1}.weekly-main-fields>label{min-width:0}.weekly-main-fields select{width:100%}@media(max-width:760px){.weekly-main-fields{grid-template-columns:1fr!important}.semester-credit-note,.schedule-credit-progress{align-items:flex-start;flex-direction:column;gap:4px}}@media(max-width:760px){.semester-assignment-head,.semester-subject-select{padding:12px}.semester-subject-trigger{width:100%}.semester-subject-menu{left:12px;width:calc(100% - 24px)}.semester-assignment-table{overflow-x:auto}.semester-assignment-table table{min-width:760px}}@media(min-width:1251px){.report-catalog .report-period-panel{grid-template-columns:minmax(260px,.72fr) minmax(0,2.28fr);align-items:center;gap:20px}.report-period-fields{display:grid;grid-template-columns:minmax(135px,.8fr) minmax(220px,1.3fr) minmax(135px,.8fr) minmax(150px,.9fr) minmax(150px,.9fr);gap:10px;width:100%;min-width:0}.report-period-fields select,.report-period-fields .report-dimension-inline{width:100%;min-width:0;height:44px}}@media(min-width:701px)and (max-width:1250px){.report-period-fields{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));width:100%}}@media(max-width:700px){.report-period-fields{display:grid;grid-template-columns:1fr;width:100%}.report-period-fields select,.report-period-fields .report-dimension-inline{width:100%;min-width:0}}.weekly-position-field{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:18px;padding:0 0 14px}.weekly-position-field label{display:grid;gap:8px;font-weight:700;color:var(--navy)}.weekly-position-field .semester-subject-select{position:relative;padding:0;background:transparent;border:0}.semester-subject-field-label{display:block;margin-bottom:8px;color:var(--navy);font-size:13px;font-weight:700;line-height:1.45}.weekly-position-field .semester-subject-trigger{width:100%;max-width:none;height:50px;min-height:50px;padding:8px 14px;border-color:var(--line);border-radius:7px;font-size:13px;font-weight:700;line-height:1.45}.weekly-position-field .semester-subject-trigger small{display:none}.weekly-position-field .semester-subject-trigger strong{font-size:inherit;font-weight:inherit;line-height:inherit}.weekly-position-field .semester-subject-menu{top:calc(100% + 6px);left:0;width:100%}.weekly-schedule-body>.semester-assignment-panel{display:block;margin:0 0 14px}.weekly-schedule-body .semester-assignment-head{display:grid;grid-template-columns:20px minmax(0,1fr);column-gap:9px;padding:9px 14px;border:1px solid #fde68a;border-bottom:0;background:#fffbeb}.weekly-schedule-body .semester-assignment-head:before{content:"!";display:grid;place-items:center;width:20px;height:20px;margin-top:1px;border-radius:50%;background:#f59e0b;color:#fff;font:800 13px/1 Arial,sans-serif}.weekly-schedule-body .semester-assignment-head h3{grid-column:2;margin:0;color:var(--navy);font-size:12px;line-height:1.45}.weekly-schedule-body .semester-assignment-head p{grid-column:2;margin:1px 0 0;color:#64748b;font-size:10px;line-height:1.55}.weekly-schedule-body .semester-assignment-table{display:block;overflow-x:auto}.dark .weekly-schedule-body .semester-assignment-head{border-color:#854d0e;background:#291b08}.weekly-position-field select{width:100%;height:50px;border:1px solid var(--line);border-radius:7px;background:var(--white);padding:0 14px;font:inherit;color:var(--navy)}.weekly-position-field small{color:var(--muted);padding-bottom:12px;line-height:1.45}.setting-form input[readonly]{background:var(--soft);color:var(--muted);cursor:not-allowed}@media(max-width:760px){.weekly-position-field{grid-template-columns:1fr}.weekly-position-field small{padding-bottom:0}.weekly-schedule-body>.weekly-position-field{padding-bottom:10px}.weekly-schedule-body .semester-assignment-head{padding:9px 11px}}@media(max-width:700px){html,body{max-width:100%;overflow-x:hidden}body:not(.auth-mode){background:#f3f6f9}#content{width:100%;padding:14px 12px calc(18px + env(safe-area-inset-bottom))}#content>.hero{align-items:stretch;gap:12px;margin-bottom:14px}.hero>div:first-child{min-width:0}.hero h2{font-size:18px;line-height:1.55}.hero p{font-size:11px;line-height:1.55}.actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:visible;padding:0}.actions:empty{display:none}.actions .btn,.catalog-head .btn,.telegram-recipient-actions .btn{width:100%;min-width:0;min-height:46px;padding:9px 10px;display:flex;align-items:center;justify-content:center;gap:7px;white-space:normal;text-align:center;line-height:1.4}.actions .btn svg{flex:0 0 auto}.btn,.primary{min-height:44px;touch-action:manipulation}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}.stat{min-height:116px;padding:14px}.stat .sicon{right:13px;top:13px;width:32px;height:32px}.stat small{display:block;max-width:calc(100% - 36px);line-height:1.45}.stat strong{font-size:22px;margin-top:12px}.dashboard-lower-grid{gap:12px}.card,.stat,.table-card,.setting-form,.report-catalog{border-radius:13px}.card-head,.card-body{padding:14px}.schedule-row{grid-template-columns:42px minmax(0,1fr);gap:9px}.schedule-row .badge{grid-column:2;justify-self:start}.table-card{border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible}.table-tools{padding:0 0 10px;border:0}.table-tools .search,.search{width:100%;min-height:46px;border-radius:12px;background:var(--card)}.table-wrap{overflow:visible}.table-card table.mobile-table-ready,.table-card table.mobile-table-ready tbody{display:block;width:100%;border:0!important;background:transparent}.table-card table.mobile-table-ready thead{display:none}.table-card table.mobile-table-ready tbody tr{display:block;margin:0 0 10px;border:1px solid var(--line);border-radius:13px;background:var(--card);box-shadow:0 5px 18px #0f172a0d;overflow:hidden}.table-card table.mobile-table-ready tbody td{min-height:45px;display:grid;grid-template-columns:minmax(105px,38%) minmax(0,1fr);align-items:center;gap:10px;width:100%;padding:10px 12px!important;border:0!important;border-bottom:1px solid var(--line)!important;background:transparent!important;text-align:right!important;overflow-wrap:anywhere}.table-card table.mobile-table-ready tbody td:last-child{border-bottom:0!important}.table-card table.mobile-table-ready tbody td:before{content:attr(data-label);font-size:10px;font-weight:700;line-height:1.4;color:var(--muted);text-align:left}.table-card table.mobile-table-ready tbody td.empty{display:block;padding:28px 16px!important;text-align:center!important}.table-card table.mobile-table-ready tbody td.empty:before{display:none}.table-card .name-cell{justify-content:flex-end;text-align:left}.table-card .name-cell>div{min-width:0}.table-card .name-cell strong,.table-card .name-cell small{overflow-wrap:anywhere}.table-card .badge{justify-self:end}.icon-btn{min-width:40px;min-height:40px;margin:2px;padding:8px;border-radius:10px}.settings-grid{display:block}.setting-nav{margin-bottom:12px;padding:5px;border:1px solid var(--line);border-radius:12px;background:var(--card)}.setting-nav div{flex:0 0 auto;border-radius:9px}.setting-form,.setting-form .form-grid,.profile-form,.telegram-recipient-form{padding:14px}.form-grid,.profile-form{grid-template-columns:1fr;gap:12px}.form-grid label,.profile-form label,label{min-width:0}input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{width:100%;min-width:0;min-height:46px;border-radius:9px}textarea{min-height:110px}.catalog-head,.academic-year-head,.profile-panel-head{align-items:flex-start;flex-direction:column;gap:10px;padding:14px}.catalog-head .btn{align-self:stretch}.report-catalog{padding:14px 10px 18px;gap:15px}.report-section h3{padding:0 4px;margin-bottom:8px;font-size:13px}.report-list-item{min-height:0!important;height:auto!important;padding:14px!important;border-radius:11px!important}.report-list-copy strong{font-size:14px}.report-open-icon{width:38px;height:38px;flex-basis:38px;border-radius:10px;background:#f1f5f9}.dark .report-open-icon{background:#1e293b}.report-catalog .report-period-panel{padding:14px;border-radius:12px}.report-period-fields,.report-dimension-fields,.schedule-dimension-bar{grid-template-columns:1fr!important;gap:9px!important}.report-period-fields select,.report-dimension-fields select,.schedule-dimension-bar select{width:100%!important;min-width:0!important;height:46px!important}.academic-columns,.request-detail{grid-template-columns:1fr}.academic-section{border-radius:13px}.academic-progress{width:min(130px,45vw)}.active-academic-year{margin:12px;padding:13px;align-items:flex-start;flex-direction:column}.academic-year-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.academic-year-actions .btn{height:auto;min-height:42px}.telegram-recipient-row{grid-template-columns:1fr;gap:8px;padding:13px}.telegram-recipient-row .btn{grid-column:auto;width:100%}.telegram-recipient-actions{display:grid;grid-template-columns:1fr;gap:8px}.profile-grid{gap:12px}.profile-summary{padding:20px 14px;border-radius:13px}.profile-panel{border-radius:13px}.security-action{padding:14px}.modal{align-items:end;padding:0;background:#0f172a94}.modal-card{width:100%;max-width:none;max-height:calc(100dvh - env(safe-area-inset-top) - 8px);border-radius:18px 18px 0 0!important;border-bottom:0;box-shadow:0 -18px 55px #0f172a3d}.modal-head{min-height:66px;padding:14px 16px;position:relative}.modal-head:before{content:"";position:absolute;top:7px;left:50%;width:42px;height:4px;border-radius:999px;background:#cbd5e1;transform:translate(-50%)}.modal-head>button{width:40px;height:40px;border-radius:11px}.modal-card .modal-fields{padding:14px 14px 18px;scrollbar-gutter:auto}.modal-actions{grid-template-columns:1fr 1fr;padding:11px 14px calc(11px + env(safe-area-inset-bottom));background:var(--card)}.modal-actions button{min-height:46px;border-radius:10px}.weekly-modal .modal-card{height:calc(100dvh - env(safe-area-inset-top) - 8px)}.weekly-modal .weekly-schedule-body{padding:14px}.weekly-presets{display:grid;grid-template-columns:1fr 1fr;gap:8px}.weekly-presets .btn{width:100%;min-height:45px;white-space:normal}.weekly-editor{overflow-x:auto!important;-webkit-overflow-scrolling:touch}.weekly-editor table{min-width:1040px}.weekly-preview{overflow-x:auto;-webkit-overflow-scrolling:touch}.room-location-alert{border-radius:10px}.notification-menu{left:10px;right:10px;top:calc(62px + env(safe-area-inset-top));width:auto;max-height:calc(100dvh - 82px - env(safe-area-inset-top));border-radius:14px}.notification-list{max-height:calc(100dvh - 190px)}.profile-menu{left:12px;right:12px;width:auto;max-height:calc(100dvh - 82px - env(safe-area-inset-top));overflow-y:auto}.toast{left:12px;right:12px;bottom:calc(82px + env(safe-area-inset-bottom));width:auto;padding:12px 14px;border-radius:12px;text-align:center;transform:translateY(120px)}.toast.show{transform:none}}@media(max-width:380px){.actions,.academic-year-actions,.weekly-presets,.stats{grid-template-columns:1fr}.header-title h1{max-width:30vw}}@media(display-mode:standalone)and (max-width:900px){#content{padding-bottom:calc(22px + env(safe-area-inset-bottom))}.modal-card{max-height:calc(100dvh - env(safe-area-inset-top))}}.icon-btn{width:38px;height:38px;min-width:38px;padding:0;display:inline-grid;place-items:center;vertical-align:middle;border-radius:9px}.icon-btn svg{width:17px;height:17px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}td[data-label=Action],td[data-label=ACTION],td[data-label=សកម្មភាព]{white-space:nowrap}@media(max-width:900px){body:not(.auth-mode){padding-bottom:calc(88px + env(safe-area-inset-bottom))!important}#content{padding-bottom:calc(104px + env(safe-area-inset-bottom))!important}.mobile-bottom-nav{position:fixed!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;min-height:72px!important;margin:0!important;padding:6px 8px calc(6px + env(safe-area-inset-bottom))!important;border-width:1px 0 0!important;border-radius:0!important;z-index:80!important;box-shadow:0 -10px 30px #0f172a1f!important;transform:translateZ(0);-webkit-transform:translateZ(0)}.mobile-bottom-nav button{min-width:0;min-height:58px;padding:5px 2px!important}.mobile-bottom-nav button span{display:grid;place-items:center;min-height:24px}.mobile-bottom-nav button em{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.modal{z-index:100!important}.modal-actions{position:sticky;bottom:0;z-index:6;padding-bottom:calc(11px + env(safe-area-inset-bottom))!important;box-shadow:0 -8px 22px #0f172a14}.settings-save-row{position:sticky;bottom:calc(78px + env(safe-area-inset-bottom));z-index:12;padding:10px 0 2px!important;background:var(--card)}.settings-save-row .primary{width:100%;min-height:48px}}@media(max-width:700px){.table-card table.mobile-table-ready tbody td[data-label=Action],.table-card table.mobile-table-ready tbody td[data-label=ACTION],.table-card table.mobile-table-ready tbody td[data-label=សកម្មភាព]{display:flex!important;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:7px;text-align:right!important}.table-card table.mobile-table-ready tbody td[data-label=Action]:before,.table-card table.mobile-table-ready tbody td[data-label=ACTION]:before,.table-card table.mobile-table-ready tbody td[data-label=សកម្មភាព]:before{margin-right:auto;flex:1 1 auto}.table-card .icon-btn{flex:0 0 40px;width:40px;height:40px;min-width:40px;min-height:40px;margin:0}}@media(display-mode:standalone)and (max-width:900px){body:not(.auth-mode){padding-bottom:calc(88px + env(safe-area-inset-bottom))!important}#content{padding-bottom:calc(104px + env(safe-area-inset-bottom))!important}}@media(max-width:700px){.table-card table.mobile-table-ready tbody td:has(>.icon-btn){display:flex!important;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:7px;text-align:right!important;white-space:nowrap}.table-card table.mobile-table-ready tbody td:has(>.icon-btn):before{margin-right:auto;flex:1 1 auto}}@media(max-width:900px){.modal{inset:0 0 calc(72px + env(safe-area-inset-bottom)) 0!important;height:auto!important;padding:0!important;align-items:end!important}.modal-card{width:100%!important;max-width:none!important;max-height:100%!important;border-radius:18px 18px 0 0!important}.weekly-modal .modal-card{height:100%!important;max-height:100%!important}.modal-card>#modalForm{min-height:0!important;overflow:hidden!important}.modal-card .modal-fields{padding-bottom:20px!important}.modal-actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:stretch!important;gap:8px!important;position:sticky!important;bottom:0!important;z-index:8!important;width:100%!important;padding:10px 14px!important}.modal-actions>button{width:100%!important;min-width:0!important;max-width:none!important;min-height:48px!important;height:auto!important;margin:0!important;padding:10px 8px!important;white-space:normal!important;line-height:1.45!important}.modal-actions:has(.room-location-alert){grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}.modal-actions:has(.room-location-alert) .room-location-alert{grid-column:1/-1!important}}@media(max-width:900px){.modal-actions>button{grid-column:auto!important;grid-row:1!important}.modal-actions>.primary,.modal-actions>button[type=submit]{grid-column:1!important;order:1!important}.modal-actions>.modal-cancel{grid-column:2!important;order:2!important}.modal-actions:has(.room-location-alert)>button{grid-row:2!important}.mobile-nav-profile{width:28px!important;height:28px!important;min-height:28px!important;border-radius:50%;overflow:hidden;background:#ccfbf1;color:#0f766e}.mobile-nav-avatar{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}.mobile-nav-initials{display:grid;width:100%;height:100%;place-items:center;font-size:9px;font-weight:800}}@media(max-width:900px){.header-actions .profile-wrap{display:block!important;flex:0 0 auto}.header-actions .profile-trigger{display:flex!important;width:42px!important;min-width:42px!important;height:42px!important;padding:4px!important}.header-actions .profile-trigger .avatar,.header-actions .profile-trigger .avatar.amber{display:grid!important;width:32px!important;height:32px!important;min-width:32px!important;overflow:hidden!important}.header-actions .profile-trigger .avatar img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important}}#teacherTable>.table-card{overflow:visible}#teacherTable .table-wrap{overflow:auto;min-height:220px}#teacherTable table{min-width:2100px}#teacherTable th,#teacherTable td{border:1px solid var(--line);vertical-align:middle}#teacherTable th{white-space:normal;text-align:center;line-height:1.55;background:#eef4fb;color:#334155}#teacherTable td{white-space:normal}#teacherTable td:first-child,#teacherTable td:nth-child(2),#teacherTable td:nth-child(4),#teacherTable td:nth-last-child(2),#teacherTable td:last-child{text-align:center}.teacher-action-menu{position:relative;display:inline-flex;justify-content:center}.teacher-action-trigger{width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--line);border-radius:8px;background:var(--card);color:#475569}.teacher-action-trigger:hover,.teacher-action-trigger[aria-expanded=true]{border-color:#5eead4;background:#f0fdfa;color:var(--teal)}.teacher-action-trigger svg,.teacher-action-popover svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.teacher-action-popover{position:absolute;z-index:40;top:44px;right:0;width:245px;padding:6px;border:1px solid var(--line);border-radius:10px;background:var(--card);box-shadow:0 18px 45px #0f172a2e;text-align:left}.teacher-action-popover button{width:100%;min-height:40px;padding:8px 10px;display:flex;align-items:center;gap:10px;border-radius:7px;background:transparent;color:#334155;text-align:left;font-size:12px}.teacher-action-popover button:hover{background:#f0fdfa;color:var(--teal-dark)}.teacher-action-popover .teacher-action-delete{margin-top:5px;border-top:1px solid var(--line);border-radius:0 0 7px 7px;color:#e11d48}.teacher-action-popover .teacher-action-delete:hover{background:#fff1f2;color:#be123c}.teacher-related-content{padding:18px;overflow:auto}.teacher-related-content>.table-card{box-shadow:none}.teacher-information-grid{display:grid;grid-template-columns:1fr 1fr;gap:1px;border:1px solid var(--line);background:var(--line)}.teacher-information-grid>div{min-height:70px;padding:13px 15px;background:var(--card)}.teacher-information-grid small{display:block;margin-bottom:7px;color:var(--muted);font-size:10px}.teacher-information-grid strong{font-size:12px;line-height:1.6}.teacher-view-modal .modal-card{width:min(1050px,100%)}.dark .teacher-action-popover{background:#0f172a;border-color:#334155}.dark .teacher-action-popover button{color:#cbd5e1}.dark .teacher-action-popover button:hover{background:#134e4a;color:#99f6e4}.dark #teacherTable th{background:#111c2f;color:#cbd5e1}@media(max-width:900px){#teacherTable table{min-width:0}#teacherTable>.table-card{overflow:visible}#teacherTable .table-wrap{overflow:visible;min-height:0}.teacher-action-menu{width:100%;justify-content:flex-end}.teacher-action-popover{position:fixed;left:14px;right:14px;top:auto;bottom:calc(88px + env(safe-area-inset-bottom));width:auto;padding:8px;border-radius:14px}.teacher-action-popover button{min-height:48px;font-size:13px}.teacher-information-grid{grid-template-columns:1fr}.teacher-related-content{padding:12px}}@media(min-width:901px){:is(.teacher-crud-modal,.crud-modal){inset:72px 0 0 255px;padding:0;place-items:stretch;background:#0f172a47;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px)}body:has(.sidebar-collapsed) :is(.teacher-crud-modal,.crud-modal){left:76px}:is(.teacher-crud-modal,.crud-modal) .modal-card{width:100%;max-width:none;height:100%;max-height:none;border:0;border-radius:0;box-shadow:none}:is(.teacher-crud-modal,.crud-modal) .modal-head{min-height:72px;padding:15px 26px}:is(.teacher-crud-modal,.crud-modal) .modal-fields{grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;gap:16px 18px;padding:22px 26px 28px}:is(.teacher-crud-modal,.crud-modal) .modal-fields input,:is(.teacher-crud-modal,.crud-modal) .modal-fields select{width:100%;height:44px}:is(.teacher-crud-modal,.crud-modal) .modal-actions{padding:14px 26px}}@media(min-width:901px)and (max-width:1180px){:is(.teacher-crud-modal,.crud-modal) .modal-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}#teacherTable .teacher-register-table{min-width:2500px;border-collapse:collapse;table-layout:auto}#teacherTable .teacher-register-table thead th{border:1px solid #4f6483!important;background:#88a8dc!important;color:#13243c!important;padding:9px 8px!important;text-align:center!important;vertical-align:middle!important;font-size:11px!important;font-weight:700;line-height:1.65;white-space:normal}#teacherTable .teacher-register-table thead tr:first-child th{height:48px}#teacherTable .teacher-register-table thead tr:nth-child(2) th{height:37px}#teacherTable .teacher-register-table tbody td{border:1px solid #cbd5e1;padding:10px 9px;vertical-align:middle}#teacherTable .teacher-register-table .register-code,#teacherTable .teacher-register-table .register-center,#teacherTable .teacher-register-table .register-action{text-align:center}#teacherTable .teacher-register-table .register-name{font-weight:600;min-width:145px}#teacherTable .teacher-register-table .register-name-latin{min-width:145px}#teacherTable .teacher-register-table .register-action{min-width:72px}.dark #teacherTable .teacher-register-table thead th{background:#29466f!important;color:#f8fafc!important;border-color:#64748b!important}@media(min-width:901px){:is(.teacher-crud-modal,.crud-modal){padding:12px 16px 16px;background:#0f172a85;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}:is(.teacher-crud-modal,.crud-modal) .modal-card{height:100%;max-height:100%;border:1px solid var(--line);border-radius:7px;box-shadow:0 22px 65px #0f172a47}}@media(max-width:900px){#teacherTable .teacher-register-table{min-width:0;table-layout:auto}#teacherTable .teacher-register-table thead{display:none}}#teacherTable .teacher-register-table{min-width:2900px}.register-checkbox{display:inline-grid;place-items:center;width:24px;height:24px;margin:auto;cursor:default}.register-checkbox input{position:absolute;opacity:0;pointer-events:none}.register-checkbox span{width:18px;height:18px;display:grid;place-items:center;border:1.5px solid #64748b;border-radius:3px;background:#fff}.register-checkbox input:checked+span{border-color:#0f9b8e;background:#0f9b8e}.register-checkbox input:checked+span:after{content:"✓";color:#fff;font:700 13px/1 Arial,sans-serif}.modal-checkbox-field{min-height:44px;display:flex!important;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:var(--card);cursor:pointer}.modal-checkbox-field>input{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important}.modal-checkbox-control{width:20px!important;height:20px!important;flex:0 0 20px;display:grid!important;place-items:center;border:1.5px solid #94a3b8;border-radius:4px;background:#fff}.modal-checkbox-field>input:checked+.modal-checkbox-control{border-color:var(--teal);background:var(--teal)}.modal-checkbox-field>input:checked+.modal-checkbox-control:after{content:"✓";color:#fff;font:700 14px/1 Arial,sans-serif}.modal-checkbox-field>span:last-child{margin:0!important;color:var(--text);font-weight:600}.dark .register-checkbox span,.dark .modal-checkbox-control{background:#0f172a;border-color:#64748b}@media(min-width:901px){:is(.teacher-crud-modal,.crud-modal) .modal-fields>label[data-field=appointment_reference_no]{grid-column:1/-1}:is(.teacher-crud-modal,.crud-modal) .modal-fields>label[data-field=is_royal_decree],:is(.teacher-crud-modal,.crud-modal) .modal-fields>label[data-field=is_sub_decree],:is(.teacher-crud-modal,.crud-modal) .modal-fields>label[data-field=is_proclamation]{width:100%;min-width:0}}@media(min-width:901px)and (max-width:1180px){.teacher-crud-modal .modal-fields{grid-template-columns:repeat(3,minmax(0,1fr))}}.schedule-data-table{width:100%;border:1px solid #cbd5e1;border-collapse:collapse;background:var(--card);table-layout:auto}.schedule-data-table thead th{height:50px;padding:11px 12px;border:1px solid #cbd5e1;background:#eef3f9;color:#41536d;text-align:center;vertical-align:middle;font-size:10px;font-weight:700;line-height:1.55;white-space:normal}.schedule-data-table tbody td{padding:12px;border:1px solid #d7e0eb;vertical-align:middle;background:var(--card)}.schedule-data-table tbody tr:hover td{background:#f8fafc}.schedule-data-table th:first-child,.schedule-data-table td:first-child,.schedule-data-table th:last-child,.schedule-data-table td:last-child{text-align:center}.dark .schedule-data-table{border-color:#475569}.dark .schedule-data-table thead th{background:#1e293b;color:#e2e8f0;border-color:#475569}.dark .schedule-data-table tbody td{border-color:#334155;background:#0f172a}.dark .schedule-data-table tbody tr:hover td{background:#111c2f}#teacherTable .teacher-register-table{min-width:1450px}#teacherTable .teacher-register-table thead tr:first-child th{height:50px}#teacherTable .teacher-register-table .register-action{min-width:76px}@media(max-width:900px){#teacherTable .teacher-register-table{min-width:0}}@media(min-width:901px){#teacherTable .table-wrap{overflow:visible}#teacherTable .teacher-register-table{width:100%;min-width:0;table-layout:fixed}#teacherTable .teacher-register-table th,#teacherTable .teacher-register-table td{padding:9px 6px;white-space:normal;overflow-wrap:anywhere;word-break:normal}#teacherTable .teacher-register-table .register-name{min-width:0}#teacherTable .teacher-register-table th:nth-child(1),#teacherTable .teacher-register-table td:nth-child(1){width:4%}#teacherTable .teacher-register-table th:nth-child(2),#teacherTable .teacher-register-table td:nth-child(2){width:10%}#teacherTable .teacher-register-table th:nth-child(3),#teacherTable .teacher-register-table td:nth-child(3){width:13%}#teacherTable .teacher-register-table th:nth-child(4),#teacherTable .teacher-register-table td:nth-child(4){width:5%}#teacherTable .teacher-register-table th:nth-child(5),#teacherTable .teacher-register-table td:nth-child(5){width:10%}#teacherTable .teacher-register-table th:nth-child(6),#teacherTable .teacher-register-table td:nth-child(6){width:9%}#teacherTable .teacher-register-table th:nth-child(7),#teacherTable .teacher-register-table td:nth-child(7){width:10%}#teacherTable .teacher-register-table th:nth-child(8),#teacherTable .teacher-register-table td:nth-child(8){width:9%}#teacherTable .teacher-register-table th:nth-child(9),#teacherTable .teacher-register-table td:nth-child(9){width:8%}#teacherTable .teacher-register-table th:nth-child(10),#teacherTable .teacher-register-table td:nth-child(10){width:13%}#teacherTable .teacher-register-table th:nth-child(11),#teacherTable .teacher-register-table td:nth-child(11){width:9%}}.table-card thead th,.schedule-data-table thead th,.weekly-editor thead th{background:#88a8dc!important;color:#13243c!important;border-color:#4f6483!important;text-align:center}.dark .table-card thead th,.dark .schedule-data-table thead th,.dark .weekly-editor thead th{background:#29466f!important;color:#f8fafc!important;border-color:#64748b!important}@media(min-width:901px){.teacher-action-popover.open-up{top:auto;bottom:44px}}.payroll-manager-modal .modal-card{width:min(1500px,calc(100vw - 48px))}.payroll-manager-modal .modal-form{display:block}.payroll-manager-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.payroll-manager-head>div:last-child,.payroll-run-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.payroll-manager-head p{margin:0;color:var(--muted)}.payroll-manager-modal .table-wrap{overflow:auto;max-height:58vh}.payroll-manager-modal table{min-width:1040px}.payroll-manager-modal td small{display:block;color:var(--muted);margin-top:3px}.payroll-status-locked{background:#dcfce7;color:#166534}.payroll-status-approved{background:#dbeafe;color:#1d4ed8}.payroll-status-reviewed{background:#fef3c7;color:#92400e}@media(max-width:700px){.payroll-manager-modal .modal-card{width:100vw}.payroll-manager-head{align-items:stretch;flex-direction:column}.payroll-manager-head>div:last-child{display:grid;grid-template-columns:1fr 1fr}.payroll-manager-head .btn{width:100%}}.payroll-run-settings-card{margin-top:18px}.payroll-run-settings-card .catalog-head{align-items:center}.payroll-settings-note{display:flex;align-items:center;gap:14px;padding:16px 20px;border-top:1px solid var(--line);background:color-mix(in srgb,var(--teal) 5%,var(--card))}.payroll-settings-note .panel-icon{flex:0 0 44px}.payroll-settings-note div{display:grid;gap:3px}.payroll-settings-note strong{font-size:14px;color:var(--text)}.payroll-settings-note small{color:var(--muted);line-height:1.55}.monthly-teaching-report-section .report-list-item{height:100%}@media(max-width:700px){.payroll-run-settings-card .catalog-head{align-items:stretch}.payroll-run-settings-card .catalog-head>.btn{width:100%;justify-content:center}.payroll-settings-note{align-items:flex-start;padding:14px}}.payroll-manager-modal #modalForm{display:flex!important;flex:1 1 auto;min-height:0;flex-direction:column;overflow:hidden!important;padding:0}.payroll-manager-modal .payroll-manager-head{flex:0 0 auto;margin:0;padding:16px 22px;border-bottom:1px solid var(--line);background:var(--card)}.payroll-manager-modal .payroll-manager-head>div:last-child{margin-left:auto}.payroll-manager-modal .table-wrap{flex:1 1 auto;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.payroll-manager-modal .modal-actions{flex:0 0 auto;margin:0}@media(min-width:901px){.payroll-manager-modal .modal-card{width:100%!important;max-width:none!important;height:100%!important;max-height:100%!important}}@media(max-width:900px){.payroll-manager-modal .payroll-manager-head{align-items:stretch;flex-direction:column;padding:14px}.payroll-manager-modal .payroll-manager-head>div:last-child{width:100%;margin-left:0;display:grid;grid-template-columns:1fr 1fr}.payroll-manager-modal .payroll-manager-head .btn{width:100%;min-width:0}.payroll-manager-modal table{min-width:920px}}@media(max-width:900px){.setting-form .settings-save-row{position:static!important;bottom:auto!important;z-index:auto!important;grid-column:1/-1!important;width:100%;margin:2px 0 0!important;padding:4px 0 0!important;background:transparent!important;box-shadow:none!important}.setting-form .settings-save-row .primary{width:100%!important;min-height:48px}.schedule-table-card{width:100%;max-width:100%;min-width:0;margin-top:12px;border:0!important;background:transparent!important;box-shadow:none!important;overflow:hidden!important}.schedule-table-card .table-wrap{width:100%;max-width:100%;min-width:0;overflow:visible!important}.schedule-table-card .schedule-data-table,.schedule-table-card .schedule-data-table tbody,.schedule-table-card .schedule-data-table tbody tr{width:100%!important;max-width:100%!important;min-width:0!important}.schedule-table-card .schedule-data-table tbody td{min-width:0!important;max-width:100%;overflow-wrap:anywhere}.schedule-table-card .schedule-data-table tbody tr{padding:0 0 4px}.schedule-table-card .schedule-data-table tbody td:first-child{display:none!important}.schedule-table-card .schedule-data-table tbody td:nth-child(2){min-height:58px;background:var(--soft)!important;font-weight:600;text-align:right!important}.schedule-table-card .schedule-data-table tbody td:nth-child(2) strong{display:inline-block;margin-top:3px;color:var(--teal)}.schedule-table-card .schedule-data-table tbody td:last-child{display:flex!important;align-items:center;justify-content:flex-end;gap:8px}.schedule-table-card .schedule-data-table tbody td:last-child:before{margin-right:auto}.schedule-table-card .schedule-data-table .icon-btn{width:42px;height:42px;margin:0;display:inline-grid;place-items:center}}@media(max-width:900px){.payroll-manager-modal #modalForm>.table-wrap{overflow-x:hidden!important;overflow-y:auto!important;padding:12px 12px 4px;scrollbar-gutter:auto!important;background:var(--bg)}.payroll-manager-modal #modalForm>.table-wrap>.table-card{border:0!important;background:transparent!important;box-shadow:none!important}.payroll-manager-modal #modalForm>.table-wrap>.table-card>.table-wrap{overflow:visible!important}.payroll-manager-modal table.mobile-table-ready{width:100%!important;min-width:0!important}.payroll-manager-modal table.mobile-table-ready tbody tr{margin-bottom:12px}.payroll-manager-modal table.mobile-table-ready tbody td:first-child{display:none!important}.payroll-manager-modal table.mobile-table-ready tbody td:nth-child(2){background:var(--soft)!important;font-weight:700}.payroll-manager-modal table.mobile-table-ready tbody td:last-child{display:flex!important;align-items:center;gap:8px}.payroll-manager-modal table.mobile-table-ready tbody td:last-child:before{margin-right:auto}.payroll-manager-modal .payroll-run-actions{flex:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.payroll-manager-modal .payroll-run-actions .btn{width:100%;min-height:42px;padding:8px}.payroll-manager-modal .payroll-run-actions .badge{grid-column:1/-1;justify-self:end}}.teacher-table-tools{align-items:center}.teacher-table-tools .search{flex:1;min-width:220px}.teacher-position-filter{width:min(320px,100%);min-height:46px}@media(max-width:720px){.teacher-table-tools{display:grid;grid-template-columns:1fr}.teacher-table-tools .search,.teacher-position-filter{width:100%;min-width:0}}.badge.status-badge{display:inline-flex;align-items:center;justify-content:center;min-width:82px;font-weight:700;white-space:nowrap}.badge.attendance-present,.badge.checkout-normal{background:#dcfce7;color:#15803d}.badge.attendance-late,.badge.checkout-early{background:#fef3c7;color:#b45309}.badge.attendance-absent,.badge.checkout-missing{background:#fee2e2;color:#be123c}.badge.attendance-leave,.badge.checkout-late{background:#dbeafe;color:#1d4ed8}.badge.attendance-unknown{background:#e2e8f0;color:#475569}.dark .badge.attendance-present,.dark .badge.checkout-normal{background:#14532d;color:#bbf7d0}.dark .badge.attendance-late,.dark .badge.checkout-early{background:#78350f;color:#fde68a}.dark .badge.attendance-absent,.dark .badge.checkout-missing{background:#7f1d1d;color:#fecaca}.dark .badge.attendance-leave,.dark .badge.checkout-late{background:#1e3a8a;color:#bfdbfe}.dark .badge.attendance-unknown{background:#334155;color:#e2e8f0}.analytics-overview{margin-top:-8px}.analytics-overview>.stats{margin-top:0}.analytics-overview>.table-card{margin-top:4px}
