.public-link{display:flex;justify-content:space-between;margin-top:16px;padding:12px 2px;color:var(--navy);font-weight:800;text-decoration:none}.admin-toolbar{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-bottom:20px}.admin-toolbar .search{max-width:320px}.data-table{width:100%;border-collapse:collapse}.data-table th{text-align:left;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.7px;padding:12px;border-bottom:1px solid var(--line)}.data-table td{padding:14px 12px;border-bottom:1px solid #eef0f4;vertical-align:middle}.data-table td small{display:block;color:var(--muted)}.row-actions{display:flex;gap:6px}.mini-btn{border:1px solid var(--line);background:white;border-radius:7px;padding:7px 9px;color:var(--navy);font-size:12px}.mini-btn.danger{color:var(--red)}.role-badge{display:inline-block;padding:5px 9px;border-radius:20px;background:#edf0f8;color:#3c477d;font-size:11px;font-weight:800}.admin-form{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.admin-form .wide{grid-column:1/-1}.admin-form h3{grid-column:1/-1}.modal-backdrop{position:fixed;inset:0;background:#090d2c99;display:grid;place-items:center;z-index:20;padding:20px}.modal{background:white;border-radius:16px;padding:26px;width:min(620px,100%);max-height:90vh;overflow:auto;box-shadow:0 30px 80px #0005}.modal-head{display:flex;justify-content:space-between;align-items:center}.modal-head button{border:0;background:none;font-size:24px}.qr-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.qr-card{text-align:center}.qr-card img{width:180px;max-width:100%;aspect-ratio:1;background:white;border:10px solid white}.qr-card code{display:block;font-size:10px;word-break:break-all;color:var(--muted);margin:8px 0}.permission-note{padding:12px 15px;background:#fff7e9;border-left:3px solid #e9a42a;border-radius:8px;color:#765b29;margin-bottom:18px}@media(max-width:760px){.data-wrap{overflow:auto}.data-table{min-width:720px}.qr-grid{grid-template-columns:1fr}.admin-form{grid-template-columns:1fr}.admin-form .wide{grid-column:auto}.admin-toolbar{align-items:stretch;flex-direction:column}.admin-toolbar .search{max-width:none}}

.password-button{border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.08);color:#fff;border-radius:10px;width:36px;height:36px;cursor:pointer;font-size:18px}.password-button:hover{background:rgba(255,255,255,.16)}

.telegram-help{margin-top:16px;padding:16px;border:1px solid #dce3f2;border-left:4px solid #229ed9;border-radius:16px;background:linear-gradient(135deg,#f7fbff,#eef3ff);display:grid;grid-template-columns:1fr 116px;gap:14px;align-items:center;overflow:hidden}.telegram-copy{display:flex;gap:12px;min-width:0}.telegram-copy>div{display:grid;gap:4px}.telegram-copy small{color:#74809a}.telegram-copy strong{font-size:15px;color:#101b49}.telegram-copy span{font-size:12px;color:#68738a}.telegram-icon{display:grid!important;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:#229ed9;color:#fff!important;font-size:19px!important;box-shadow:0 8px 20px rgba(34,158,217,.25)}.telegram-direct{display:flex;align-items:center;justify-content:space-between;margin-top:7px;padding:9px 11px;border-radius:10px;background:#172565;color:#fff;text-decoration:none;font-size:12px;font-weight:700}.telegram-direct:hover{background:#229ed9}.telegram-copy code{font-size:10px;color:#31508b;overflow-wrap:anywhere}.telegram-qr-link{display:block;border-radius:13px;overflow:hidden;box-shadow:0 8px 22px rgba(18,31,78,.15);line-height:0;transition:.2s transform}.telegram-qr-link:hover{transform:translateY(-2px)}.telegram-qr-link img{display:block;width:100%;height:164px;object-fit:cover;object-position:center}.telegram-help+.contact{display:none}@media(max-width:520px){.telegram-help{grid-template-columns:1fr}.telegram-qr-link{width:150px;justify-self:center}.telegram-qr-link img{height:220px}}

/* Crop the supplied poster to its central QR so it remains easy to scan. */
.telegram-qr-link{position:relative;width:116px;height:116px;border:7px solid #fff;border-radius:15px;background:#fff}
.telegram-qr-link img{position:absolute;width:226px!important;max-width:none;height:auto!important;left:50%;top:-177px;transform:translateX(-50%);object-fit:initial!important}
@media(max-width:520px){.telegram-qr-link{width:150px;height:150px}.telegram-qr-link img{width:292px!important;top:-228px}}

.support-phone{font-size:13px;font-weight:800;color:#172565;text-decoration:none;margin-top:3px}.support-phone:hover{color:#229ed9}.telegram-qr-link.live-telegram-qr{position:relative;width:126px;height:auto;padding:7px;border:1px solid #d9e2f2;border-radius:14px;overflow:visible;text-align:center;background:#fff;box-sizing:border-box}.telegram-qr-link.live-telegram-qr img.support-live-qr{position:static!important;display:block;width:110px!important;height:110px!important;max-width:100%!important;transform:none!important;object-fit:contain!important}.telegram-qr-link.live-telegram-qr small{display:block;padding:5px 1px 1px;color:#52617d;font-size:9px;line-height:1.2;font-weight:700}.telegram-help{grid-template-columns:minmax(0,1fr) 126px}@media(max-width:520px){.telegram-qr-link.live-telegram-qr{width:174px}.telegram-qr-link.live-telegram-qr img.support-live-qr{width:158px!important;height:158px!important}.telegram-help{grid-template-columns:1fr}}

.session-countdown{margin:0 20px 10px;padding:9px 11px;border:1px solid rgba(255,255,255,.16);border-radius:10px;background:rgba(255,255,255,.07);color:#dbe2ff;display:flex;align-items:center;justify-content:space-between;font-size:10px}.session-countdown:empty{display:none}.session-countdown strong{font-size:12px;color:#fff;letter-spacing:.04em}.session-countdown.warning{border-color:#ffbb5c;background:rgba(255,170,45,.16)}.session-countdown.warning strong{color:#ffd18e}

.staff-brand-company{display:grid!important;gap:2px;color:#d9a52d!important;line-height:1.25}.staff-brand-company strong{font-family:"Kantumruy Pro","Khmer UI",sans-serif;font-size:20px;font-weight:800;white-space:nowrap}.staff-brand-company small{font-family:Georgia,serif!important;font-size:14px!important;letter-spacing:.03em!important;color:#d9a52d!important}.mobile-brand .staff-brand-company strong{font-size:14px}.mobile-brand .staff-brand-company small{font-size:10px!important}@media(max-width:560px){.staff-brand-company strong{font-size:13px}.staff-brand-company small{font-size:9px!important}}
.staff-brand-company strong{font-family:"Khmer OS Muol Light","Khmer OS Muol","Khmer UI",sans-serif!important;font-weight:400!important}
.sidebar .staff-brand-company{min-width:0;gap:3px}.sidebar .staff-brand-company strong{font-size:9px;line-height:1.35;white-space:nowrap}.sidebar .staff-brand-company small{font-size:8px!important;white-space:nowrap}.sidebar>.brand{gap:10px;align-items:center}.sidebar>.brand .brand-logo{flex:0 0 auto}
@font-face{font-family:"Khmer OS Muol Light";src:url('KhmerOSMuolLight.ttf') format('truetype');font-display:swap}
.brand .staff-brand-company,.brand .staff-brand-company strong,.brand .staff-brand-company small,.mobile-brand .staff-brand-company,.mobile-brand .staff-brand-company strong,.mobile-brand .staff-brand-company small{text-decoration:none!important}
.modern-icon,.header-actions .icon,#logout,#change-password,#menu{--icon-stroke:currentColor}.modern-icon svg,.header-actions .icon svg,#logout svg,#change-password svg,#menu svg{width:18px;height:18px;fill:none;stroke:var(--icon-stroke);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.nav-icon{display:grid;place-items:center;width:30px;height:30px;margin-right:7px;border:1px solid #ffffff18;border-radius:9px;background:linear-gradient(145deg,#ffffff16,#00000018);box-shadow:inset 0 1px 0 #ffffff18,0 5px 12px #0002;transition:.2s}.nav:hover .nav-icon,.nav.active .nav-icon{color:#fff;background:linear-gradient(145deg,#e82749,#b70928);border-color:#ff728933;box-shadow:inset 0 1px 0 #ffffff55,0 6px 14px #d10f3640}.header-actions .icon{display:grid;place-items:center;background:linear-gradient(145deg,#fff,#edf0f8);box-shadow:inset 0 1px 0 #fff,0 6px 14px #10204b12}.header-actions .icon:hover{color:#d7193f;transform:translateY(-1px)}#logout,#change-password{display:grid;place-items:center}#logout svg,#change-password svg{width:17px;height:17px}.nav{align-items:center}#menu svg{width:21px;height:21px}
.top-account-action{display:flex!important;align-items:center;gap:7px;height:40px;padding:0 12px;border:1px solid #dce1eb;border-radius:10px;background:linear-gradient(145deg,#fff,#edf0f8);color:#152044;box-shadow:inset 0 1px 0 #fff,0 6px 14px #10204b12;cursor:pointer;font-size:11px;font-weight:800}.top-account-action svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.top-account-action:hover{transform:translateY(-1px);border-color:#adb8cf}.top-account-action.logout-action{color:#c30d2c;background:linear-gradient(145deg,#fff,#fff1f3)}.sidebar-foot>#logout,.sidebar-foot>#change-password{display:none}.login-card label{position:relative}.login-card .input-icon{position:absolute;right:13px;bottom:14px;display:grid;color:#66728e}.login-card .input-icon svg,.login-card .primary svg,.public-link svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.login-card #email,.login-card #password{padding-right:44px}.login-card .primary{justify-content:flex-start;gap:10px}.login-card .primary>span:last-child{margin-left:auto}.public-link{gap:9px;align-items:center}.public-link>span:last-child{margin-left:auto}.complaint-form label{position:relative}.complaint-form .field-icon{display:inline-grid;vertical-align:middle;margin-right:6px;color:#5d6c90}.complaint-form .field-icon svg,.complaint-form button[type=submit] svg,.complaint-form .upload svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.complaint-form button[type=submit]{display:inline-flex;align-items:center;gap:8px}.complaint-form .upload>span{display:grid;place-items:center}@media(max-width:850px){.top-account-action span{display:none}.top-account-action{width:40px;padding:0;justify-content:center}}
#sidebar-close{display:none;border:0;background:#ffffff10;color:#fff;width:36px;height:36px;border-radius:10px;place-items:center}#sidebar-close svg,.password-visibility svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}#sidebar-backdrop{display:none;position:fixed;inset:0;border:0;background:#05091f99;backdrop-filter:blur(2px);z-index:39}.password-visibility{position:absolute;right:7px;bottom:7px;width:36px;height:36px;border:0;border-radius:9px;background:transparent;color:#697590;display:grid;place-items:center}.password-visibility:hover,.password-visibility.visible{background:#eef1f8;color:#d7193f}.login-card #password{padding-right:78px}.login-card #password+.input-icon{right:48px}
@media(max-width:600px){body.drawer-open{overflow:hidden}.sidebar{z-index:40!important;left:0!important;width:min(82vw,300px)!important;max-width:300px;transform:translateX(-105%);transition:transform .25s ease,box-shadow .25s ease;box-shadow:none;overflow-y:auto}.sidebar.open{transform:translateX(0);box-shadow:18px 0 50px #05091f55}.sidebar #sidebar-close{display:grid;position:absolute;right:12px;top:14px;z-index:2}.sidebar>.brand{padding-right:38px!important}.sidebar.open~.content{pointer-events:none}#sidebar-backdrop.show{display:block}.content>header{gap:8px}.content>header>div:nth-child(2){min-width:0;flex:1}.content header h1{font-size:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header-actions{gap:6px}.header-actions .icon:first-child{display:none!important}.header-actions .icon:nth-child(2){display:grid!important}.top-account-action{width:38px;height:38px}.content>header{padding-inline:12px}#view{max-width:100%;overflow-x:hidden}.data-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}}

@media(max-width:600px){.sidebar #sidebar-close{width:40px;height:40px;right:10px;top:10px;color:#fff;background:linear-gradient(145deg,#ed3151,#b90828);border:1px solid #ff8ca0;box-shadow:0 8px 20px #d20e344d}.sidebar #sidebar-close svg{width:22px;height:22px;stroke-width:2.4}.sidebar #sidebar-close:after{content:"Close";position:absolute;right:0;top:44px;color:#dce1f5;font-size:9px;font-weight:700}}
.qr-settings{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end;margin:6px 0 20px;padding:14px;background:#f5f7fb;border:1px solid #e0e4ee;border-radius:12px}.qr-settings label{margin:0;text-align:left}.qr-settings button{height:45px}.qr-mode-badge{display:inline-block;margin-bottom:8px;padding:5px 9px;border-radius:20px;background:#edf2ff;color:#30458c;font-size:10px;font-weight:900;letter-spacing:.05em}@media(max-width:650px){.qr-settings{grid-template-columns:1fr}.qr-settings button{width:100%}}
