@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
*{box-sizing:border-box}body{margin:0;font-family:'Plus Jakarta Sans',sans-serif;background:#f4f7fb;color:#172033}.shell{display:grid;grid-template-columns:250px 1fr;min-height:100vh}.side{background:#0b2b57;color:#fff;padding:22px 16px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:10px;margin:0 8px 28px}.brand img{width:34px;height:34px;object-fit:contain}.brand b{font-size:15px}.brand small{display:block;color:#a9bdd8;font-size:10px}.nav a{display:flex;gap:11px;align-items:center;color:#cbd8e9;text-decoration:none;padding:11px 12px;margin:3px 0;border-radius:7px;font-size:13px}.nav a:hover,.nav a.on{background:#fff;color:#123765}.main{min-width:0}.top{height:68px;background:#fff;border-bottom:1px solid #e5eaf1;display:flex;align-items:center;justify-content:space-between;padding:0 30px;position:sticky;top:0;z-index:5}.content{max-width:1280px;margin:auto;padding:28px 30px 50px}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.card{background:#fff;border:1px solid #e2e8f0;border-radius:9px;padding:20px;box-shadow:0 2px 9px rgba(15,38,70,.035)}.stat strong{display:block;font-size:25px;color:#0d3a70}.muted{color:#728198;font-size:12px}.btn{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:7px;padding:10px 14px;font-weight:700;cursor:pointer;text-decoration:none}.primary{background:#0d5fb8;color:#fff}.orange{background:#f28b20;color:#fff}.danger{background:#c73d4b;color:#fff}.input,select,textarea{width:100%;border:1px solid #d8e0ea;border-radius:7px;padding:11px 12px;font:inherit;background:#fff}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.table{width:100%;border-collapse:collapse;font-size:13px}.table th,.table td{padding:12px;border-bottom:1px solid #edf0f4;text-align:left}.table th{color:#627187;font-size:11px;text-transform:uppercase}.pill{display:inline-block;padding:5px 8px;border-radius:99px;background:#edf4fb;color:#17589b;font-size:11px;font-weight:700}.flash{padding:12px 14px;background:#eaf8ef;border:1px solid #b9e3c8;border-radius:7px;margin-bottom:14px}.hero{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;background:#dbe6f2}.login{min-height:100vh;display:grid;place-items:center;background:#eef3f9}.loginbox{width:min(420px,92vw);background:#fff;border:1px solid #dde5ee;border-radius:10px;padding:30px}.loginbrand{display:flex;align-items:center;gap:12px;margin-bottom:25px}.loginbrand img{width:44px}.bottom{display:none}@media(max-width:900px){.shell{display:block}.side{display:none}.top{padding:0 18px}.content{padding:20px 16px 90px}.grid{grid-template-columns:1fr 1fr}.formgrid{grid-template-columns:1fr}.bottom{display:flex;position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #ddd;z-index:20;justify-content:space-around;padding:8px}.bottom a{font-size:10px;color:#52647b;text-decoration:none;text-align:center}.bottom i{display:block;font-size:18px;margin-bottom:3px}.tablewrap{overflow:auto}}
/* ESS V2 UX */
.shell{transition:grid-template-columns .22s ease}.side{transition:width .22s ease,padding .22s ease;z-index:30;overflow:hidden}.side-collapse{margin-left:auto;width:30px;height:30px;border:0;background:rgba(255,255,255,.08);color:#d6e5f7;border-radius:6px;cursor:pointer}.menu-toggle{width:36px;height:36px;border:1px solid #dfe6ef;background:#fff;color:#24496f;border-radius:7px;cursor:pointer}.top-left{display:flex;align-items:center;gap:12px}.icon-btn{padding:9px 11px}.side-overlay{display:none}.collapsed{grid-template-columns:76px 1fr}.collapsed .side{padding-left:10px;padding-right:10px}.collapsed .brand{margin-left:4px;margin-right:4px;justify-content:center}.collapsed .brand-copy,.collapsed .nav-label,.collapsed .nav-count,.collapsed .side-collapse{display:none}.collapsed .brand img{width:36px;height:36px}.collapsed .nav a{justify-content:center;padding:12px}.collapsed .nav a i{font-size:16px}.home-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px}.leave-donut-card,.leave-summary{display:flex;align-items:center;justify-content:space-between;gap:20px}.donut{--used:0;--pending:0;width:142px;height:142px;border-radius:50%;background:conic-gradient(#0d5fb8 0 calc(var(--used)*1%),#f28b20 calc(var(--used)*1%) calc((var(--used) + var(--pending))*1%),#dbe9f7 calc((var(--used) + var(--pending))*1%) 100%);position:relative;flex:0 0 auto}.donut:after{content:"";position:absolute;inset:20px;background:#fff;border-radius:50%}.donut>div{position:absolute;inset:0;z-index:1;display:grid;place-content:center;text-align:center}.donut strong{font-size:24px;color:#0d3a70}.donut small{font-size:10px;color:#7b899b}.donut.large{width:174px;height:174px}.donut.large:after{inset:24px}.donut-legend{display:grid;gap:8px;font-size:11px}.donut-legend.horizontal{display:flex;flex-wrap:wrap;gap:14px}.donut-legend span{display:flex;align-items:center;gap:7px}.dot{width:9px;height:9px;border-radius:50%;display:inline-block}.dot.used{background:#0d5fb8}.dot.pending{background:#f28b20}.dot.remaining{background:#dbe9f7;border:1px solid #b8cee5}.leave-summary{margin-top:18px}.eyebrow{font-size:10px;letter-spacing:.12em;color:#62809f;font-weight:800}.faq-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:18px}.faq-head h2{margin:5px 0}.faq-search{width:min(420px,100%);position:relative}.faq-search i{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#8292a7}.faq-search input{width:100%;border:1px solid #d8e0ea;border-radius:8px;padding:12px 14px 12px 38px;font:inherit}.faq-module-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.faq-module{display:flex;gap:14px;align-items:flex-start}.faq-icon{width:42px;height:42px;border-radius:8px;background:#edf5fd;color:#0d5fb8;display:grid;place-items:center;flex:0 0 auto}.faq-module h3{margin:2px 0 7px}.faq-module p{font-size:12px;line-height:1.7;color:#596b81;margin:0 0 10px}.faq-tip{font-size:11px;color:#47617e;background:#f6f9fc;border-left:3px solid #f28b20;padding:9px 10px;border-radius:4px}.faq-tip i{margin-right:7px;color:#f28b20}.faq-extra{margin-top:18px}.faq-extra h3{margin-top:5px}.faq-detail{padding:14px 0;border-bottom:1px solid #edf0f4}.faq-detail summary{display:flex;justify-content:space-between;align-items:center;gap:10px;cursor:pointer}.faq-detail p{font-size:12px;color:#5e7085;line-height:1.7}
@media(max-width:1100px){.home-layout{grid-template-columns:1fr}.leave-donut-card{min-height:190px}}
@media(max-width:900px){.shell{display:block}.side{display:block;position:fixed;left:-270px;top:0;width:250px;height:100vh;transition:left .22s ease}.mobile-open .side{left:0}.side-overlay{display:block;position:fixed;inset:0;background:rgba(5,22,42,.46);z-index:25;opacity:0;visibility:hidden;transition:.2s}.mobile-open .side-overlay{opacity:1;visibility:visible}.side-collapse{display:block}.faq-head{align-items:stretch;flex-direction:column}.faq-search{width:100%}.faq-module-grid{grid-template-columns:1fr}.leave-summary{align-items:flex-start}.donut.large{width:150px;height:150px}.top{padding:0 14px}.menu-toggle{display:grid;place-items:center}}
@media(max-width:560px){.grid{grid-template-columns:1fr 1fr}.leave-donut-card,.leave-summary{flex-direction:column;align-items:stretch}.donut,.donut.large{margin:auto}.faq-module{padding:16px}.content{padding-left:13px;padding-right:13px}}

/* V3 login redesign - desktop + mobile */
body.login-page{margin:0;background:#f4f8fd;color:#172033;font-family:'Plus Jakarta Sans',sans-serif}
.login-page:before,.login-page:after{content:"";position:fixed;border:1px solid #d8e8ff;border-radius:50%;pointer-events:none}.login-page:before{width:430px;height:430px;right:-180px;top:-220px}.login-page:after{width:370px;height:370px;left:-220px;bottom:-230px}
.ess-auth-card{width:min(1310px,calc(100vw - 64px));height:min(900px,calc(100vh - 64px));min-height:680px;position:relative;z-index:1;margin:32px auto;display:grid;grid-template-columns:1fr 1fr;background:#fff;border:1px solid #e3eaf2;border-radius:20px;overflow:hidden;box-shadow:0 24px 70px rgba(32,72,120,.14)}
.ess-auth-visual{position:relative;background:#f9fbff;border-right:1px solid #edf2f7;overflow:hidden}.ess-auth-visual img{width:100%;height:100%;object-fit:cover;display:block}.ess-auth-copyright{position:absolute;left:50px;bottom:30px;font-size:12px;color:#365886}
.ess-auth-panel{display:grid;place-items:center;background:#fff}.ess-auth-form{width:min(540px,calc(100% - 96px));display:grid;gap:22px}.ess-auth-title{margin-bottom:14px}.ess-auth-title h1{margin:0 0 8px;font-size:31px;color:#071d4c;line-height:1.1}.ess-auth-title p{margin:0;color:#536581;font-size:14px}.ess-mobile-only,.ess-auth-mobile-art{display:none}
.ess-auth-alert{margin:0;background:#fff1f2;border-color:#fecdd3;color:#9f1239}
.ess-auth-field{display:grid;gap:9px}.ess-auth-field label{font-size:13px;color:#071d4c;font-weight:700}.ess-auth-input{height:58px;border:1px solid #d3dce8;border-radius:8px;display:flex;align-items:center;gap:13px;padding:0 16px}.ess-auth-input:focus-within{border-color:#1672df;box-shadow:0 0 0 3px rgba(22,114,223,.08)}.ess-auth-input>i{width:18px;text-align:center;color:#65738d;font-size:18px}.ess-auth-input input{min-width:0;flex:1;height:100%;border:0;outline:0;background:transparent;font:inherit;color:#15213a}.ess-auth-input input::placeholder{color:#7b8ba5}
.ess-password-toggle{width:38px;height:38px;display:grid;place-items:center;border:0;background:transparent;color:#65738d;font-size:18px;cursor:pointer;border-radius:7px}.ess-password-toggle:hover{background:#f3f7fb}
.ess-auth-options{display:flex;align-items:center;justify-content:space-between}.ess-auth-options label{display:flex;align-items:center;gap:9px;color:#17254a;font-size:13px}.ess-auth-options input{width:18px;height:18px;accent-color:#0f68db}.ess-auth-options a{font-size:13px;color:#0f68db;text-decoration:none;font-weight:600}
.ess-auth-submit{height:60px;border:0;border-radius:8px;background:linear-gradient(90deg,#0b3180,#0b62d6);color:#fff;font:inherit;font-size:16px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:13px;cursor:pointer;box-shadow:0 8px 22px rgba(13,75,171,.16)}.ess-auth-submit i{font-size:20px}.ess-auth-divider{display:flex;align-items:center;gap:18px;color:#596980;font-size:13px}.ess-auth-divider:before,.ess-auth-divider:after{content:"";height:1px;background:#dfe5ed;flex:1}
.ess-face-login{height:60px;border:1px solid #d3dce8;border-radius:8px;background:#fff;display:flex;align-items:center;justify-content:center;gap:14px;color:#0b2b6d;font:inherit;font-size:15px;font-weight:700;cursor:pointer}.ess-face-login i{font-size:24px;color:#0872ed}
.ess-auth-security{margin-top:24px;display:flex;align-items:flex-start;justify-content:center;gap:15px;color:#536581;font-size:13px;line-height:1.55}.ess-auth-security i{font-size:22px;color:#0872ed;margin-top:2px}.ess-auth-version{display:none}
@media(max-width:900px){body.login-page{background:#fff}.login-page:before,.login-page:after{display:none}.ess-auth-card{width:100%;height:auto;min-height:100vh;margin:0;display:block;border:0;border-radius:0;box-shadow:none;overflow:visible}.ess-auth-visual{display:none}.ess-desktop-only{display:none!important}.ess-mobile-only{display:inline}.ess-auth-mobile-art{display:block}.ess-auth-mobile-art img{display:block;width:100%;height:auto;max-height:53vh;min-height:365px;object-fit:cover;object-position:center top}.ess-auth-panel{display:block}.ess-auth-form{width:100%;padding:24px 28px 34px;gap:20px}.ess-auth-title{margin-bottom:10px}.ess-auth-title h1{font-size:28px;margin-bottom:10px}.ess-auth-title p{font-size:14px}.ess-auth-submit,.ess-face-login{height:58px}.ess-auth-security{margin-top:10px;padding:17px 18px;background:linear-gradient(110deg,#f2f7ff,#fbfdff);border-radius:12px;justify-content:flex-start}.ess-auth-version{display:flex;align-items:center;justify-content:center;gap:9px;color:#b2bfd1;font-size:13px;margin-top:8px}}
@media(max-width:520px){.ess-auth-form{padding-left:22px;padding-right:22px}.ess-auth-mobile-art img{min-height:330px;max-height:48vh}.ess-auth-title h1{font-size:25px}.ess-auth-title p{font-size:13px}.ess-auth-input{height:56px}.ess-auth-submit,.ess-face-login{height:56px}.ess-auth-security{font-size:12px}}


/* V3.1 login viewport-fit fix */
@media (min-width:901px){
  body.login-page{height:100dvh;overflow:hidden}
  .ess-auth-card{
    width:min(1180px,calc(100vw - 40px));
    height:min(680px,calc(100dvh - 40px));
    min-height:560px;
    margin:20px auto;
    border-radius:18px;
  }
  .ess-auth-form{width:min(500px,calc(100% - 72px));gap:16px}
  .ess-auth-title{margin-bottom:8px}
  .ess-auth-title h1{font-size:28px}
  .ess-auth-field{gap:7px}
  .ess-auth-input{height:52px}
  .ess-auth-submit,.ess-face-login{height:52px}
  .ess-auth-security{margin-top:12px;font-size:12px}
  .ess-auth-copyright{left:38px;bottom:22px;font-size:11px}
}
@media (min-width:901px) and (max-height:650px){
  .ess-auth-card{height:calc(100dvh - 24px);min-height:520px;width:min(1120px,calc(100vw - 24px));margin:12px auto}
  .ess-auth-form{width:min(480px,calc(100% - 64px));gap:12px}
  .ess-auth-title h1{font-size:25px}.ess-auth-title p{font-size:12px}
  .ess-auth-input{height:46px}.ess-auth-submit,.ess-face-login{height:46px}
  .ess-auth-security{margin-top:8px;line-height:1.4}
}
@media(max-width:900px){
  .ess-auth-mobile-art img{min-height:0;max-height:none;aspect-ratio:1.55/1;object-fit:cover}
  .ess-auth-form{padding-top:20px}
}
@media(max-width:520px){
  .ess-auth-mobile-art img{min-height:0;max-height:none;aspect-ratio:1.48/1}
}

/* V3.2 desktop login true-100-percent compact fit */
@media (min-width:901px){
  body.login-page{height:100dvh;min-height:100dvh;overflow:hidden;padding:24px 0}
  .ess-auth-card{
    width:min(1260px,calc(100vw - 240px));
    height:min(670px,calc(100dvh - 64px));
    min-height:0;
    margin:0 auto;
    grid-template-columns:1fr 1fr;
    border-radius:18px;
  }
  .ess-auth-visual img{object-fit:cover;object-position:center center}
  .ess-auth-form{
    width:min(520px,calc(100% - 88px));
    gap:15px;
  }
  .ess-auth-title{margin-bottom:9px}
  .ess-auth-title h1{font-size:28px;margin-bottom:7px}
  .ess-auth-title p{font-size:13px}
  .ess-auth-field{gap:7px}
  .ess-auth-field label{font-size:12px}
  .ess-auth-input{height:50px;padding:0 14px}
  .ess-auth-input>i{font-size:16px}
  .ess-auth-options label,.ess-auth-options a{font-size:12px}
  .ess-auth-options input{width:16px;height:16px}
  .ess-auth-submit,.ess-face-login{height:50px}
  .ess-auth-submit{font-size:15px}
  .ess-face-login{font-size:14px}
  .ess-auth-divider{font-size:12px;gap:14px}
  .ess-auth-security{margin-top:5px;font-size:11px;line-height:1.45;gap:12px}
  .ess-auth-security i{font-size:19px}
  .ess-auth-copyright{left:48px;bottom:25px;font-size:10px}
}
@media (min-width:901px) and (max-width:1350px){
  .ess-auth-card{width:min(1120px,calc(100vw - 96px));height:min(640px,calc(100dvh - 48px))}
  .ess-auth-form{width:min(470px,calc(100% - 64px))}
}
@media (min-width:901px) and (max-height:720px){
  body.login-page{padding:14px 0}
  .ess-auth-card{height:calc(100dvh - 28px);max-height:640px}
  .ess-auth-form{gap:11px}
  .ess-auth-title h1{font-size:25px}
  .ess-auth-input,.ess-auth-submit,.ess-face-login{height:44px}
  .ess-auth-security{margin-top:2px}
}

/* ===== TSM ESS Dashboard v4.2 ===== */
.ess-home{display:grid;gap:16px}.ess-mobile-appbar{display:none}.ess-welcome{position:relative;display:flex;align-items:center;justify-content:space-between;min-height:108px;padding:6px 8px 8px;overflow:hidden}.ess-welcome:after{content:"";position:absolute;right:35px;bottom:-26px;width:250px;height:130px;background:linear-gradient(145deg,transparent 0 14%,rgba(40,118,219,.035) 14% 100%);border-radius:80px 0 0 0;pointer-events:none}.ess-welcome p{margin:0 0 5px;color:#657a98;font-size:13px}.ess-welcome h1{margin:0;color:#0a2253;font-size:26px;line-height:1.2}.ess-welcome span{display:block;margin-top:7px;color:#667b9b;font-size:12px}.ess-welcome>img{width:58px;height:58px;object-fit:contain;opacity:.95;z-index:1}
.ess-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ess-stat-card,.ess-approval-card,.ess-leave-card,.ess-panel{background:#fff;border:1px solid #e5ebf4;border-radius:14px;box-shadow:0 5px 18px rgba(25,65,115,.045)}.ess-stat-card{position:relative;min-height:145px;padding:18px;display:grid;grid-template-columns:54px 1fr;grid-template-rows:auto 1fr;column-gap:14px}.ess-stat-card>div:nth-child(2){align-self:center}.ess-stat-card span,.ess-approval-card span{display:block;color:#61769a;font-size:12px}.ess-stat-card strong,.ess-approval-card strong{display:inline-block;margin-top:5px;color:#091e50;font-size:27px;line-height:1}.ess-stat-card small,.ess-approval-card small{margin-left:5px;color:#60759a;font-size:11px}.ess-stat-card p,.ess-approval-card p{grid-column:1/-1;align-self:end;margin:15px 0 0;color:#61769a;font-size:11px}.ess-stat-card p b{color:#263d67}.ess-stat-icon{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;font-size:22px}.ess-stat-icon.blue{background:#edf4ff;color:#1671f8}.ess-stat-icon.green{background:#eaf9ef;color:#16a85a}.ess-stat-icon.orange{background:#fff4e7;color:#f38b19}.ess-stat-icon.purple{background:#f1edff;color:#7247e8}
.ess-summary-row{display:grid;grid-template-columns:minmax(250px,.72fr) minmax(420px,1.28fr);gap:12px}.ess-approval-card{display:grid;grid-template-columns:54px 1fr;grid-template-rows:auto 1fr;padding:18px;text-decoration:none;color:inherit;min-height:176px}.ess-approval-card p{display:flex;align-items:center;justify-content:space-between;margin-top:22px}.ess-leave-card{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:18px 24px;min-height:176px}.ess-leave-copy>span{color:#61769a;font-size:12px}.ess-leave-copy h2{margin:5px 0 13px;color:#0a2253;font-size:18px}.ess-legend{display:grid;gap:8px;color:#526b93;font-size:12px}.ess-legend>div{display:grid;grid-template-columns:10px 1fr auto;align-items:center;gap:7px}.legend{width:9px;height:9px;border-radius:50%}.legend.used{background:linear-gradient(135deg,#176dff,#2fa3ff)}.legend.pending{background:linear-gradient(135deg,#ff7a17,#ffb000)}.legend.remain{background:#d7e6fb}.ess-gradient-donut{--used:0;--pending:0;width:144px;height:144px;border-radius:50%;background:conic-gradient(from -90deg,#1673ff 0 calc(var(--used)*1%),#fd7d19 calc(var(--used)*1%) calc((var(--used) + var(--pending))*1%),#ffbd05 calc((var(--used) + var(--pending))*1%) calc((var(--used) + var(--pending))*1% + 7%),#dce9fb calc((var(--used) + var(--pending))*1% + 7%) 100%);position:relative;flex:0 0 auto;filter:drop-shadow(0 4px 8px rgba(26,101,205,.09))}.ess-gradient-donut:after{content:"";position:absolute;inset:23px;background:#fff;border-radius:50%;box-shadow:inset 0 0 0 1px #f0f4fa}.ess-gradient-donut>div{position:absolute;inset:0;z-index:2;display:grid;place-content:center;text-align:center}.ess-gradient-donut strong{font-size:25px;color:#0a2253;line-height:1}.ess-gradient-donut small{margin-top:4px;color:#7890b2;font-size:10px}
.ess-panel{padding:18px}.ess-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.ess-panel-head h2{display:flex;align-items:center;gap:10px;margin:0;color:#0a2253;font-size:16px}.ess-panel-head>a{border:1px solid #dae5f4;border-radius:999px;padding:7px 12px;text-decoration:none;color:#1671f8;font-size:11px;font-weight:700}.panel-icon{width:38px;height:38px;border-radius:11px;background:#edf4ff;color:#1671f8;display:grid;place-items:center}.ess-schedule-list{display:grid}.ess-schedule-item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 4px;border-top:1px solid #eef2f7}.ess-schedule-item>div{display:flex;gap:16px;align-items:center}.ess-schedule-item b{color:#102650;font-size:12px}.ess-schedule-item span{color:#6a7f9f;font-size:11px}.ess-schedule-item em{border-radius:999px;padding:5px 9px;background:#edf5ff;color:#176dff;font-size:10px;font-style:normal}.ess-empty{min-height:170px;display:grid;place-items:center;align-content:center;text-align:center;border-top:1px solid #eef2f7}.ess-empty.small{min-height:100px;border-top:0}.ess-empty b{color:#0a2253;font-size:13px}.ess-empty p{margin:5px 0 0;color:#7890b2;font-size:11px}.empty-illustration{position:relative;width:90px;height:70px;display:grid;place-items:center;color:#74a8f7;font-size:42px}.empty-illustration:before,.empty-illustration:after{content:"";position:absolute;bottom:9px;width:34px;height:26px;border-radius:50% 50% 0 0;background:#edf4ff}.empty-illustration:before{left:3px}.empty-illustration:after{right:3px}.empty-illustration i{z-index:1}
.ess-activity-list{display:grid}.ess-activity{display:grid;grid-template-columns:38px 1fr auto;gap:12px;align-items:center;padding:10px 0;border-top:1px solid #eef2f7}.ess-activity:first-child{border-top:0}.activity-icon{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-size:14px}.activity-icon.approved{background:#eaf9ef;color:#16a85a}.activity-icon.pending{background:#fff4e7;color:#f38b19}.activity-icon.rejected{background:#fff0f0;color:#e34d59}.activity-icon.process{background:#edf4ff;color:#1671f8}.ess-activity b{display:block;color:#132953;font-size:12px;font-weight:600}.ess-activity span{display:block;margin-top:3px;color:#7187a7;font-size:10px}.ess-activity .status{padding:5px 9px;border-radius:999px;font-size:10px;font-style:normal}.status.approved{background:#ebf9f0;color:#15a25a}.status.pending{background:#fff6ea;color:#e97a0d}.status.rejected{background:#fff0f0;color:#df4150}.status.process{background:#edf4ff;color:#166df5}
.ess-quick-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}.ess-quick-grid a,.ess-quick-grid button{border:0;background:transparent;color:#526b93;text-decoration:none;font:inherit;font-size:11px;display:grid;justify-items:center;gap:7px;cursor:pointer}.ess-quick-grid span{width:48px;height:48px;border-radius:50%;background:#edf4ff;color:#1671f8;display:grid;place-items:center;font-size:18px}.ess-quick-grid button[hidden]{display:none!important}
.ess-bottom-nav .bottom-badge{position:absolute;top:1px;right:calc(50% - 15px);min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:#ef303b;color:#fff;font-size:9px;line-height:17px}.ess-bottom-nav a{position:relative}.ess-bottom-nav .on{color:#1671f8}

@media(max-width:900px){
 body{background:#f8faff}.top{display:none}.content{max-width:none;padding:0 14px calc(104px + env(safe-area-inset-bottom));overflow-x:hidden}.ess-home{gap:12px}.ess-mobile-appbar{display:flex;align-items:center;justify-content:space-between;padding:14px 0 8px;min-height:68px}.ess-mobile-menu,.ess-header-action{width:42px;height:42px;border:1px solid #e5ebf4;border-radius:12px;background:#fff;color:#173767;display:grid;place-items:center;text-decoration:none;box-shadow:0 3px 12px rgba(30,67,110,.04)}.ess-mobile-brand{display:flex;align-items:center;gap:8px;margin-right:auto;margin-left:9px}.ess-mobile-brand img{width:46px;height:46px;object-fit:contain}.ess-mobile-brand strong{display:block;color:#0a2253;font-size:16px}.ess-mobile-brand span{display:block;color:#6d82a4;font-size:10px;margin-top:2px}.ess-mobile-actions{display:flex;align-items:center;gap:8px}.ess-mobile-avatar{width:42px;height:42px;border-radius:50%;overflow:hidden;background:#e9f1ff;text-decoration:none}.ess-mobile-avatar img{width:100%;height:100%;object-fit:cover}.ess-mobile-avatar span{width:100%;height:100%;place-items:center;color:#164a93;font-size:11px;font-weight:800}.ess-welcome{min-height:118px;padding:17px 8px 14px}.ess-welcome h1{font-size:21px}.ess-welcome>img{width:48px;height:48px}.ess-welcome:after{right:-28px;width:240px;height:130px}.ess-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.ess-stat-card{min-height:152px;padding:13px 11px;grid-template-columns:44px 1fr;column-gap:9px;border-radius:13px}.ess-stat-icon{width:44px;height:44px;font-size:18px}.ess-stat-card span,.ess-approval-card span{font-size:10px;line-height:1.35}.ess-stat-card strong,.ess-approval-card strong{font-size:23px}.ess-stat-card small,.ess-approval-card small{font-size:9px;margin-left:2px}.ess-stat-card p,.ess-approval-card p{font-size:9px;line-height:1.45}.ess-summary-row{grid-template-columns:.75fr 1.25fr;gap:8px}.ess-approval-card{min-height:164px;padding:13px 11px;grid-template-columns:44px 1fr;column-gap:9px;border-radius:13px}.ess-leave-card{min-height:164px;padding:13px;gap:10px;border-radius:13px}.ess-leave-copy>span{font-size:9px}.ess-leave-copy h2{font-size:13px;margin:3px 0 9px}.ess-legend{font-size:9px;gap:5px}.ess-gradient-donut{width:108px;height:108px}.ess-gradient-donut:after{inset:18px}.ess-gradient-donut strong{font-size:20px}.ess-gradient-donut small{font-size:8px}.ess-panel{padding:14px;border-radius:13px}.ess-panel-head{margin-bottom:10px}.ess-panel-head h2{font-size:13px}.ess-panel-head>a{padding:6px 10px;font-size:9px}.panel-icon{width:34px;height:34px}.ess-schedule-item{align-items:flex-start}.ess-schedule-item>div{display:grid;gap:3px}.ess-empty{min-height:145px}.ess-quick-grid{gap:6px}.ess-quick-grid a,.ess-quick-grid button{font-size:9px}.ess-quick-grid span{width:42px;height:42px;font-size:16px}.ess-bottom-nav{height:78px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));align-items:flex-end;box-shadow:0 -5px 18px rgba(29,58,104,.07);border-top:1px solid #e9eef5}.ess-bottom-nav a{width:20%;display:grid;place-items:center;gap:4px;font-size:9px}.ess-bottom-nav a i{font-size:19px;margin:0}.ess-bottom-nav .ess-bottom-absen{transform:translateY(-18px);color:#1671f8}.ess-bottom-nav .ess-bottom-absen i{width:54px;height:54px;border-radius:50%;background:linear-gradient(145deg,#176eff,#2e8cff);color:#fff;display:grid;place-items:center;font-size:20px;box-shadow:0 7px 18px rgba(23,111,255,.28)}
}
@media(max-width:560px){
 .content{padding-left:12px;padding-right:12px}.ess-mobile-brand strong{font-size:15px}.ess-mobile-brand span{font-size:9px}.ess-welcome{padding-left:4px;padding-right:4px}.ess-welcome p{font-size:11px}.ess-welcome h1{font-size:19px}.ess-welcome span{font-size:10px}.ess-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ess-stat-card{display:block;min-width:0;min-height:145px}.ess-stat-card .ess-stat-icon{margin-bottom:9px}.ess-stat-card span{min-height:27px}.ess-stat-card p{position:absolute;left:11px;right:11px;bottom:11px}.ess-summary-row{grid-template-columns:.78fr 1.22fr}.ess-approval-card{display:block;position:relative;min-width:0}.ess-approval-card .ess-stat-icon{margin-bottom:8px}.ess-approval-card p{position:absolute;left:11px;right:11px;bottom:10px}.ess-leave-card{min-width:0}.ess-gradient-donut{width:96px;height:96px}.ess-gradient-donut:after{inset:16px}.ess-gradient-donut strong{font-size:18px}.ess-leave-copy h2{font-size:12px}.ess-panel{overflow:hidden}.ess-schedule-item{display:grid;grid-template-columns:1fr auto}.ess-schedule-item>div:last-child{justify-items:end}.ess-activity{grid-template-columns:34px minmax(0,1fr) auto;gap:9px}.activity-icon{width:34px;height:34px}.ess-activity b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ess-activity .status{font-size:8px;padding:4px 7px}.ess-quick-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.ess-quick-grid span{width:38px;height:38px}.ess-quick-grid a,.ess-quick-grid button{font-size:8px;text-align:center}.side{width:min(280px,84vw)}
}
@media(max-width:390px){.ess-mobile-brand span{display:none}.ess-stat-card{padding:11px 9px}.ess-summary-row{grid-template-columns:1fr}.ess-approval-card{min-height:126px}.ess-leave-card{min-height:150px}.ess-gradient-donut{width:100px;height:100px}}

/* V5 Dashboard — match approved desktop/mobile reference */
:root{--ess-blue:#126cff;--ess-navy:#09245a;--ess-line:#e5ebf4;--ess-bg:#f7faff}
body{background:var(--ess-bg)}
.shell{grid-template-columns:255px minmax(0,1fr)}
.side{background:#fff;color:#536b92;padding:24px 18px;border-right:1px solid #e5ebf4;box-shadow:none;display:flex;flex-direction:column}
.brand{margin:0 8px 42px;gap:12px}.brand img{width:52px;height:52px}.brand b{font-size:18px;color:#09245a}.brand small{font-size:11px;color:#61769a;margin-top:2px}.side-collapse{display:none}
.nav{display:grid;gap:7px}.nav a{color:#536b92;padding:13px 14px;border-radius:8px;font-size:13px;margin:0;gap:14px}.nav a i{width:20px;text-align:center;font-size:16px;color:#6b85b0}.nav a:hover{background:#f3f7ff;color:#0d5fd3}.nav a.on{background:linear-gradient(135deg,#2783ff,#0f55ea);color:#fff;box-shadow:0 7px 16px rgba(25,104,239,.18)}.nav a.on i{color:#fff}.nav-count{margin-left:auto;background:#dce9ff;color:#145ee4}
.side-logout{margin-top:auto;display:flex;align-items:center;gap:12px;padding:12px 14px;color:#526b93;text-decoration:none;font-size:13px;border-top:1px solid #edf1f6}.side-logout:hover{color:#d1434c}
.top{height:82px;padding:0 28px;background:#fff}.top-left b{font-size:16px;color:#102650}.menu-toggle{width:46px;height:46px;border-radius:10px;font-size:17px}.ess-top-account{display:flex;align-items:center;gap:12px}.ess-top-bell{position:relative;width:46px;height:46px;border:1px solid #e3eaf4;border-radius:10px;display:grid;place-items:center;color:#173767;text-decoration:none;font-size:18px}.ess-top-bell span{position:absolute;right:3px;top:2px;min-width:17px;height:17px;padding:0 4px;border-radius:99px;background:#ef3340;color:#fff;font-size:9px;line-height:17px;text-align:center}.ess-top-avatar{width:42px;height:42px;border-radius:50%;overflow:hidden;background:#edf4ff}.ess-top-avatar img{width:100%;height:100%;object-fit:cover}.ess-top-user{min-width:145px}.ess-top-user b{display:block;font-size:11px;color:#0a2253}.ess-top-user span{display:block;font-size:10px;color:#6d82a4;margin-top:3px}.ess-top-logout{color:#173767;font-size:17px;padding:9px;text-decoration:none}
.content{max-width:1520px;padding:26px 36px 42px}
.ess-home{gap:16px}.ess-welcome{min-height:112px;padding:4px 5px 10px}.ess-welcome p{font-size:13px}.ess-welcome h1{font-size:27px}.ess-welcome span{font-size:12px}.ess-welcome>img{width:54px;height:54px}.ess-welcome:after{right:45px;width:330px;height:150px;background:linear-gradient(145deg,transparent 0 15%,rgba(32,116,232,.05) 15% 100%)}
.ess-overview-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) minmax(0,.92fr) minmax(285px,1.32fr);gap:14px}.ess-stat-grid,.ess-summary-row{display:contents}
.ess-stat-card,.ess-approval-card,.ess-leave-card,.ess-panel{border:1px solid #e3eaf4;border-radius:11px;box-shadow:0 4px 14px rgba(24,66,117,.04)}
.ess-stat-card,.ess-approval-card{min-height:190px;padding:20px 20px 17px}.ess-stat-card{grid-template-columns:58px 1fr;column-gap:16px}.ess-stat-icon{width:58px;height:58px;font-size:22px}.ess-stat-card span,.ess-approval-card span{font-size:11px}.ess-stat-card strong,.ess-approval-card strong{font-size:27px}.ess-stat-card p,.ess-approval-card p{font-size:10px;margin-top:18px}
.ess-approval-card{grid-template-columns:58px 1fr}.ess-approval-card p{margin-top:24px}
.ess-leave-card{min-height:190px;padding:20px 18px;gap:12px}.ess-leave-copy>span{font-size:10px}.ess-leave-copy h2{font-size:17px;margin:6px 0 13px}.ess-legend{font-size:10px;gap:8px}.ess-gradient-donut{width:126px;height:126px;background:conic-gradient(from -90deg,#1c75ff 0 calc(var(--used)*1%),#ff7b19 calc(var(--used)*1%) calc((var(--used) + var(--pending))*1%),#ffc20c calc((var(--used) + var(--pending))*1%) calc((var(--used) + var(--pending))*1% + 8%),#dce9fb calc((var(--used) + var(--pending))*1% + 8%) 100%)}.ess-gradient-donut:after{inset:21px}.ess-gradient-donut strong{font-size:23px}
.ess-main-grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(360px,.88fr);gap:14px}.ess-panel{padding:19px}.ess-panel-head{margin-bottom:14px}.ess-panel-head h2{font-size:15px}.ess-schedule-panel .ess-empty{min-height:188px}.ess-activity{padding:9px 0}.ess-quick-panel{grid-column:1/-1}.ess-quick-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}.ess-quick-grid a,.ess-quick-grid button{border:1px solid #e6edf6;border-radius:8px;min-height:58px;display:flex;align-items:center;justify-content:flex-start;padding:8px 16px;gap:10px;font-size:10px}.ess-quick-grid span{width:38px;height:38px;flex:0 0 auto;font-size:15px}
.collapsed{grid-template-columns:76px minmax(0,1fr)}.collapsed .side{padding-left:10px;padding-right:10px}.collapsed .side-logout{justify-content:center}.collapsed .brand{margin-left:0;margin-right:0}.collapsed .brand img{width:42px;height:42px}
.ess-mobile-appbar,.ess-bottom-nav{display:none}

@media(max-width:1280px) and (min-width:901px){.content{padding-left:24px;padding-right:24px}.ess-overview-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ess-approval-card{grid-column:1}.ess-leave-card{grid-column:2/4}.ess-main-grid{grid-template-columns:1fr 1fr}}

@media(max-width:900px){
 .shell{display:block}.side{display:flex;left:-290px;width:270px}.mobile-open .side{left:0}.top{display:none}.content{padding:0 28px calc(112px + env(safe-area-inset-bottom));max-width:none}.ess-home{gap:14px}.ess-mobile-appbar{display:flex;align-items:center;min-height:88px;padding:14px 0 8px}.ess-mobile-menu{width:48px;height:48px;border-radius:12px}.ess-mobile-brand{margin-left:11px}.ess-mobile-brand img{width:52px;height:52px}.ess-mobile-brand strong{font-size:18px}.ess-mobile-brand span{font-size:11px}.ess-mobile-actions{gap:12px}.ess-header-action,.ess-mobile-avatar{width:46px;height:46px}.ess-mobile-bell{position:relative}.ess-mobile-bell b{position:absolute;right:1px;top:0;min-width:17px;height:17px;padding:0 4px;background:#ef3340;color:#fff;border-radius:99px;font-size:9px;line-height:17px;text-align:center}
 .ess-welcome{min-height:132px;padding:18px 10px 14px}.ess-welcome p{font-size:13px}.ess-welcome h1{font-size:24px}.ess-welcome span{font-size:11px}.ess-welcome>img{width:52px;height:52px}.ess-welcome:after{right:-10px;width:285px;height:145px}
 .ess-overview-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.ess-stat-grid,.ess-summary-row{display:contents}.ess-stat-card{grid-column:span 2;min-height:160px;padding:15px 13px;display:grid;grid-template-columns:48px 1fr;column-gap:9px}.ess-stat-icon{width:48px;height:48px;font-size:19px}.ess-stat-card span{font-size:10px}.ess-stat-card strong{font-size:24px}.ess-stat-card p{font-size:9px}.ess-approval-card{grid-column:span 2;min-height:178px;padding:15px 13px;grid-template-columns:48px 1fr}.ess-leave-card{grid-column:span 4;min-height:178px;padding:15px 18px}.ess-gradient-donut{width:112px;height:112px}.ess-gradient-donut:after{inset:18px}.ess-leave-copy h2{font-size:14px}.ess-legend{font-size:9px}
 .ess-main-grid{display:grid;grid-template-columns:1fr;gap:14px}.ess-panel{padding:17px;border-radius:11px}.ess-panel-head h2{font-size:15px}.ess-schedule-panel .ess-empty{min-height:195px}.ess-activity b{font-size:11px}.ess-activity span{font-size:9px}.ess-quick-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.ess-quick-grid a,.ess-quick-grid button{border:0;min-height:auto;padding:4px 2px;display:grid;justify-items:center;gap:7px;font-size:9px}.ess-quick-grid span{width:44px;height:44px;font-size:17px}.ess-bottom-nav{display:flex;height:88px;padding:9px 16px calc(8px + env(safe-area-inset-bottom));align-items:flex-end;box-shadow:0 -5px 18px rgba(29,58,104,.08);border-top:1px solid #e9eef5}.ess-bottom-nav a{width:20%;display:grid;place-items:center;gap:4px;font-size:10px}.ess-bottom-nav a i{font-size:20px;margin:0}.ess-bottom-nav .ess-bottom-absen{transform:translateY(-20px)}.ess-bottom-nav .ess-bottom-absen i{width:58px;height:58px;border-radius:50%;background:linear-gradient(145deg,#176eff,#2e8cff);color:#fff;display:grid;place-items:center;font-size:22px;box-shadow:0 7px 18px rgba(23,111,255,.28)}
}
@media(max-width:560px){.content{padding-left:14px;padding-right:14px}.ess-mobile-brand strong{font-size:16px}.ess-mobile-brand span{font-size:9px}.ess-mobile-brand img{width:46px;height:46px}.ess-mobile-menu,.ess-header-action,.ess-mobile-avatar{width:42px;height:42px}.ess-welcome h1{font-size:20px}.ess-stat-card{display:block;min-height:154px;padding:13px 10px}.ess-stat-card .ess-stat-icon{margin-bottom:8px}.ess-stat-card p{position:absolute;left:10px;right:10px;bottom:10px}.ess-approval-card{display:block;position:relative}.ess-approval-card .ess-stat-icon{margin-bottom:8px}.ess-approval-card p{position:absolute;left:11px;right:11px;bottom:10px}.ess-leave-card{gap:8px;padding:13px}.ess-gradient-donut{width:98px;height:98px}.ess-gradient-donut:after{inset:16px}.ess-leave-copy h2{font-size:12px}.ess-panel{padding:14px}.ess-activity{grid-template-columns:34px minmax(0,1fr) auto;gap:8px}.ess-activity b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px}.ess-activity .status{font-size:8px;padding:4px 7px}}
@media(max-width:390px){.content{padding-left:10px;padding-right:10px}.ess-mobile-brand span{display:none}.ess-overview-grid{gap:7px}.ess-stat-card{padding:11px 8px}.ess-leave-card{padding:11px 9px}.ess-gradient-donut{width:88px;height:88px}.ess-gradient-donut strong{font-size:17px}}


/* ===== Login desktop compact lock v6.1 =====
   Target: browser 100% should visually match the former ~75% zoom view. */
@media (min-width:901px){
  body.login-page{
    width:100%;height:100dvh;min-height:100dvh;margin:0;padding:0;
    display:grid;place-items:center;overflow:hidden;
  }
  .ess-auth-card{
    width:min(1180px,calc(100vw - 180px)) !important;
    height:min(646px,calc(100dvh - 112px)) !important;
    max-width:1180px;max-height:646px;min-height:540px;
    margin:0 auto !important;grid-template-columns:1fr 1fr !important;
    border-radius:18px;overflow:hidden;
  }
  .ess-auth-visual,.ess-auth-panel{min-width:0;min-height:0}
  .ess-auth-visual img{width:100%;height:100%;object-fit:cover;object-position:center center}
  .ess-auth-panel{display:grid;place-items:center;padding:0 36px}
  .ess-auth-form{
    width:min(455px,100%) !important;padding:0 !important;margin:0 auto;
    gap:12px !important;
  }
  .ess-auth-title{margin:0 0 7px !important}
  .ess-auth-title h1{font-size:26px !important;line-height:1.15;margin:0 0 5px !important}
  .ess-auth-title p{font-size:12px !important;line-height:1.45}
  .ess-auth-field{gap:6px !important}
  .ess-auth-field label{font-size:11px !important}
  .ess-auth-input{height:46px !important;border-radius:7px;padding:0 12px !important}
  .ess-auth-input input{font-size:13px}
  .ess-auth-input>i{font-size:15px !important}
  .ess-password-toggle{width:44px}
  .ess-auth-options{min-height:24px}
  .ess-auth-options label,.ess-auth-options a{font-size:11px !important}
  .ess-auth-options input{width:15px !important;height:15px !important}
  .ess-auth-submit,.ess-face-login{height:46px !important;border-radius:7px}
  .ess-auth-submit{font-size:14px !important}
  .ess-face-login{font-size:13px !important}
  .ess-face-login i{font-size:20px}
  .ess-auth-divider{font-size:11px !important;gap:12px}
  .ess-auth-security{margin-top:4px !important;padding:8px 10px !important;font-size:10px !important;line-height:1.4;gap:9px}
  .ess-auth-security i{font-size:17px !important}
  .ess-auth-version{display:none !important}
  .ess-auth-copyright{left:42px !important;bottom:19px !important;font-size:9px !important}
}
@media (min-width:901px) and (max-width:1350px){
  .ess-auth-card{width:min(1060px,calc(100vw - 96px)) !important;height:min(610px,calc(100dvh - 72px)) !important}
  .ess-auth-panel{padding-left:30px;padding-right:30px}.ess-auth-form{width:min(430px,100%) !important}
}
@media (min-width:901px) and (max-height:760px){
  .ess-auth-card{height:calc(100dvh - 44px) !important;min-height:520px}
  .ess-auth-form{gap:9px !important}.ess-auth-input,.ess-auth-submit,.ess-face-login{height:42px !important}
  .ess-auth-title h1{font-size:23px !important}.ess-auth-security{padding:6px 9px !important}
}

/* Keep face scan entry visually explicit after login. */
.ess-face-scan-link span{background:linear-gradient(145deg,#176eff,#2e8cff)!important;color:#fff!important;box-shadow:0 6px 15px rgba(23,111,255,.20)}

/* v6.2 desktop login: visual scale at browser 100% matches the former ~75% view */
@media (min-width:901px){
  body.login-page{height:100dvh;min-height:100dvh;overflow:hidden;padding:0!important;display:grid;place-items:center}
  .ess-auth-card{width:min(1040px,calc(100vw - 64px))!important;height:min(585px,calc(100dvh - 48px))!important;min-height:0!important;max-height:585px!important;margin:0 auto!important;border-radius:16px!important;grid-template-columns:1fr 1fr!important}
  .ess-auth-visual img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important}
  .ess-auth-panel{display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
  .ess-auth-form{width:min(430px,calc(100% - 56px))!important;padding:22px 0!important;gap:12px!important}
  .ess-auth-title{margin-bottom:4px!important}.ess-auth-title h1{font-size:27px!important;margin:0 0 5px!important}.ess-auth-title p{font-size:12px!important;margin:0!important}
  .ess-auth-field{gap:6px!important}.ess-auth-field label{font-size:11px!important}.ess-auth-input{height:43px!important}.ess-auth-input input{font-size:13px!important}
  .ess-auth-options{font-size:11px!important;margin:0!important}.ess-auth-submit,.ess-face-login{height:43px!important;font-size:13px!important}.ess-auth-divider{font-size:11px!important;margin:0!important}
  .ess-auth-security{font-size:10px!important;line-height:1.45!important;padding:7px 10px!important;margin-top:2px!important}.ess-auth-version{display:none!important}
}

/* ===== v7.0 FINAL desktop login viewport lock =====
   Browser zoom stays at 100%. The whole login is intentionally rendered compact. */
@media (min-width: 901px){
  html, body.login-page{width:100%;height:100%;min-height:100%;}
  body.login-page{
    margin:0!important;
    padding:18px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
  }
  body.login-page .ess-auth-card{
    width:min(1000px, calc(100vw - 120px))!important;
    height:min(560px, calc(100vh - 70px))!important;
    min-width:0!important;
    min-height:0!important;
    max-width:1000px!important;
    max-height:560px!important;
    margin:0!important;
    border-radius:16px!important;
    grid-template-columns:50% 50%!important;
  }
  body.login-page .ess-auth-visual,
  body.login-page .ess-auth-panel{min-width:0!important;min-height:0!important;}
  body.login-page .ess-auth-visual img{
    width:100%!important;height:100%!important;
    object-fit:cover!important;object-position:center!important;
  }
  body.login-page .ess-auth-panel{padding:0 34px!important;}
  body.login-page .ess-auth-form{
    width:100%!important;max-width:390px!important;
    padding:0!important;margin:0 auto!important;
    gap:10px!important;
  }
  body.login-page .ess-auth-title{margin:0 0 4px!important;}
  body.login-page .ess-auth-title h1{font-size:25px!important;margin:0 0 4px!important;}
  body.login-page .ess-auth-title p{font-size:11px!important;}
  body.login-page .ess-auth-field{gap:5px!important;}
  body.login-page .ess-auth-field label{font-size:10.5px!important;}
  body.login-page .ess-auth-input{height:40px!important;padding:0 11px!important;}
  body.login-page .ess-auth-input input{font-size:12px!important;}
  body.login-page .ess-auth-input>i{font-size:14px!important;}
  body.login-page .ess-password-toggle{width:34px!important;height:34px!important;font-size:14px!important;}
  body.login-page .ess-auth-options{min-height:20px!important;}
  body.login-page .ess-auth-options label,
  body.login-page .ess-auth-options a{font-size:10.5px!important;}
  body.login-page .ess-auth-options input{width:13px!important;height:13px!important;}
  body.login-page .ess-auth-submit,
  body.login-page .ess-face-login{height:40px!important;font-size:12px!important;}
  body.login-page .ess-face-login i{font-size:18px!important;}
  body.login-page .ess-auth-divider{font-size:10px!important;gap:10px!important;}
  body.login-page .ess-auth-security{font-size:9px!important;padding:6px 8px!important;gap:8px!important;line-height:1.35!important;}
  body.login-page .ess-auth-security i{font-size:15px!important;}
  body.login-page .ess-auth-copyright{left:30px!important;bottom:16px!important;font-size:8.5px!important;}
}
@media (min-width:901px) and (max-height:690px){
  body.login-page .ess-auth-card{height:calc(100vh - 36px)!important;max-height:525px!important;width:min(940px,calc(100vw - 90px))!important;max-width:940px!important;}
  body.login-page .ess-auth-form{gap:8px!important;max-width:375px!important;}
  body.login-page .ess-auth-input,body.login-page .ess-auth-submit,body.login-page .ess-face-login{height:37px!important;}
}


/* ===== V8 Dashboard precision match to supplied desktop reference ===== */
@media (min-width:901px){
  body:not(.login-page){background:#f8faff}
  .shell{grid-template-columns:252px minmax(0,1fr);min-height:100vh}
  .side{width:auto;background:#fff;border-right:1px solid #e7edf6;padding:27px 18px 18px;box-shadow:none}
  .brand{margin:0 7px 38px;gap:11px}.brand img{width:54px;height:54px}.brand b{font-size:18px;letter-spacing:-.3px}.brand small{font-size:10px;color:#5e7398}
  .nav{gap:6px}.nav a{min-height:43px;padding:11px 14px;border-radius:9px;font-size:12px;gap:13px}.nav a i{font-size:16px}.nav a.on{background:linear-gradient(135deg,#2d89ff 0%,#1856f2 100%);box-shadow:0 8px 18px rgba(32,102,240,.18)}
  .side-security-card{margin-top:auto;border:1px solid #e3eaf4;background:linear-gradient(180deg,#f8fbff 0%,#f3f7fd 100%);border-radius:10px;padding:14px 11px 15px;text-align:center;color:#173767}.side-security-card img{display:block;width:78px;height:78px;object-fit:contain;margin:0 auto 4px}.side-security-card strong{display:block;font-size:10px;color:#0b2656}.side-security-card p{margin:5px 0 0;font-size:9px;line-height:1.5;color:#7185a5}.side-logout{display:none}
  .top{height:78px;padding:0 27px;border-bottom:1px solid #e7edf6}.menu-toggle{width:44px;height:44px;border-radius:9px}.top-left b{font-size:16px}.ess-top-bell{width:44px;height:44px;border-radius:9px}.ess-top-avatar{width:42px;height:42px}.ess-top-user{min-width:140px}.ess-top-user b{font-size:10px}.ess-top-user span{font-size:10px}.ess-top-logout{font-size:16px}
  .content{max-width:none;padding:27px 31px 30px;overflow-x:hidden}
  .ess-home{display:grid;gap:15px}
  .ess-welcome{position:relative;min-height:112px;padding:4px 5px 8px;overflow:hidden}.ess-welcome-copy{position:relative;z-index:3}.ess-welcome p{font-size:12px;margin:0 0 10px}.ess-welcome h1{font-size:27px;letter-spacing:-.8px;margin:0 0 7px}.ess-welcome span{font-size:11px}.ess-welcome:after{display:none}.ess-welcome-building{display:block!important;position:absolute!important;right:105px!important;bottom:-5px!important;width:390px!important;height:130px!important;object-fit:contain!important;object-position:right bottom!important;opacity:.54!important;z-index:1!important}.ess-welcome-mark{display:block!important;position:absolute!important;right:18px!important;top:18px!important;width:52px!important;height:52px!important;object-fit:contain!important;z-index:2!important}
  .ess-overview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) minmax(280px,1.28fr);gap:14px}.ess-stat-grid,.ess-summary-row{display:contents}
  .ess-stat-card,.ess-approval-card,.ess-leave-card,.ess-panel{background:#fff;border:1px solid #e3eaf4;border-radius:10px;box-shadow:0 5px 16px rgba(22,64,116,.035)}
  .ess-stat-card,.ess-approval-card{min-height:196px;padding:23px 19px 16px;display:grid;grid-template-columns:58px minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:14px;align-content:start}.ess-stat-icon{width:58px;height:58px;font-size:21px}.ess-stat-card>div:nth-child(2),.ess-approval-card>div:nth-child(2){padding-top:2px}.ess-stat-card span,.ess-approval-card span{display:block;font-size:10px;line-height:1.35;color:#5a7197}.ess-stat-card strong,.ess-approval-card strong{display:inline-block;font-size:27px;line-height:1.08;margin-top:6px;color:#0a2253}.ess-stat-card small,.ess-approval-card small{font-size:10px;color:#61779b}.ess-stat-card p,.ess-approval-card p{grid-column:1/-1;align-self:end;margin:17px 0 0;font-size:9.5px;color:#647b9e}.ess-approval-card p{display:flex;justify-content:space-between;align-items:center}.ess-approval-card p i{font-size:10px}
  .ess-leave-card{min-height:196px;padding:20px 19px;display:flex;justify-content:space-between;align-items:center;gap:10px}.ess-leave-copy>span{font-size:10px}.ess-leave-copy h2{font-size:17px;line-height:1.15;margin:7px 0 13px}.ess-legend{font-size:10px;gap:8px}.ess-gradient-donut{width:128px;height:128px;flex:0 0 128px}.ess-gradient-donut:after{inset:21px}.ess-gradient-donut strong{font-size:23px}
  .ess-main-grid{display:grid;grid-template-columns:minmax(0,1.16fr) minmax(380px,.84fr);gap:14px}.ess-panel{padding:18px}.ess-panel-head{margin-bottom:13px}.ess-panel-head h2{font-size:15px}.panel-icon{width:39px;height:39px;border-radius:10px}.ess-panel-head>a{padding:7px 12px;font-size:10px}
  .ess-schedule-panel .ess-empty{min-height:187px}.empty-schedule-image{display:block;width:165px;height:100px;object-fit:contain;margin:-2px auto 1px;mix-blend-mode:multiply}.ess-empty b{font-size:12px}.ess-empty p{font-size:10px}
  .ess-activity{grid-template-columns:37px minmax(0,1fr) auto;gap:11px;padding:8px 0}.activity-icon{width:37px;height:37px}.ess-activity b{font-size:10px}.ess-activity span{font-size:9px}.ess-activity .status{font-size:8px;padding:5px 9px}
  .ess-quick-panel{padding:17px}.ess-quick-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:13px}.ess-quick-grid a,.ess-quick-grid button{min-height:56px;border:1px solid #e6edf6;border-radius:7px;padding:7px 14px;display:flex;align-items:center;justify-content:flex-start;gap:10px;font-size:9px}.ess-quick-grid span{width:37px;height:37px;flex:0 0 37px;font-size:14px}
  .attendance-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.attendance-head h3{margin:0}.attendance-head .btn{display:inline-flex;align-items:center;gap:7px;text-decoration:none}
}
@media (max-width:900px){
  .side-security-card{display:none}.side-logout{display:flex}
  .ess-welcome-building{display:block;position:absolute;right:-35px;bottom:0;width:245px;height:112px;object-fit:contain;opacity:.45;z-index:0}.ess-welcome-mark{display:block;position:absolute;right:7px;top:48px;width:47px;height:47px;z-index:2}.ess-welcome-copy{position:relative;z-index:3}
  .empty-schedule-image{display:block;width:145px;height:91px;object-fit:contain;margin:0 auto;mix-blend-mode:multiply}
  .ess-quick-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.ess-quick-grid a,.ess-quick-grid button{font-size:8px}
}
@media (max-width:560px){.ess-quick-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.ess-quick-grid a:nth-child(6){display:none}.ess-welcome-building{right:-55px;width:225px}.empty-schedule-image{width:132px;height:82px}}

/* ===== V9 layout stability patch =====
   Fixes: desktop sidebar collapse width, security card visibility,
   mobile hero building artwork, and content overflow/alignment. */
@media (min-width:901px){
  /* Sidebar must really collapse; V8 .shell rule was overriding this. */
  .shell.collapsed{grid-template-columns:76px minmax(0,1fr)!important}
  .shell.collapsed .side{padding:18px 10px!important;overflow:hidden!important}
  .shell.collapsed .brand{margin:0 0 22px!important;justify-content:center!important}
  .shell.collapsed .brand img{width:42px!important;height:42px!important}
  .shell.collapsed .brand-copy,
  .shell.collapsed .nav-label,
  .shell.collapsed .nav-count,
  .shell.collapsed .side-security-card{display:none!important}
  .shell.collapsed .nav a{justify-content:center!important;padding:10px 0!important;min-height:40px!important}
  .shell.collapsed .nav a i{font-size:17px!important}
  .shell.collapsed .side-logout{display:flex!important;justify-content:center!important;margin-top:auto!important;border-top:1px solid #edf1f6!important;padding:12px 0!important}

  /* Normal sidebar: fit all content inside a 100% browser viewport. */
  .side{
    height:100dvh!important;
    min-height:100dvh!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    scrollbar-width:none;
    padding:20px 16px 14px!important;
  }
  .side::-webkit-scrollbar{display:none}
  .brand{margin:0 7px 20px!important}
  .brand img{width:50px!important;height:50px!important}
  .nav{display:grid!important;gap:2px!important}
  .nav a{min-height:38px!important;padding:8px 12px!important;margin:1px 0!important}
  .side-security-card{
    display:block!important;
    margin-top:auto!important;
    flex:0 0 auto!important;
    padding:9px 9px 11px!important;
  }
  .side-security-card img{width:58px!important;height:58px!important;margin-bottom:2px!important}
  .side-security-card strong{font-size:9.5px!important}
  .side-security-card p{font-size:8px!important;line-height:1.35!important;margin-top:3px!important}
  .side-logout{display:none!important}

  /* Keep the content column stable while the sidebar animates. */
  .main{width:100%;min-width:0!important;overflow-x:hidden}
  .content{width:100%;min-width:0!important}
  .ess-overview-grid,.ess-main-grid,.ess-quick-grid{min-width:0}
  .ess-stat-card,.ess-approval-card,.ess-leave-card,.ess-panel{min-width:0}
}

@media (max-width:900px){
  /* Mobile drawer is independent from desktop collapsed state. */
  .shell{display:block!important}
  .side{
    width:min(286px,86vw)!important;
    height:100dvh!important;
    left:calc(-1 * min(286px,86vw))!important;
    padding:20px 16px 18px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    background:#fff!important;
  }
  .mobile-open .side{left:0!important}
  .mobile-open .side-overlay{opacity:1!important;visibility:visible!important}
  .side .brand{margin:0 4px 22px!important}
  .side .nav{display:grid;gap:3px}
  .side .nav a{min-height:42px;padding:10px 12px;margin:0}
  .side-security-card{display:none!important}
  .side-logout{display:flex!important;margin-top:18px!important}

  /* Hero artwork: building is visible on mobile exactly as part of the dashboard header. */
  .ess-welcome{
    min-height:145px!important;
    padding:18px 9px 16px!important;
    isolation:isolate;
    overflow:hidden!important;
    border-radius:0;
  }
  .ess-welcome:before{
    content:"";
    position:absolute;
    inset:0;
    z-index:1;
    pointer-events:none;
    background:linear-gradient(90deg,rgba(248,250,255,.98) 0%,rgba(248,250,255,.92) 42%,rgba(248,250,255,.28) 70%,rgba(248,250,255,0) 100%);
  }
  .ess-welcome-copy{position:relative!important;z-index:3!important;max-width:68%}
  .ess-welcome-building{
    display:block!important;
    position:absolute!important;
    right:-16px!important;
    bottom:-2px!important;
    width:255px!important;
    height:132px!important;
    max-width:62vw!important;
    object-fit:contain!important;
    object-position:right bottom!important;
    opacity:.72!important;
    z-index:0!important;
  }
  .ess-welcome-mark{
    display:block!important;
    position:absolute!important;
    right:8px!important;
    top:50px!important;
    width:43px!important;
    height:43px!important;
    object-fit:contain!important;
    z-index:2!important;
  }

  /* Prevent dashboard cards/text from overflowing narrow screens. */
  .content{width:100%!important;max-width:760px!important;margin:0 auto!important;overflow-x:hidden!important}
  .ess-home,.ess-overview-grid,.ess-main-grid,.ess-panel,.ess-quick-grid{width:100%;min-width:0}
  .ess-stat-card,.ess-approval-card,.ess-leave-card,.ess-activity{min-width:0!important}
  .ess-panel{overflow:hidden!important}
  .ess-panel-head{gap:8px}
  .ess-panel-head h2{min-width:0;white-space:normal}
  .ess-activity>div:nth-child(2){min-width:0}
}

@media (max-width:560px){
  .ess-mobile-appbar{min-height:76px!important;padding-top:10px!important}
  .ess-welcome{min-height:136px!important;padding:14px 4px 12px!important}
  .ess-welcome-copy{max-width:70%}
  .ess-welcome p{font-size:11px!important;margin-bottom:6px!important}
  .ess-welcome h1{font-size:19px!important;line-height:1.2!important}
  .ess-welcome span{font-size:9.5px!important;line-height:1.45!important}
  .ess-welcome-building{right:-35px!important;width:225px!important;height:122px!important;max-width:64vw!important}
  .ess-welcome-mark{right:3px!important;top:48px!important;width:38px!important;height:38px!important}
  .ess-overview-grid{gap:8px!important}
  .ess-stat-card,.ess-approval-card,.ess-leave-card{border-radius:11px!important}
  .ess-main-grid{gap:11px!important}
  .ess-panel{padding:13px!important;border-radius:11px!important}
  .ess-quick-panel{padding:13px 9px!important}
}


/* ===== V10 FINAL DASHBOARD STABILITY =====
   Desktop is locked to the approved reference proportions at browser 100%.
   Sidebar collapse changes width only; dashboard composition stays intact. */
@media (min-width:901px){
  html,body{overflow-x:hidden}
  .shell{grid-template-columns:242px minmax(0,1fr)!important;min-height:100vh!important}
  .shell.collapsed{grid-template-columns:76px minmax(0,1fr)!important}
  .side{height:100vh!important;min-height:100vh!important;padding:18px 14px 14px!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;background:#fff!important;border-right:1px solid #e5ebf4!important}
  .brand{flex:0 0 auto!important;margin:0 6px 22px!important;min-height:54px!important;gap:10px!important}
  .brand img{width:46px!important;height:46px!important}.brand b{font-size:16px!important}.brand small{font-size:9px!important}
  .nav{flex:0 0 auto!important;display:grid!important;gap:3px!important}.nav a{min-height:38px!important;padding:8px 12px!important;margin:0!important;font-size:11.5px!important}.nav a i{font-size:14px!important;width:18px!important}
  .side-security-card{display:grid!important;place-items:center!important;margin-top:auto!important;padding:9px 8px 10px!important;min-height:142px!important;max-height:142px!important;border-radius:9px!important;overflow:hidden!important}
  .side-security-card img{width:64px!important;height:64px!important;object-fit:contain!important;margin:0 auto 1px!important}.side-security-card strong{font-size:9.5px!important}.side-security-card p{font-size:7.5px!important;line-height:1.35!important;margin:2px 0 0!important;text-align:center!important}
  .side-logout{display:none!important}
  .shell.collapsed .side{padding:18px 9px 14px!important}.shell.collapsed .brand{justify-content:center!important;margin:0 0 22px!important}.shell.collapsed .brand img{width:44px!important;height:44px!important}.shell.collapsed .brand-copy,.shell.collapsed .nav-label,.shell.collapsed .nav-count,.shell.collapsed .side-security-card{display:none!important}.shell.collapsed .nav a{justify-content:center!important;padding:8px 0!important}.shell.collapsed .nav a i{width:auto!important;font-size:16px!important}.shell.collapsed .side-logout{display:flex!important;margin-top:auto!important;justify-content:center!important;padding:11px 0!important;border-top:1px solid #edf1f6!important}

  .main{width:100%!important;min-width:0!important;overflow-x:hidden!important}.top{height:72px!important;padding:0 24px!important}.content{width:100%!important;max-width:none!important;margin:0!important;padding:18px 24px 24px!important;overflow-x:hidden!important}
  .ess-home{display:grid!important;gap:12px!important;width:100%!important;min-width:0!important}.ess-mobile-appbar{display:none!important}
  .ess-welcome{min-height:92px!important;padding:5px 4px 7px!important;overflow:hidden!important}.ess-welcome p{font-size:10.5px!important;margin:0 0 7px!important}.ess-welcome h1{font-size:24px!important;line-height:1.12!important;margin:0 0 5px!important}.ess-welcome span{font-size:10px!important}.ess-welcome-building{right:82px!important;bottom:-10px!important;width:330px!important;height:108px!important;opacity:.48!important}.ess-welcome-mark{right:10px!important;top:13px!important;width:46px!important;height:46px!important}

  .ess-overview-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr)) minmax(230px,1.2fr)!important;gap:12px!important;width:100%!important}.ess-stat-grid,.ess-summary-row{display:contents!important}
  .ess-stat-card,.ess-approval-card,.ess-leave-card{min-width:0!important;min-height:166px!important;border-radius:9px!important}
  .ess-stat-card,.ess-approval-card{padding:18px 15px 13px!important;grid-template-columns:48px minmax(0,1fr)!important;column-gap:11px!important}.ess-stat-icon{width:48px!important;height:48px!important;font-size:18px!important}.ess-stat-card span,.ess-approval-card span{font-size:9px!important}.ess-stat-card strong,.ess-approval-card strong{font-size:24px!important;margin-top:4px!important}.ess-stat-card small,.ess-approval-card small{font-size:9px!important}.ess-stat-card p,.ess-approval-card p{font-size:8.5px!important;margin-top:11px!important}
  .ess-leave-card{padding:16px 14px!important;gap:8px!important}.ess-leave-copy>span{font-size:8.5px!important}.ess-leave-copy h2{font-size:15px!important;margin:5px 0 9px!important}.ess-legend{font-size:8.5px!important;gap:6px!important}.ess-gradient-donut{width:108px!important;height:108px!important;flex:0 0 108px!important}.ess-gradient-donut:after{inset:18px!important}.ess-gradient-donut strong{font-size:20px!important}

  .ess-main-grid{display:grid!important;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr)!important;gap:12px!important;width:100%!important}.ess-panel{min-width:0!important;border-radius:9px!important;padding:15px!important}.ess-panel-head{margin-bottom:9px!important}.ess-panel-head h2{font-size:13.5px!important}.panel-icon{width:34px!important;height:34px!important;border-radius:8px!important}.ess-panel-head>a{font-size:8.5px!important;padding:6px 10px!important}.ess-schedule-panel .ess-empty{min-height:178px!important}.empty-schedule-image{width:145px!important;height:88px!important}.ess-empty b{font-size:11px!important}.ess-empty p{font-size:8.5px!important}.ess-activity{grid-template-columns:32px minmax(0,1fr) auto!important;gap:9px!important;padding:6px 0!important}.activity-icon{width:32px!important;height:32px!important}.ess-activity b{font-size:9px!important}.ess-activity span{font-size:8px!important}.ess-activity .status{font-size:7.5px!important;padding:4px 7px!important}
  .ess-quick-panel{padding:13px 15px!important}.ess-quick-panel .ess-panel-head{margin-bottom:8px!important}.ess-quick-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:10px!important}.ess-quick-grid a,.ess-quick-grid button{min-height:48px!important;padding:6px 10px!important;font-size:8.5px!important;gap:8px!important}.ess-quick-grid span{width:32px!important;height:32px!important;flex:0 0 32px!important;font-size:13px!important}
}

/* intermediate desktop widths: preserve all five top cards in one row instead of dropping the summary */
@media (min-width:901px) and (max-width:1320px){
  .content{padding-left:18px!important;padding-right:18px!important}
  .ess-overview-grid{grid-template-columns:repeat(4,minmax(0,1fr)) minmax(210px,1.12fr)!important;gap:9px!important}
  .ess-stat-card,.ess-approval-card,.ess-leave-card{min-height:158px!important}.ess-stat-card,.ess-approval-card{padding:15px 11px 11px!important;grid-template-columns:42px minmax(0,1fr)!important;column-gap:8px!important}.ess-stat-icon{width:42px!important;height:42px!important;font-size:16px!important}.ess-stat-card strong,.ess-approval-card strong{font-size:21px!important}.ess-leave-card{padding:13px 10px!important}.ess-gradient-donut{width:92px!important;height:92px!important;flex-basis:92px!important}.ess-gradient-donut:after{inset:15px!important}.ess-gradient-donut strong{font-size:17px!important}.ess-leave-copy h2{font-size:13px!important}
  .ess-main-grid{grid-template-columns:minmax(0,1.15fr) minmax(290px,.85fr)!important}
}

/* Mobile: clean single-column dashboard with the supplied building artwork visible in the header. */
@media (max-width:900px){
  .content{width:100%!important;max-width:760px!important;margin:0 auto!important;padding:0 14px calc(106px + env(safe-area-inset-bottom))!important;overflow-x:hidden!important}
  .ess-mobile-appbar{display:flex!important;min-height:78px!important;padding:10px 0 7px!important}.ess-welcome{min-height:138px!important;padding:14px 5px 12px!important}.ess-welcome-copy{max-width:68%!important}.ess-welcome-building{display:block!important;right:-28px!important;bottom:-3px!important;width:236px!important;height:124px!important;max-width:64vw!important;opacity:.67!important}.ess-welcome-mark{display:block!important;right:2px!important;top:46px!important;width:40px!important;height:40px!important}
  .ess-overview-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px!important}.ess-stat-card{grid-column:span 2!important}.ess-approval-card{grid-column:span 2!important}.ess-leave-card{grid-column:span 4!important}.ess-stat-card,.ess-approval-card{min-height:150px!important}.ess-leave-card{min-height:166px!important}.ess-main-grid{grid-template-columns:1fr!important;gap:10px!important}.ess-panel{overflow:hidden!important}.ess-quick-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}.ess-quick-grid a:nth-child(6){display:none!important}
}
@media (max-width:430px){
  .content{padding-left:10px!important;padding-right:10px!important}.ess-welcome h1{font-size:18px!important}.ess-welcome span{font-size:9px!important}.ess-stat-card{padding:11px 8px!important;min-height:145px!important}.ess-leave-card{padding:11px 9px!important}.ess-gradient-donut{width:88px!important;height:88px!important}.ess-panel{padding:12px!important}.ess-quick-panel{padding:11px 7px!important}
}

/* ===== V19 interactive school ESS patch ===== */
@media(min-width:901px){.ess-mobile-menu{display:none!important}.menu-toggle{display:flex!important}.content{max-width:1480px;padding-top:24px}.shell.collapsed{grid-template-columns:82px minmax(0,1fr)}.shell.collapsed .side{padding-left:12px;padding-right:12px}.shell.collapsed .brand-copy,.shell.collapsed .nav-label,.shell.collapsed .side-security-card{display:none}.shell.collapsed .brand{justify-content:center}.shell.collapsed .nav a{justify-content:center}.shell.collapsed .nav a i{margin:0}.shell.collapsed .brand img{width:42px;height:42px}}
.ess-top-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.ess-welcome-v19{background:linear-gradient(135deg,#fff 0%,#f7faff 100%);border:1px solid #e2e9f2;border-radius:12px;padding:20px 22px;min-height:120px;margin-bottom:14px}.ess-kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:14px}.ess-kpi-grid a{min-height:92px;background:#fff;border:1px solid #e2e9f2;border-radius:10px;padding:15px;display:flex;align-items:center;gap:12px;text-decoration:none;color:#172033;box-shadow:0 5px 14px rgba(17,52,93,.03)}.ess-kpi-grid>a>i{width:40px;height:40px;flex:0 0 40px;border-radius:10px;background:#edf5ff;color:#206fd8;display:grid;place-items:center;font-size:16px}.ess-kpi-grid small,.ess-kpi-grid b{display:block}.ess-kpi-grid small{font-size:8px;color:#7c8a9d;margin-bottom:4px}.ess-kpi-grid b{font-size:11px}.ess-main-v19{display:grid;grid-template-columns:1.25fr .75fr;gap:14px}.ess-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.ess-section-head h3,.ess-section-head p{margin:0}.ess-section-head h3{font-size:15px}.ess-section-head p{font-size:9px;color:#7c8b9c;margin-top:4px}.ess-section-head>a{font-size:9px;text-decoration:none;color:#1677e8;font-weight:700}.timeline-list{display:grid}.timeline-list>div{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid #edf1f5}.timeline-list>div:last-child{border-bottom:0}.timeline-list time{font-size:11px;font-weight:800;color:#176ccb}.timeline-list b,.timeline-list small{display:block}.timeline-list b{font-size:10px}.timeline-list small{font-size:8px;color:#7a899a;margin-top:3px}.timeline-list em{font-size:8px;font-style:normal;color:#65778c;background:#f1f5f9;padding:5px 7px;border-radius:99px}.empty-friendly{text-align:center;padding:12px 0 4px}.empty-friendly img{width:125px;height:80px;object-fit:contain}.empty-friendly b,.empty-friendly span{display:block}.empty-friendly b{font-size:10px}.empty-friendly span{font-size:8px;color:#7b8b9d;margin-top:4px}.ess-quick-v19{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ess-quick-v19 a{display:grid;place-items:center;gap:7px;min-height:74px;border:1px solid #e5ebf2;border-radius:9px;text-decoration:none;color:#53667c;font-size:9px;font-weight:700}.ess-quick-v19 i{font-size:17px;color:#176fd7}.geo-status{font-size:8px;color:#176fd7;background:#eef6ff;padding:6px 8px;border-radius:99px}.face-zone{display:grid;grid-template-columns:190px 1fr;gap:16px;align-items:center}.face-frame{height:150px;border:1px dashed #b9c7d9;border-radius:12px;background:linear-gradient(180deg,#f8fbff,#f1f6fb);display:grid;place-items:center;align-content:center;gap:8px}.face-frame i{font-size:42px;color:#3c75b8}.face-frame span{font-size:8px;color:#73869e}.face-zone form{display:flex;gap:10px;flex-wrap:wrap}.ess-pill{display:inline-block;padding:4px 8px;border-radius:99px;background:#edf5ff;color:#1765bf;font-size:8px;font-weight:800}.ess-search{border:1px solid #d8e1ea;border-radius:7px;padding:9px 11px;font:inherit;background:#fff}.ess-search.small{width:220px;font-size:9px}.schedule-grid-v19{display:grid;gap:8px}.schedule-row{display:grid;grid-template-columns:82px 110px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px;border:1px solid #e7edf4;border-radius:9px}.day-badge{font-size:8px;font-weight:800;color:#1765bf;background:#edf5ff;padding:6px 8px;border-radius:99px;text-align:center}.schedule-row time{font-size:9px;font-weight:700}.schedule-row b,.schedule-row small{display:block}.schedule-row b{font-size:10px}.schedule-row small{font-size:8px;color:#78889a;margin-top:3px}.schedule-row em{font-size:8px;font-style:normal;color:#738197}.subject-grid-v19{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.subject-card-v19{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:center;gap:11px;border:1px solid #e5ebf2;border-radius:10px;padding:12px}.subject-icon{width:42px;height:42px;border-radius:10px;background:#eef6ff;color:#1677e8;display:grid;place-items:center}.subject-card-v19 span,.subject-card-v19 b,.subject-card-v19 small{display:block}.subject-card-v19 span{font-size:7px;color:#176fd7}.subject-card-v19 b{font-size:10px;margin:3px 0}.subject-card-v19 small{font-size:8px;color:#7a8a9b}.subject-card-v19 img{width:42px;height:42px;border-radius:50%;object-fit:cover}.ess-directory-search{position:relative;display:flex;margin-bottom:16px}.ess-directory-search>i{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#7b8998;font-size:11px}.ess-directory-search input{flex:1;height:42px;border:1px solid #d9e2eb;border-radius:8px 0 0 8px;padding:0 14px 0 36px;font:inherit;font-size:10px}.ess-directory-search button{border:0;background:#176fd7;color:#fff;padding:0 18px;border-radius:0 8px 8px 0;font-weight:700}.teacher-grid-v19{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.teacher-card-v19{border:1px solid #e4ebf3;border-radius:12px;padding:14px;background:#fff}.teacher-card-v19>img{width:72px;height:72px;border-radius:14px;object-fit:cover;display:block;margin-bottom:12px}.teacher-main>span{display:inline-block;padding:4px 7px;border-radius:99px;background:#edf5ff;color:#176fd7;font-size:7px;font-weight:800}.teacher-main h3{font-size:12px;margin:7px 0 3px}.teacher-main p{font-size:8px;color:#718297;margin:0;min-height:22px}.teacher-card-v19 dl{margin:12px 0 0;border-top:1px solid #edf1f5;padding-top:10px}.teacher-card-v19 dl>div{display:grid;grid-template-columns:56px 1fr;gap:8px;padding:4px 0}.teacher-card-v19 dt{font-size:7px;color:#8a97a7}.teacher-card-v19 dd{margin:0;font-size:8px;font-weight:600;overflow:hidden;text-overflow:ellipsis}.grade-summary-v19,.finance-kpi-v19{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:14px}.grade-summary-v19>div,.finance-kpi-v19>div{background:#fff;border:1px solid #e3eaf2;border-radius:10px;padding:14px}.grade-summary-v19 span,.grade-summary-v19 b,.finance-kpi-v19 span,.finance-kpi-v19 b{display:block}.grade-summary-v19 span,.finance-kpi-v19 span{font-size:8px;color:#7b8b9e}.grade-summary-v19 b,.finance-kpi-v19 b{font-size:16px;margin-top:5px}.grade-badge{display:inline-grid;place-items:center;min-width:36px;padding:5px 7px;border-radius:99px;background:#eaf8ef;color:#16945e}.grade-badge.low{background:#fff0ee;color:#d84b43}.class-grid-v19{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.class-grid-v19 article{position:relative}.class-icon{width:42px;height:42px;border-radius:10px;background:#eef6ff;color:#1677e8;display:grid;place-items:center}.class-grid-v19 h3{font-size:13px;margin:12px 0 4px}.class-grid-v19 p{font-size:9px;color:#738399}.class-grid-v19 article>div:last-child{display:flex;justify-content:space-between;font-size:8px;color:#62758c;border-top:1px solid #edf1f5;padding-top:10px}.exam-grid-ess{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.exam-grid-ess>article{border:1px solid #e4eaf2;border-radius:11px;padding:14px}.exam-status-row{display:flex;justify-content:space-between;align-items:center}.exam-status-row span{font-size:7px;color:#176fd7;background:#edf5ff;padding:4px 7px;border-radius:99px;font-weight:800}.exam-status-row em{font-size:7px;font-style:normal;color:#62758c}.exam-grid-ess h3{font-size:11px;margin:11px 0 4px}.exam-grid-ess>article>p{font-size:8px;color:#74859a;margin:0}.exam-grid-ess dl{display:grid;grid-template-columns:repeat(3,1fr);margin:12px 0;gap:6px}.exam-grid-ess dt{font-size:7px;color:#8997a7}.exam-grid-ess dd{margin:3px 0 0;font-size:8px;font-weight:700;word-break:break-word}.exam-grid-ess .btn{width:100%;justify-content:center}.exam-take-head{display:grid;grid-template-columns:100px 1fr auto;align-items:center;gap:14px;margin-bottom:14px}.exam-take-head>a{font-size:9px;text-decoration:none;color:#176fd7}.exam-take-head span{font-size:7px;color:#176fd7;font-weight:800}.exam-take-head h2{font-size:18px;margin:4px 0}.exam-take-head p{font-size:9px;color:#748398;margin:0}.exam-take-head>b{font-size:10px;background:#eef6ff;color:#176fd7;padding:8px 10px;border-radius:99px}.exam-start-card{text-align:center;padding:34px}.exam-start-card>i{font-size:38px;color:#176fd7}.exam-start-card h3{font-size:15px}.exam-start-card p{font-size:10px;color:#6e8096}.exam-paper-v19{display:grid;gap:12px}.exam-question{padding:18px}.question-no{display:flex;justify-content:space-between;color:#176fd7;font-size:8px;font-weight:800}.exam-question h3{font-size:12px;line-height:1.6}.answer-option{display:flex;gap:9px;align-items:flex-start;padding:10px;border:1px solid #e5ebf2;border-radius:8px;margin:7px 0;font-size:9px;cursor:pointer}.exam-essay{width:100%;min-height:120px;border:1px solid #d8e1ea;border-radius:8px;padding:11px;font:inherit}.exam-submit-bar{position:sticky;bottom:12px;background:#fff;border:1px solid #dfe7ef;border-radius:10px;padding:12px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 10px 30px rgba(25,57,96,.12);font-size:8px}.profile-hero-v19{display:grid;grid-template-columns:88px 1fr auto;align-items:center;gap:16px;background:linear-gradient(135deg,#fff,#f3f8ff);border:1px solid #e1e9f2;border-radius:12px;padding:18px;margin-bottom:14px}.profile-hero-v19>img{width:88px;height:88px;border-radius:16px;object-fit:cover}.profile-hero-v19>div:nth-child(2)>span{font-size:8px;color:#176fd7;font-weight:800}.profile-hero-v19 h2{font-size:18px;margin:4px 0}.profile-hero-v19 p{font-size:9px;color:#748398;margin:0}.id-card-mini{min-width:180px;padding:12px;border-radius:10px;background:#0e3a70;color:#fff}.id-card-mini i{font-size:18px}.id-card-mini span,.id-card-mini b{display:block}.id-card-mini span{font-size:7px;opacity:.7;margin:7px 0 3px}.id-card-mini b{font-size:10px}.bio-grid-v19{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.bio-grid-v19>div{padding:11px;border:1px solid #e8edf3;border-radius:8px;background:#fbfdff}.bio-grid-v19 span,.bio-grid-v19 b{display:block}.bio-grid-v19 span{font-size:7px;color:#8795a6;margin-bottom:5px}.bio-grid-v19 b{font-size:9px;line-height:1.45;word-break:break-word}
@media(max-width:1100px){.ess-kpi-grid{grid-template-columns:repeat(3,1fr)}.teacher-grid-v19,.exam-grid-ess{grid-template-columns:repeat(2,1fr)}.bio-grid-v19{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.menu-toggle{display:flex!important}.ess-kpi-grid{grid-template-columns:1fr 1fr}.ess-main-v19{grid-template-columns:1fr}.teacher-grid-v19,.exam-grid-ess{grid-template-columns:1fr 1fr}.face-zone{grid-template-columns:1fr}.face-frame{height:120px}.subject-grid-v19{grid-template-columns:1fr}.schedule-row{grid-template-columns:70px 92px 1fr}.schedule-row em{display:none}}
@media(max-width:560px){.ess-kpi-grid{grid-template-columns:1fr 1fr;gap:8px}.ess-kpi-grid a{min-height:80px;padding:11px}.teacher-grid-v19,.exam-grid-ess,.class-grid-v19,.grade-summary-v19,.finance-kpi-v19,.bio-grid-v19{grid-template-columns:1fr}.ess-section-head{align-items:flex-start;flex-direction:column}.ess-search.small{width:100%}.schedule-row{grid-template-columns:64px 1fr}.schedule-row time{grid-column:2}.schedule-row>div{grid-column:1/-1}.profile-hero-v19{grid-template-columns:68px 1fr}.profile-hero-v19>img{width:68px;height:68px}.id-card-mini{grid-column:1/-1;min-width:0}.exam-take-head{grid-template-columns:1fr}.exam-submit-bar{flex-direction:column;gap:8px;align-items:stretch}.exam-submit-bar .btn{justify-content:center}.ess-top-user{display:none}}
/* ===== V19 School interactive pages ===== */
.ess-kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:16px 0}.ess-kpi-grid>a{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:15px;display:flex;align-items:center;gap:11px;text-decoration:none;color:#172033;min-height:92px}.ess-kpi-grid>a>i{width:42px;height:42px;display:grid;place-items:center;border-radius:10px;background:#edf5ff;color:#1769ca;font-size:18px}.ess-kpi-grid small,.ess-kpi-grid b{display:block}.ess-kpi-grid small{font-size:10px;color:#718096}.ess-kpi-grid b{margin-top:4px;font-size:15px}.ess-main-v19{display:grid;grid-template-columns:1.3fr .7fr;gap:16px}.ess-section-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:14px}.ess-section-head h3{margin:0 0 4px}.ess-section-head p{margin:0;color:#718096;font-size:11px}.ess-section-head>a{font-size:11px;text-decoration:none;color:#1769ca;font-weight:700}.ess-quick-v19{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.ess-quick-v19 a{border:1px solid #e5ebf2;border-radius:10px;padding:14px;text-decoration:none;color:#172033;display:flex;align-items:center;gap:10px}.ess-quick-v19 i{width:34px;height:34px;display:grid;place-items:center;border-radius:8px;background:#edf5ff;color:#1769ca}.timeline-list{display:grid}.timeline-list>div{display:grid;grid-template-columns:62px 1fr auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #edf0f4}.timeline-list>div:last-child{border-bottom:0}.timeline-list time{font-size:13px;font-weight:800;color:#0d5fb8}.timeline-list b,.timeline-list small{display:block}.timeline-list small{font-size:10px;color:#7b899b;margin-top:3px}.timeline-list em{font-size:10px;color:#627187;font-style:normal;background:#f5f7fa;padding:5px 7px;border-radius:6px}.empty-friendly{display:grid;place-items:center;padding:28px;text-align:center}.empty-friendly img{width:120px;opacity:.8}.empty-friendly b{margin-top:8px}.empty-friendly span{font-size:10px;color:#7b899b;margin-top:4px}.attendance-card-v19 .ess-section-head{margin-bottom:18px}.geo-status{font-size:10px;color:#46627f;background:#f4f8fd;border-radius:99px;padding:7px 10px}.face-zone{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:center}.face-frame{min-height:200px;border:1.5px dashed #b8c9de;border-radius:14px;background:linear-gradient(180deg,#f8fbff,#eef5fc);display:grid;place-items:center;align-content:center;gap:8px;color:#315d89}.face-frame i{font-size:58px}.face-frame span{font-weight:700}.face-zone form{display:grid;gap:10px}.face-zone .btn{justify-content:center}.ess-pill{display:inline-flex;padding:5px 8px;border-radius:99px;background:#edf5ff;color:#0d5fb8;font-size:10px;font-weight:700}.ess-search.small{max-width:270px;height:38px;padding:0 12px;border:1px solid #d8e0ea;border-radius:8px}.schedule-grid-v19{display:grid;gap:9px}.schedule-row{display:grid;grid-template-columns:78px 115px minmax(180px,1fr) auto;align-items:center;gap:12px;padding:12px 10px;border:1px solid #e7edf4;border-radius:9px;background:#fff}.schedule-row time{font-size:11px;font-weight:700}.schedule-row b,.schedule-row small{display:block}.schedule-row small{font-size:10px;color:#7b899b;margin-top:3px}.schedule-row em{font-size:10px;font-style:normal;color:#607188}.day-badge{background:#edf5ff;color:#1769ca;font-size:10px;font-weight:800;border-radius:6px;padding:6px 8px;text-align:center}.subject-grid-v19{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.subject-card-v19{display:grid;grid-template-columns:42px 1fr 46px;gap:10px;align-items:center;border:1px solid #e2e8f0;border-radius:10px;padding:14px;background:#fff}.subject-icon{width:42px;height:42px;border-radius:10px;background:#edf5ff;color:#1769ca;display:grid;place-items:center}.subject-card-v19 span,.subject-card-v19 b,.subject-card-v19 small{display:block}.subject-card-v19 span{font-size:9px;color:#7b899b}.subject-card-v19 b{font-size:13px;margin:2px 0}.subject-card-v19 small{font-size:9px;color:#607188}.subject-card-v19 img{width:46px;height:46px;border-radius:50%;object-fit:cover;background:#eef4fc}.teacher-grid-v19{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.teacher-card-v19{border:1px solid #e2e8f0;border-radius:12px;background:#fff;overflow:hidden}.teacher-card-v19 .teacher-cover{height:76px;background:linear-gradient(135deg,#eaf3ff,#f7fbff)}.teacher-card-v19 .teacher-avatar{width:74px;height:74px;border-radius:50%;object-fit:cover;margin:-38px 0 0 18px;border:4px solid #fff;background:#eef4fc}.teacher-card-v19 .teacher-body{padding:10px 18px 18px}.teacher-card-v19 h3{margin:4px 0 3px;font-size:15px}.teacher-card-v19 .teacher-role{font-size:10px;color:#61758b}.teacher-card-v19 .teacher-subjects{font-size:11px;line-height:1.55;color:#475467;min-height:34px}.teacher-meta-v19{display:grid;gap:5px;margin-top:10px}.teacher-meta-v19 span{font-size:10px;color:#607188}.teacher-meta-v19 i{width:18px;color:#1769ca}.teacher-actions-v19{display:flex;gap:7px;margin-top:12px}.grade-badge{display:inline-flex;min-width:44px;justify-content:center;padding:5px 7px;border-radius:6px;background:#ecfdf3;color:#067647}.grade-badge.low{background:#fff4ed;color:#c4320a}.finance-kpi-v19{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:16px}.finance-kpi-v19>div{background:#fff;border:1px solid #e2e8f0;border-radius:11px;padding:16px}.finance-kpi-v19 span,.finance-kpi-v19 b{display:block}.finance-kpi-v19 span{font-size:10px;color:#718096}.finance-kpi-v19 b{font-size:20px;margin-top:6px}.class-grid-v19{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.class-grid-v19 .class-icon{width:42px;height:42px;border-radius:9px;background:#edf5ff;color:#1769ca;display:grid;place-items:center}.class-grid-v19 h3{margin:12px 0 4px}.class-grid-v19 p{font-size:11px;color:#607188}.class-grid-v19 article>div:last-child{display:flex;gap:7px}.class-grid-v19 article>div:last-child span{font-size:9px;background:#f5f7fa;border-radius:6px;padding:5px 7px}.exam-grid-ess{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.exam-grid-ess article{border:1px solid #e2e8f0;border-radius:11px;padding:16px;background:#fff}.exam-status-row{display:flex;justify-content:space-between;align-items:center}.exam-status-row span{font-size:9px;font-weight:800;color:#607188}.exam-status-row em{font-size:9px;font-style:normal;background:#edf5ff;color:#1769ca;padding:4px 7px;border-radius:99px}.exam-grid-ess h3{font-size:15px;margin:12px 0 4px}.exam-grid-ess p{font-size:10px;color:#607188}.exam-grid-ess dl{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:13px 0}.exam-grid-ess dl div{background:#f7f9fc;border-radius:7px;padding:8px}.exam-grid-ess dt{font-size:8px;color:#7b899b}.exam-grid-ess dd{margin:3px 0 0;font-size:10px;font-weight:700}.exam-take-head{display:grid;grid-template-columns:auto 1fr auto;gap:15px;align-items:center;margin-bottom:16px}.exam-take-head>a{font-size:11px;color:#1769ca;text-decoration:none}.exam-take-head h2{margin:3px 0}.exam-take-head p{margin:0;font-size:11px;color:#607188}.exam-start-card{text-align:center;padding:34px}.exam-start-card>i{font-size:42px;color:#1769ca}.exam-paper-v19{display:grid;gap:14px}.exam-question .question-no{font-size:10px;color:#607188;font-weight:800}.question-no span{float:right;font-weight:600}.answer-option{display:flex;align-items:center;gap:9px;border:1px solid #e1e7ee;border-radius:8px;padding:10px;margin:7px 0;cursor:pointer}.answer-option:hover{background:#f8fbff}.exam-essay{width:100%;min-height:120px}.exam-submit-bar{position:sticky;bottom:12px;display:flex;justify-content:space-between;align-items:center;background:#fff;border:1px solid #dce4ed;border-radius:10px;padding:12px 14px;box-shadow:0 8px 30px rgba(20,48,80,.12)}.exam-submit-bar span{font-size:10px;color:#607188}.profile-hero-v19{display:grid;grid-template-columns:84px 1fr auto;gap:18px;align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:18px;margin-bottom:16px}.profile-hero-v19>img{width:84px;height:84px;border-radius:50%;object-fit:cover;background:#eef4fc}.profile-hero-v19 h2{margin:3px 0}.profile-hero-v19 p{margin:0;color:#607188;font-size:11px}.id-card-mini{min-width:210px;background:linear-gradient(135deg,#0d5fb8,#163d72);color:#fff;border-radius:10px;padding:14px}.id-card-mini i,.id-card-mini span,.id-card-mini b{display:block}.id-card-mini span{font-size:8px;opacity:.75;margin:8px 0 3px}.bio-grid-v19{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.bio-grid-v19>div{background:#f8fafc;border-radius:8px;padding:11px}.bio-grid-v19 span,.bio-grid-v19 b{display:block}.bio-grid-v19 span{font-size:9px;color:#7b899b}.bio-grid-v19 b{font-size:11px;margin-top:4px;line-height:1.45}
@media(max-width:1100px){.ess-kpi-grid{grid-template-columns:repeat(3,1fr)}.ess-main-v19{grid-template-columns:1fr}.subject-grid-v19,.teacher-grid-v19,.exam-grid-ess,.class-grid-v19{grid-template-columns:repeat(2,1fr)}.bio-grid-v19{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.ess-kpi-grid{grid-template-columns:repeat(2,1fr)}.face-zone{grid-template-columns:1fr}.teacher-grid-v19,.subject-grid-v19,.exam-grid-ess,.class-grid-v19{grid-template-columns:1fr 1fr}.schedule-row{grid-template-columns:65px 95px 1fr}.schedule-row em{display:none}.profile-hero-v19{grid-template-columns:68px 1fr}.profile-hero-v19>img{width:68px;height:68px}.id-card-mini{grid-column:1/-1}.ess-section-head{align-items:flex-start}.ess-section-head .ess-search{width:100%}}
@media(max-width:560px){.ess-kpi-grid{grid-template-columns:1fr 1fr}.ess-kpi-grid>a{padding:11px;min-height:82px}.ess-kpi-grid>a>i{width:36px;height:36px}.ess-kpi-grid b{font-size:12px}.ess-quick-v19{grid-template-columns:1fr 1fr}.teacher-grid-v19,.subject-grid-v19,.exam-grid-ess,.class-grid-v19{grid-template-columns:1fr}.schedule-row{grid-template-columns:60px 1fr;gap:8px}.schedule-row time{grid-column:2}.schedule-row>div{grid-column:2}.finance-kpi-v19{grid-template-columns:1fr}.bio-grid-v19{grid-template-columns:1fr}.exam-take-head{grid-template-columns:1fr}.exam-submit-bar{align-items:stretch;gap:10px;flex-direction:column}.teacher-card-v19 .teacher-body{padding:8px 14px 14px}}

/* ===== V20 final precision & secure exam mode ===== */
:root{--ess-max:1360px;--ess-border:#e4eaf2;--ess-ink:#0a2147;--ess-muted:#6e8099;--ess-blue:#176df6;--ess-soft:#f6f9fd}
.content{width:100%;max-width:var(--ess-max);margin:0 auto}
.card{overflow:hidden}
.exam-focus-shell{max-width:1180px;margin:0 auto}
.exam-focus-topbar{display:flex;align-items:center;justify-content:space-between;gap:24px;background:#fff;border:1px solid var(--ess-border);border-radius:16px;padding:18px 22px;margin-bottom:16px;box-shadow:0 8px 24px rgba(24,55,93,.04)}
.exam-focus-topbar h2{margin:5px 0 3px;font-size:20px;color:var(--ess-ink)}.exam-focus-topbar p{margin:0;font-size:11px;color:var(--ess-muted)}.exam-focus-code{display:inline-flex;background:#edf5ff;color:#1769ca;border-radius:99px;padding:5px 9px;font-size:9px;font-weight:800}.exam-focus-meta{display:flex;gap:10px}.exam-focus-meta>span{min-width:108px;background:#f7f9fc;border:1px solid #edf1f5;border-radius:11px;padding:10px 12px;display:flex;align-items:center;gap:8px;color:#64758b}.exam-focus-meta i{color:#176df6}.exam-focus-meta b{font-size:12px;color:#18304f}
.exam-ready-modern,.exam-result-modern{min-height:520px;background:#fff;border:1px solid var(--ess-border);border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:44px 24px;box-shadow:0 12px 34px rgba(23,58,100,.05)}.exam-ready-icon{width:84px;height:84px;border-radius:26px;display:grid;place-items:center;background:linear-gradient(145deg,#eaf4ff,#f8fbff);color:#176df6;font-size:34px;margin-bottom:18px}.exam-ready-modern>span,.exam-result-modern>span{font-size:10px;font-weight:800;letter-spacing:.14em;color:#176df6}.exam-ready-modern h1{font-size:27px;letter-spacing:-.6px;margin:8px 0 10px;color:var(--ess-ink)}.exam-ready-modern>p{max-width:700px;line-height:1.75;color:#63758d;font-size:12px;margin:0 0 24px}.exam-ready-info{display:grid;grid-template-columns:repeat(3,minmax(130px,1fr));gap:10px;width:min(620px,100%);margin-bottom:22px}.exam-ready-info>div{border:1px solid #e7ecf2;background:#f8fafc;border-radius:12px;padding:13px}.exam-ready-info small,.exam-ready-info b{display:block}.exam-ready-info small{font-size:9px;color:#8795a7;margin-bottom:5px}.exam-ready-info b{font-size:14px;color:#18304f}.exam-enter-btn{border:0;border-radius:12px;background:linear-gradient(135deg,#176df6,#0b5fd0);color:#fff;min-width:270px;padding:14px 20px;font:700 13px 'Plus Jakarta Sans',sans-serif;box-shadow:0 9px 22px rgba(23,109,246,.24);cursor:pointer}.exam-enter-btn i{margin-right:8px}.exam-cancel-link{font-size:10px;color:#718096;text-decoration:none;margin-top:14px}
.exam-secure-paper{display:grid;gap:14px}.exam-secure-paper.is-hidden{display:none}.exam-progress-line{height:5px;background:#eaf0f6;border-radius:99px;overflow:hidden;position:sticky;top:0;z-index:4}.exam-progress-line>div{height:100%;width:0;background:#176df6;transition:.2s}.exam-question-stack{display:grid;gap:14px}.exam-question-modern{background:#fff;border:1px solid var(--ess-border);border-radius:15px;padding:22px 24px}.question-head-modern{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.question-head-modern span{font-size:9px;font-weight:800;color:#176df6;letter-spacing:.08em}.question-head-modern b{font-size:9px;background:#f4f7fa;color:#65758a;padding:5px 8px;border-radius:99px}.exam-question-modern h3{font-size:15px;line-height:1.65;margin:0 0 16px;color:#132b4d}.answer-modern{display:grid;grid-template-columns:34px 1fr;align-items:center;gap:10px;border:1px solid #e4e9ef;border-radius:11px;padding:11px 12px;margin:8px 0;cursor:pointer;transition:.18s;background:#fff}.answer-modern:hover{border-color:#b8d4ff;background:#f8fbff}.answer-modern input{position:absolute;opacity:0}.answer-modern:has(input:checked){border-color:#176df6;background:#eff6ff;box-shadow:0 0 0 2px rgba(23,109,246,.06)}.answer-letter{width:30px;height:30px;border-radius:8px;background:#f2f5f8;color:#4f647e;display:grid;place-items:center;font-size:10px;font-weight:800}.answer-modern:has(input:checked) .answer-letter{background:#176df6;color:#fff}.answer-modern>span:last-child{font-size:12px;color:#31445c}.exam-essay-modern{width:100%;min-height:145px;resize:vertical;border:1px solid #dfe6ef;border-radius:11px;padding:13px;font:12px/1.7 'Plus Jakarta Sans',sans-serif;outline:none}.exam-essay-modern:focus{border-color:#176df6;box-shadow:0 0 0 3px rgba(23,109,246,.08)}.exam-secure-footer{position:sticky;bottom:12px;z-index:5;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border:1px solid var(--ess-border);border-radius:14px;padding:12px 14px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 10px 30px rgba(20,48,80,.11)}.exam-secure-footer b{font-size:18px;color:#176df6}.exam-secure-footer span{font-size:10px;color:#718096}.exam-submit-final{border:0;border-radius:10px;background:#0b5fd0;color:#fff;padding:11px 16px;font:700 11px 'Plus Jakarta Sans',sans-serif;cursor:pointer}.exam-submit-final i{margin-right:7px}.exam-result-modern i{font-size:54px;color:#16a36a;margin-bottom:14px}.exam-result-modern h2{margin:8px 0}.exam-result-modern strong{font-size:52px;color:#0a2147;margin:10px 0}.exam-result-modern p{font-size:11px;color:#6f8095;max-width:520px;line-height:1.7}.exam-reenter-overlay{position:fixed;inset:0;z-index:9999;background:rgba(6,20,40,.94);display:grid;place-items:center;padding:20px}.exam-reenter-overlay.hidden,.exam-ready-modern.hidden{display:none}.exam-reenter-overlay>div{width:min(480px,100%);background:#fff;border-radius:18px;padding:32px;text-align:center}.exam-reenter-overlay i{font-size:42px;color:#176df6}.exam-reenter-overlay h2{margin:13px 0 7px}.exam-reenter-overlay p{font-size:11px;color:#6f8095;line-height:1.7;margin-bottom:18px}
body.exam-lock-mode{background:#f4f7fb;overflow:auto}body.exam-lock-mode .side,body.exam-lock-mode .top,body.exam-lock-mode .bottom{display:none!important}body.exam-lock-mode .shell{display:block!important}body.exam-lock-mode .main{width:100%!important}body.exam-lock-mode .content{max-width:1180px!important;padding:20px 22px 100px!important;margin:0 auto!important}body.exam-lock-mode .exam-focus-topbar{position:sticky;top:12px;z-index:6}

@media(max-width:900px){
 body:not(.login-page) .shell{display:block!important}.side{display:flex!important;position:fixed!important;left:-286px!important;top:0!important;width:270px!important;height:100dvh!important;z-index:50!important;transition:left .22s ease!important}.mobile-open .side{left:0!important}.side-overlay{z-index:45!important}
 body:not(.login-page) .top{display:flex!important;height:62px!important;position:sticky!important;top:0!important;z-index:35!important;padding:0 14px!important;background:rgba(255,255,255,.97)!important;backdrop-filter:blur(12px)!important}.top-left{gap:10px!important}.menu-toggle{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;border-radius:10px!important;padding:0!important;flex:0 0 38px!important}.top-left>b{font-size:14px!important}.ess-top-user,.ess-top-logout{display:none!important}.ess-top-account{gap:0!important}.ess-top-avatar{width:34px!important;height:34px!important}
 body:not(.login-page) .content{width:100%!important;max-width:none!important;padding:14px 12px calc(100px + env(safe-area-inset-bottom))!important;margin:0!important;overflow-x:hidden!important}.ess-home{gap:10px!important}.ess-welcome{margin-top:0!important}.ess-bottom-nav{height:74px!important;padding:8px 7px calc(7px + env(safe-area-inset-bottom))!important}.ess-bottom-nav .ess-bottom-absen{transform:translateY(-15px)!important}.ess-bottom-nav .ess-bottom-absen i{width:52px!important;height:52px!important}
 .card{border-radius:12px!important}.ess-section-head{gap:9px!important}.ess-section-head h3{font-size:14px!important}.ess-section-head p{font-size:9px!important;line-height:1.5!important}.ess-kpi-grid{gap:8px!important;margin:10px 0!important}.ess-kpi-grid>a{min-height:78px!important;padding:10px!important;border-radius:11px!important}.ess-kpi-grid>a>i{width:36px!important;height:36px!important}.ess-kpi-grid b{font-size:11px!important}.ess-kpi-grid small{font-size:8px!important}.exam-focus-shell{width:100%!important}.exam-focus-topbar{border-radius:12px;padding:12px 13px;margin-bottom:10px;align-items:flex-start}.exam-focus-topbar h2{font-size:15px}.exam-focus-topbar p{font-size:9px}.exam-focus-meta{display:grid;gap:5px}.exam-focus-meta>span{min-width:78px;padding:7px 8px}.exam-focus-meta b{font-size:9px}.exam-ready-modern{min-height:calc(100dvh - 180px);border-radius:13px;padding:24px 14px}.exam-ready-icon{width:68px;height:68px;border-radius:20px;font-size:28px}.exam-ready-modern h1{font-size:20px}.exam-ready-modern>p{font-size:10px;line-height:1.7}.exam-ready-info{grid-template-columns:1fr 1fr}.exam-ready-info>div:last-child{grid-column:1/-1}.exam-enter-btn{width:100%;min-width:0}.exam-question-modern{padding:16px 14px;border-radius:12px}.exam-question-modern h3{font-size:13px}.answer-modern{padding:9px}.answer-modern>span:last-child{font-size:11px}.exam-secure-footer{bottom:8px;padding:10px}.exam-secure-footer span{font-size:9px}.exam-submit-final{padding:10px 12px;font-size:10px}body.exam-lock-mode .content{padding:10px 10px 84px!important}body.exam-lock-mode .exam-focus-topbar{top:7px}.teacher-grid-v19,.subject-grid-v19,.class-grid-v19,.exam-grid-ess{grid-template-columns:1fr!important}.finance-kpi-v19{grid-template-columns:repeat(3,1fr)!important;gap:7px!important}.finance-kpi-v19>div{padding:10px!important}.finance-kpi-v19 b{font-size:12px!important}.bio-grid-v19{grid-template-columns:1fr 1fr!important}.profile-hero-v19{grid-template-columns:58px 1fr!important;padding:12px!important}.profile-hero-v19>img{width:58px!important;height:58px!important}.id-card-mini{grid-column:1/-1!important;min-width:0!important}.schedule-row{grid-template-columns:58px 1fr!important}.schedule-row time,.schedule-row>div{grid-column:2!important}
}
@media(max-width:430px){.finance-kpi-v19{grid-template-columns:1fr!important}.bio-grid-v19{grid-template-columns:1fr!important}.exam-focus-meta{display:none}.exam-ready-info{grid-template-columns:1fr 1fr}.ess-kpi-grid{grid-template-columns:1fr 1fr!important}.ess-quick-v19{grid-template-columns:1fr 1fr!important}}

/* ===== V21 REFERENCE DASHBOARD ===== */
.top-notify{position:relative;width:36px;height:36px;border-radius:10px;display:grid;place-items:center;color:#17345c;text-decoration:none;margin-left:auto;margin-right:12px}.top-notify i{font-size:16px}.top-notify span{position:absolute;right:2px;top:0;background:#ef4444;color:#fff;border:2px solid #fff;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;font-size:8px;font-weight:800}
.home-v21{display:grid;gap:14px}.home-hero-grid{display:grid;grid-template-columns:minmax(0,2.15fr) minmax(310px,.9fr);gap:14px}.home-hero-v21,.alerts-v21,.dash-panel-v21,.transcript-v21,.achievement-preview-v21,.page-head-v21,.chat-contacts-v21,.chat-room-v21{background:#fff;border:1px solid #dfe7f1;border-radius:14px;box-shadow:0 5px 20px rgba(36,72,116,.035)}
.home-hero-v21{min-height:210px;position:relative;overflow:hidden;padding:28px 30px}.home-hero-v21>div{position:relative;z-index:2;max-width:48%}.home-hero-v21 .hello{font-size:11px;color:#687e9e}.home-hero-v21 h1{margin:5px 0 7px;font-size:28px;color:#071c47;letter-spacing:-.6px}.home-hero-v21 h1 span{font-size:22px}.home-hero-v21 .identity{display:inline-flex;align-items:center;gap:7px;border:1px solid #dce8f8;border-radius:7px;padding:5px 8px;margin:0 0 18px;color:#6c83a5;font-size:9px}.home-hero-v21 blockquote{margin:0;padding:0 0 0 24px;position:relative;font-size:10px;font-weight:600;line-height:1.7;color:#415a7d;max-width:300px}.home-hero-v21 blockquote i{position:absolute;left:0;top:0;color:#8bb3f1}.home-hero-v21>img{position:absolute;right:0;bottom:0;width:64%;height:100%;object-fit:contain;object-position:right bottom;opacity:.88}
.alerts-v21{padding:15px}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.panel-title h3{margin:0;color:#0d2348;font-size:13px}.panel-title>a,.panel-title>span{font-size:8.5px;color:#176df6;text-decoration:none;font-weight:700}.alert-item{display:grid;grid-template-columns:32px 1fr;align-items:center;gap:10px;padding:9px 10px;border-radius:9px;text-decoration:none;margin-top:7px;border:1px solid #e8eef5;background:#f8fafc}.alert-item>i{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:11px}.alert-item span{display:grid;gap:2px}.alert-item b{font-size:9.5px;color:#132c51}.alert-item small{font-size:8px;color:#71839d}.alert-item em{font-size:7.5px;font-style:normal;font-weight:800}.alert-item.danger{background:#fff5f5;border-color:#ffdada}.alert-item.danger>i{background:#fee2e2;color:#ef4444}.alert-item.danger em{color:#ef4444}.alert-item.info>i{background:#e9f2ff;color:#176df6}.alert-item.success>i{background:#e4f8ef;color:#159565}
.kpi-row-v21{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.kpi-row-v21>a{background:#fff;border:1px solid #dfe7f1;border-radius:12px;min-height:105px;padding:14px;display:grid;grid-template-columns:42px 1fr;gap:10px;align-items:start;text-decoration:none;color:inherit}.kpi-row-v21>a>i{width:40px;height:40px;border-radius:10px;background:#eef5ff;color:#176df6;display:grid;place-items:center;font-size:17px}.kpi-row-v21 span{display:grid;min-width:0}.kpi-row-v21 small{font-size:8px;color:#6c83a5}.kpi-row-v21 b{font-size:15px;color:#10264a;margin:2px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kpi-row-v21 em{font-size:8px;color:#7a8da7;font-style:normal}.kpi-row-v21 strong{font-size:8px;color:#176df6;margin-top:7px}
.home-three-v21{display:grid;grid-template-columns:1fr 1.05fr 1fr;gap:12px}.dash-panel-v21{padding:15px;min-width:0}.event-row-v21{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:10px;padding:7px 0;border-bottom:1px solid #edf1f5}.event-row-v21 time{height:45px;border-radius:9px;background:#eff5ff;color:#176df6;display:grid;place-items:center;align-content:center}.event-row-v21 time b{font-size:15px;line-height:1}.event-row-v21 time span{font-size:7px;font-weight:800}.event-row-v21>div{display:grid;gap:3px;min-width:0}.event-row-v21>div b{font-size:9px;color:#17345c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.event-row-v21>div small,.event-row-v21>em{font-size:7.5px;color:#7387a6;font-style:normal}.panel-foot-link{min-height:30px;margin-top:10px;border:1px solid #e2eaf5;border-radius:8px;background:#f8fbff;color:#176df6;text-decoration:none;display:flex;align-items:center;justify-content:center;gap:7px;font-size:8.5px;font-weight:700}.score-row-v21{display:grid;grid-template-columns:28px minmax(0,1fr) 38px 72px;gap:7px;align-items:center;padding:8px 0;border-bottom:1px solid #edf1f5}.score-row-v21>i{width:26px;height:26px;border-radius:7px;background:#eef5ff;color:#176df6;display:grid;place-items:center;font-size:10px}.score-row-v21>b{font-size:9px;color:#1a3356}.score-row-v21>strong{font-size:12px;color:#183b6b}.score-row-v21>strong.bad{color:#ef4444}.score-row-v21>strong.great{color:#159565}.score-row-v21>em{font-style:normal;font-size:7px;color:#159565}.score-row-v21>strong.bad+em{color:#ef4444}.chat-mini-v21{display:grid;grid-template-columns:34px minmax(0,1fr) 1fr;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid #edf1f5;text-decoration:none}.chat-mini-v21 img{width:32px;height:32px;border-radius:50%;background:#edf5ff}.chat-mini-v21>span{display:grid;gap:2px;min-width:0}.chat-mini-v21 b{font-size:8.5px;color:#16345b}.chat-mini-v21 small,.chat-mini-v21 em{font-size:7px;color:#7c8da7;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.transcript-v21{padding:16px 18px;display:grid;grid-template-columns:56px minmax(220px,1.3fr) 1fr auto;gap:15px;align-items:center}.transcript-icon{width:52px;height:52px;background:#eef5ff;color:#176df6;border-radius:11px;display:grid;place-items:center;position:relative;font-size:22px}.transcript-icon span{position:absolute;right:-4px;bottom:-4px;width:21px;height:21px;border-radius:50%;background:#176df6;color:#fff;display:grid;place-items:center;font-size:8px}.transcript-v21 h3{font-size:12px;margin:0 0 4px;color:#17345c}.transcript-v21 p,.transcript-sem small{font-size:8px;color:#778aa7;margin:0}.transcript-sem{display:grid;gap:4px;padding:11px 14px;border:1px solid #edf1f5;border-radius:9px;background:#fbfcfe}.transcript-sem span{font-size:9px;font-weight:700;color:#28476f}.transcript-v21>a,.download-transcript-btn{display:inline-flex;align-items:center;gap:7px;padding:10px 13px;border:1px solid #dfe8f5;border-radius:9px;text-decoration:none;color:#176df6;background:#fff;font-size:8.5px;font-weight:700;white-space:nowrap}
.achievement-preview-v21{padding:14px 16px}.achievement-preview-v21 .panel-title h3 i{color:#f59e0b;margin-right:7px}.achievement-mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.achievement-mini-grid>div{display:grid;grid-template-columns:38px 1fr;gap:10px;align-items:center;border:1px solid #edf1f5;background:#fbfcfe;border-radius:10px;padding:10px}.achievement-mini-grid>div>i{width:36px;height:36px;border-radius:10px;background:#fff5db;color:#d99400;display:grid;place-items:center}.achievement-mini-grid span{display:grid;gap:3px}.achievement-mini-grid b{font-size:9px;color:#17345c}.achievement-mini-grid small{font-size:7.5px;color:#7a8ca5}
.page-head-v21{padding:18px 20px;display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.page-head-v21 span{font-size:7.5px;letter-spacing:.1em;color:#176df6;font-weight:800}.page-head-v21 h2{margin:4px 0;font-size:20px;color:#112b50}.page-head-v21 p{margin:0;font-size:9px;color:#71849e}.page-head-v21>i{width:48px;height:48px;border-radius:13px;background:#eef5ff;color:#176df6;display:grid;place-items:center;font-size:20px}.event-page-grid-v21{display:grid;grid-template-columns:.8fr 1.2fr;gap:14px}.featured-event-v21{min-height:300px;background:linear-gradient(145deg,#f6faff,#fff)}.featured-event-v21 .tag{font-size:8px;background:#eaf3ff;color:#176df6;border-radius:99px;padding:5px 8px}.featured-event-v21 h2{font-size:22px;line-height:1.3;margin:18px 0 10px;color:#122d52}.featured-event-v21 p{font-size:9px;line-height:1.7;color:#7387a6}.event-date-big{margin-top:35px;width:110px;height:110px;border-radius:22px;background:#176df6;color:#fff;display:grid;place-items:center;align-content:center}.event-date-big b{font-size:35px}.event-date-big span{font-size:9px;font-weight:800}
.achievement-grid-v21{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:14px}.achievement-card-v21{background:#fff;border:1px solid #e3eaf3;border-radius:14px;padding:20px;position:relative;overflow:hidden}.achievement-card-v21>i{width:46px;height:46px;border-radius:13px;display:grid;place-items:center;font-size:19px;margin-bottom:16px}.achievement-card-v21>span{font-size:8px;font-weight:800;letter-spacing:.08em;color:#7b8ca6}.achievement-card-v21 h3{font-size:19px;margin:5px 0 8px;color:#12305a}.achievement-card-v21 p{font-size:8.5px;line-height:1.65;color:#71839e;margin:0}.achievement-card-v21.gold>i{background:#fff3d5;color:#d89200}.achievement-card-v21.blue>i{background:#eaf3ff;color:#176df6}.achievement-card-v21.green>i{background:#e6f8ef;color:#159565}.badge-row-v21{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.badge-row-v21>div{border:1px dashed #dbe4ef;border-radius:12px;padding:14px;display:grid;grid-template-columns:38px 1fr;gap:8px;opacity:.5}.badge-row-v21>div.earned{opacity:1;border-style:solid;background:#fbfdff}.badge-row-v21 i{grid-row:1/3;width:36px;height:36px;border-radius:10px;background:#eef5ff;color:#176df6;display:grid;place-items:center}.badge-row-v21 b{font-size:9px;color:#17345c}.badge-row-v21 small{font-size:7.5px;color:#7588a3}
.chat-layout-v21{display:grid;grid-template-columns:300px minmax(0,1fr);gap:14px;min-height:calc(100vh - 120px)}.chat-contacts-v21{padding:14px;overflow:hidden}.chat-contacts-v21 .ess-search{width:100%;margin-bottom:10px}.chat-contact-v21{display:grid;grid-template-columns:38px minmax(0,1fr) 14px;gap:9px;align-items:center;padding:9px;border-radius:10px;text-decoration:none;margin-bottom:4px}.chat-contact-v21.on,.chat-contact-v21:hover{background:#edf5ff}.chat-contact-v21 img{width:36px;height:36px;border-radius:50%}.chat-contact-v21 span{display:grid;gap:3px;min-width:0}.chat-contact-v21 b{font-size:9px;color:#17345c}.chat-contact-v21 small{font-size:7px;color:#7a8ca5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-contact-v21>i{font-size:8px;color:#8ca0bc}.chat-room-v21{display:grid;grid-template-rows:auto 1fr auto;overflow:hidden}.chat-room-v21>header{padding:13px 16px;border-bottom:1px solid #e8eef5;display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:10px}.chat-room-v21>header img{width:40px;height:40px;border-radius:50%}.chat-room-v21>header div{display:grid;gap:3px}.chat-room-v21>header b{font-size:10px;color:#17345c}.chat-room-v21>header small{font-size:8px;color:#7486a0}.chat-room-v21>header>span{font-size:8px;color:#159565}.chat-room-v21>header>span i{font-size:6px}.chat-messages-v21{padding:18px;background:#f8fbff;overflow-y:auto;display:flex;flex-direction:column;gap:9px}.chat-bubble-v21{max-width:68%;align-self:flex-start;background:#fff;border:1px solid #e3eaf3;border-radius:12px 12px 12px 3px;padding:9px 11px}.chat-bubble-v21.mine{align-self:flex-end;background:#176df6;color:#fff;border-color:#176df6;border-radius:12px 12px 3px 12px}.chat-bubble-v21 p{font-size:9px;line-height:1.6;margin:0}.chat-bubble-v21 time{display:block;font-size:7px;opacity:.65;text-align:right;margin-top:4px}.chat-empty-v21{margin:auto;text-align:center;display:grid;place-items:center;gap:7px;color:#7d90aa}.chat-empty-v21 i{font-size:28px;color:#a9bdd9}.chat-empty-v21 b{font-size:11px;color:#345274}.chat-empty-v21 span{font-size:8px}.chat-compose-v21{display:grid;grid-template-columns:1fr 42px;gap:8px;padding:11px;border-top:1px solid #e7edf5}.chat-compose-v21 input{border:1px solid #dfe7f1;border-radius:10px;padding:11px 13px;font:9px 'Plus Jakarta Sans',sans-serif;outline:none}.chat-compose-v21 input:focus{border-color:#176df6}.chat-compose-v21 button{border:0;border-radius:10px;background:#176df6;color:#fff;cursor:pointer}

@media(max-width:1100px){.home-hero-grid{grid-template-columns:1fr}.home-hero-v21>div{max-width:56%}.kpi-row-v21{grid-template-columns:repeat(3,1fr)}.home-three-v21{grid-template-columns:1fr 1fr}.home-three-v21>section:last-child{grid-column:1/-1}.transcript-v21{grid-template-columns:52px 1fr auto}.transcript-sem{display:none}}
@media(max-width:900px){.top-notify{display:none}.home-v21{gap:10px}.home-hero-grid{display:block}.alerts-v21{margin-top:10px}.home-hero-v21{min-height:148px;padding:16px 16px}.home-hero-v21>div{max-width:64%}.home-hero-v21 h1{font-size:20px}.home-hero-v21 blockquote{display:none}.home-hero-v21>img{width:60%;opacity:.5}.kpi-row-v21{grid-template-columns:1fr 1fr;gap:8px}.kpi-row-v21>a{min-height:82px;padding:10px;grid-template-columns:34px 1fr}.kpi-row-v21>a>i{width:34px;height:34px;font-size:14px}.kpi-row-v21 b{font-size:11px}.kpi-row-v21 strong{display:none}.home-three-v21{grid-template-columns:1fr}.home-three-v21>section:last-child{grid-column:auto}.transcript-v21{grid-template-columns:42px 1fr auto;padding:12px}.transcript-icon{width:40px;height:40px}.transcript-v21 p{display:none}.transcript-v21>a{font-size:0;padding:10px}.transcript-v21>a i{font-size:11px}.achievement-mini-grid{grid-template-columns:1fr}.event-page-grid-v21,.achievement-grid-v21{grid-template-columns:1fr}.chat-layout-v21{grid-template-columns:1fr;min-height:auto}.chat-contacts-v21{max-height:320px}.chat-room-v21{min-height:520px}.download-transcript-btn{width:100%;justify-content:center;order:3}.ess-section-head{flex-wrap:wrap}.ess-section-head .ess-search{width:100%!important}}
@media(max-width:480px){.home-hero-v21{min-height:136px}.home-hero-v21 .identity{font-size:7.5px}.alerts-v21{padding:11px}.alert-item{padding:7px 8px}.kpi-row-v21>a{min-height:76px}.kpi-row-v21 small{font-size:7px}.kpi-row-v21 em{font-size:7px}.event-row-v21{grid-template-columns:38px 1fr}.event-row-v21>em{grid-column:2}.score-row-v21{grid-template-columns:26px 1fr 34px}.score-row-v21>em{display:none}.chat-mini-v21{grid-template-columns:32px 1fr}.chat-mini-v21>em{display:none}.achievement-preview-v21{padding:11px}.page-head-v21{padding:14px}.page-head-v21 h2{font-size:17px}.badge-row-v21{grid-template-columns:1fr}.chat-bubble-v21{max-width:85%}}

/* V22 — precise ESS header/menu toggle */
@media (max-width:900px){
  body:not(.login-page) .top{height:56px!important;min-height:56px!important;padding:0 16px!important;display:flex!important;align-items:center!important;justify-content:space-between!important}
  body:not(.login-page) .top-left{height:56px!important;display:flex!important;align-items:center!important;gap:12px!important;min-width:0!important}
  body:not(.login-page) .menu-toggle{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;flex:0 0 34px!important;padding:0!important;margin:0!important;border:1px solid #dce6f2!important;border-radius:8px!important;background:#fff!important;box-shadow:none!important;display:grid!important;place-items:center!important;line-height:1!important}
  body:not(.login-page) .menu-toggle i{font-size:15px!important;line-height:1!important;margin:0!important}
  body:not(.login-page) .top-left>b{font-size:15px!important;line-height:1.2!important;margin:0!important;white-space:nowrap!important}
}
@media (max-width:420px){
  body:not(.login-page) .top{height:54px!important;min-height:54px!important;padding:0 14px!important}
  body:not(.login-page) .top-left{height:54px!important;gap:10px!important}
  body:not(.login-page) .menu-toggle{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;flex-basis:32px!important;border-radius:8px!important}
  body:not(.login-page) .menu-toggle i{font-size:14px!important}
  body:not(.login-page) .top-left>b{font-size:14px!important}
}

/* V23 — precise ESS topbar toggle, desktop + mobile */
body:not(.login-page) .top-left{
  display:flex!important;
  align-items:center!important;
  min-width:0!important;
}
body:not(.login-page) .menu-toggle{
  padding:0!important;
  margin:0!important;
  border:1px solid #dce6f2!important;
  background:#fff!important;
  color:#23496f!important;
  box-shadow:none!important;
  display:grid!important;
  place-items:center!important;
  line-height:1!important;
}
body:not(.login-page) .menu-toggle i{
  margin:0!important;
  line-height:1!important;
  display:block!important;
}
body:not(.login-page) .top-left>b{
  margin:0!important;
  line-height:1.2!important;
  white-space:nowrap!important;
}
@media (min-width:901px){
  body:not(.login-page) .top{
    height:64px!important;
    min-height:64px!important;
    padding:0 24px!important;
  }
  body:not(.login-page) .top-left{
    height:64px!important;
    gap:12px!important;
  }
  body:not(.login-page) .menu-toggle{
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    min-height:34px!important;
    flex:0 0 34px!important;
    border-radius:8px!important;
  }
  body:not(.login-page) .menu-toggle i{font-size:14px!important}
  body:not(.login-page) .top-left>b{font-size:15px!important;font-weight:700!important}
  body:not(.login-page) .ess-top-bell{width:36px!important;height:36px!important;border-radius:8px!important}
  body:not(.login-page) .ess-top-avatar{width:36px!important;height:36px!important}
  body:not(.login-page) .ess-top-account{gap:10px!important}
  body:not(.login-page) .ess-top-user{min-width:126px!important}
}
@media (max-width:900px){
  body:not(.login-page) .top{height:56px!important;min-height:56px!important;padding:0 14px!important}
  body:not(.login-page) .top-left{height:56px!important;gap:10px!important}
  body:not(.login-page) .menu-toggle{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;flex:0 0 32px!important;border-radius:8px!important}
  body:not(.login-page) .menu-toggle i{font-size:14px!important}
  body:not(.login-page) .top-left>b{font-size:14px!important}
}

/* V24 - Student identity card + LKAM-style school transcript */
.school-brand-logo{object-fit:contain!important;background:#fff;border-radius:10px;padding:3px}
.student-transcript-page{max-width:1180px;margin:0 auto}
.transcript-paper{background:#fff;border:1px solid #dfe8f5;border-radius:18px;padding:28px;box-shadow:0 8px 30px rgba(27,74,130,.05)}
.transcript-school-head{display:flex;align-items:center;gap:14px;border-bottom:2px solid #183c70;padding-bottom:18px}
.transcript-school-logo{width:64px;height:64px;border:1px solid #e1e8f2;border-radius:14px;display:grid;place-items:center;overflow:hidden;flex:none}
.transcript-school-logo img{max-width:54px;max-height:54px;object-fit:contain}
.transcript-school-head>div:nth-child(2){display:flex;flex-direction:column;min-width:0}
.transcript-school-head b{font-size:18px;color:#0b2348}.transcript-school-head span{font-size:12px;color:#46627f;margin-top:3px}.transcript-school-head small{font-size:11px;color:#7890aa;margin-top:2px}
.transcript-school-head>a{margin-left:auto;display:inline-flex;align-items:center;gap:8px;padding:11px 16px;background:#1167d8;color:#fff;border-radius:10px;font-weight:700;font-size:12px;text-decoration:none}
.transcript-title{text-align:center;padding:25px 10px 19px}.transcript-title span{font-size:11px;font-weight:800;letter-spacing:1.4px;color:#55718e}.transcript-title h2{margin:5px 0 4px;font-size:25px;color:#081d3d}.transcript-title p{margin:0;color:#71869e;font-size:12px}
.transcript-identity{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border:1px solid #dfe7f1;border-radius:12px;overflow:hidden;margin-bottom:20px}
.transcript-identity>div{padding:11px 14px;border-bottom:1px solid #e8edf4;display:grid;grid-template-columns:135px 1fr;gap:10px}.transcript-identity>div:nth-child(odd){border-right:1px solid #e8edf4}.transcript-identity span{font-size:11px;color:#71859a}.transcript-identity b{font-size:12px;color:#152d4e}
.transcript-semester-block{margin:18px 0}.semester-label{font-size:12px;font-weight:800;color:#fff;background:#153e73;padding:9px 12px;border-radius:9px 9px 0 0;letter-spacing:.4px}
.transcript-table{width:100%;border-collapse:collapse;font-size:11px}.transcript-table th{background:#f4f7fb;color:#516881;text-align:left;padding:10px;border:1px solid #e1e8f0}.transcript-table td{padding:10px;border:1px solid #e6ebf2;color:#243a55}.transcript-table th:first-child,.transcript-table td:first-child{width:46px;text-align:center}.transcript-table td:nth-last-child(-n+2){text-align:center}
.transcript-status{display:inline-flex;padding:5px 9px;border-radius:999px;font-weight:700;font-size:10px}.transcript-status.done{background:#e8f8f1;color:#178359}.transcript-status.need{background:#fff0ef;color:#d4483f}.text-danger{color:#d83838}.text-good{color:#168258}
.transcript-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:22px}.transcript-summary>div{background:#f6f9fd;border:1px solid #e0e8f2;border-radius:11px;padding:13px}.transcript-summary span{display:block;font-size:10px;color:#6e8399}.transcript-summary b{display:block;font-size:15px;color:#0d2b51;margin-top:4px}.transcript-note{margin-top:14px;padding:11px 13px;background:#fffaf0;border:1px solid #f1dfb6;border-radius:9px;color:#725b2d;font-size:10px}
.student-id-page{max-width:1120px;margin:0 auto}.student-id-intro{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:18px}.student-id-intro span{font-size:10px;letter-spacing:1.3px;color:#5a7ca1;font-weight:800}.student-id-intro h2{margin:3px 0;font-size:25px;color:#0a2448}.student-id-intro p{margin:0;color:#71849b;font-size:12px}.student-id-intro button{border:0;background:#1068d8;color:#fff;border-radius:10px;padding:11px 15px;font-weight:700;cursor:pointer}
.student-id-wrap{display:grid;grid-template-columns:410px 1fr;gap:24px;align-items:start}.student-id-card{width:410px;min-height:620px;background:#fff;border:1px solid #dfe6ef;border-radius:26px;position:relative;overflow:hidden;box-shadow:0 18px 45px rgba(24,70,126,.12);padding:28px 28px 100px}
.student-id-card header{display:flex;gap:10px;align-items:center;position:relative;z-index:3}.id-school-logo{width:55px;height:55px;display:grid;place-items:center;overflow:hidden}.id-school-logo img{max-width:52px;max-height:52px;object-fit:contain}.student-id-card header>div:last-child{display:flex;flex-direction:column}.student-id-card header b{font-size:14px;color:#0b2a53}.student-id-card header span{font-size:9px;color:#4f6d90;margin-top:2px}
.id-photo{width:170px;height:170px;border-radius:50%;margin:34px auto 22px;background:#dce8f7;overflow:hidden;border:7px solid #f2f6fb;box-shadow:0 0 0 2px #1d64b9;position:relative;z-index:2}.id-photo img{width:100%;height:100%;object-fit:cover}
.id-person{text-align:center;position:relative;z-index:2}.id-person h1{font-size:22px;margin:0;color:#111827}.id-person p{font-size:14px;color:#41617e;margin:8px 0 2px}.id-person small{font-size:10px;color:#7890a8}
.id-qr{width:170px;height:170px;margin:23px auto 0;display:grid;place-items:center;position:relative;z-index:3}.id-qr img,.id-qr canvas{width:160px!important;height:160px!important}
.id-wave{position:absolute;left:-30px;right:-30px;bottom:-44px;height:125px;background:#0c4d9f;border-radius:50% 50% 0 0/36% 36% 0 0;border-top:13px solid #ffd500;color:#fff;display:flex;justify-content:space-between;align-items:flex-start;padding:34px 55px 0;font-size:10px}.id-wave span{font-weight:700}.id-wave b{font-size:13px}
.id-dots{position:absolute;width:84px;height:190px;opacity:.55;background-image:radial-gradient(#4e72ff 3px,transparent 4px);background-size:20px 20px}.id-dots.left{left:-4px;top:110px}.id-dots.right{right:-18px;bottom:115px}
.student-id-info{background:#fff;border:1px solid #dfe8f3;border-radius:18px;padding:22px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.student-id-info>div{background:#f7f9fc;border-radius:11px;padding:12px}.student-id-info span{display:block;font-size:10px;color:#71859b}.student-id-info b{display:block;margin-top:4px;color:#0f2a4d;font-size:12px}.student-id-info p{grid-column:1/-1;margin:4px 0 0;background:#eff6ff;color:#45627d;border-radius:10px;padding:12px;font-size:10px;line-height:1.5}.student-id-info p i{color:#1768d5;margin-right:6px}
@media(max-width:900px){.student-id-wrap{grid-template-columns:1fr}.student-id-card{width:min(100%,410px);margin:auto}.student-id-info{grid-template-columns:1fr 1fr}.transcript-paper{padding:16px}.transcript-school-head{align-items:flex-start;flex-wrap:wrap}.transcript-school-head>a{margin-left:0}.transcript-identity{grid-template-columns:1fr}.transcript-identity>div:nth-child(odd){border-right:0}.transcript-summary{grid-template-columns:1fr 1fr}.transcript-table{min-width:680px}}
@media(max-width:480px){.student-id-card{min-height:575px;padding:22px 20px 94px;border-radius:20px}.student-id-card header b{font-size:12px}.id-photo{width:145px;height:145px}.id-person h1{font-size:18px}.id-qr{width:150px;height:150px}.id-qr img,.id-qr canvas{width:140px!important;height:140px!important}.student-id-info{grid-template-columns:1fr}.transcript-summary{grid-template-columns:1fr 1fr}.transcript-identity>div{grid-template-columns:110px 1fr}}
@media print{body *{visibility:hidden}.student-id-card,.student-id-card *{visibility:visible}.student-id-card{position:absolute;left:0;top:0;box-shadow:none;border:0}.side,.top,.bottom{display:none!important}}

/* ===== V26 stateful notifications, finance, parent portal ===== */
.notification-list-v26{display:grid;gap:8px}.notification-item-v26{margin:0}.notification-item-v26 button{width:100%;border:1px solid #e4ebf3;background:#fff;border-radius:12px;padding:12px;display:grid;grid-template-columns:38px 1fr auto;gap:11px;align-items:center;text-align:left;cursor:pointer;font:inherit}.notification-item-v26 button>i{width:38px;height:38px;border-radius:10px;background:#edf5ff;color:#176df6;display:grid;place-items:center}.notification-item-v26 span b,.notification-item-v26 span small{display:block}.notification-item-v26 span b{font-size:11px;color:#153457}.notification-item-v26 span small{font-size:9px;color:#70849b;margin-top:3px;line-height:1.5}.notification-item-v26 time{font-size:8px;color:#8a99aa;white-space:nowrap}.notification-item-v26.is-read{opacity:.58}.alert-form-v26{margin:0}.alert-form-v26 .alert-item{width:100%;border:0;text-align:left;cursor:pointer;font:inherit}.ess-finance-grid-v26{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(330px,.65fr);gap:16px}.ess-form-v26{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ess-form-v26 label{display:grid;gap:5px;font-size:9px;font-weight:700;color:#476078}.ess-form-v26 input,.ess-form-v26 select,.ess-form-v26 textarea{width:100%;border:1px solid #dce5ef;border-radius:9px;padding:10px;background:#fff;font:inherit}.ess-form-v26 small{font-size:8px;color:#8290a1;font-weight:500}.midtrans-box-v26{margin-top:14px;padding:12px;border:1px solid #cfe0f7;border-radius:12px;background:#f5f9ff}.midtrans-box-v26>div{display:flex;gap:9px;align-items:center;margin-bottom:10px}.midtrans-box-v26>div>i{width:34px;height:34px;border-radius:9px;background:#176df6;color:#fff;display:grid;place-items:center}.midtrans-box-v26 b,.midtrans-box-v26 small{display:block}.midtrans-box-v26 small{font-size:8px;color:#74879b;margin-top:2px}.midtrans-box-v26 form{display:grid;grid-template-columns:1fr 1fr auto;gap:7px}.midtrans-box-v26 select{border:1px solid #d8e3ef;border-radius:8px;padding:9px;background:#fff;font:inherit}.parent-child-switch-v26{display:flex;gap:8px;overflow:auto;margin-bottom:14px;padding-bottom:3px}.parent-child-switch-v26 a{min-width:190px;padding:11px;border:1px solid #e2e9f1;border-radius:11px;text-decoration:none;color:inherit;background:#fff}.parent-child-switch-v26 a.on{border-color:#7db3ff;background:#f2f7ff}.parent-child-switch-v26 b,.parent-child-switch-v26 span{display:block}.parent-child-switch-v26 b{font-size:10px}.parent-child-switch-v26 span{font-size:8px;color:#77899c;margin-top:3px}.management-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
@media(max-width:1050px){.ess-finance-grid-v26{grid-template-columns:1fr}.management-split{grid-template-columns:1fr}}
@media(max-width:700px){.notification-item-v26 button{grid-template-columns:34px 1fr;padding:10px}.notification-item-v26 button>i{width:34px;height:34px}.notification-item-v26 time{grid-column:2}.ess-form-v26{grid-template-columns:1fr}.ess-form-v26 .full{grid-column:auto}.midtrans-box-v26 form{grid-template-columns:1fr}.parent-child-switch-v26 a{min-width:160px}}
/* V26.1 notification read-state polish */
.notification-history-link{display:inline-flex;margin-top:4px;font-size:11px;font-weight:700;color:#176df6;text-decoration:none}.notification-history-link:hover{text-decoration:underline}.notification-item-v26.is-read{opacity:.62}.notification-list-v26 .empty-friendly{padding:32px 18px;text-align:center;border:1px dashed #d9e3ef;border-radius:12px;background:#fbfdff}.notification-list-v26 .empty-friendly b,.notification-list-v26 .empty-friendly span{display:block}.notification-list-v26 .empty-friendly span{margin-top:5px;color:#7c8da2;font-size:11px}

/* V27 — Teacher dashboard density + bounded chat */
.teacher-home-grid-v27{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.75fr);gap:14px}
.teacher-today-v27,.teacher-summary-v27{background:#fff;border:1px solid #dfe7f1;border-radius:14px;box-shadow:0 5px 20px rgba(36,72,116,.035);padding:16px;min-width:0}
.teacher-today-v27 .panel-title,.teacher-summary-v27 .panel-title{margin-bottom:10px}.teacher-today-v27 .panel-title>div,.teacher-summary-v27 .panel-title>div{display:grid;gap:3px}.teacher-today-v27 .panel-title h3,.teacher-summary-v27 .panel-title h3{display:flex;align-items:center;gap:7px}.teacher-today-v27 .panel-title p,.teacher-summary-v27 .panel-title p{margin:0;font-size:8px;color:#7b8da6}.teacher-timeline-v27{display:grid;gap:7px}
.teacher-slot-v27{display:grid;grid-template-columns:58px 34px minmax(0,1fr) auto 12px;align-items:center;gap:10px;padding:10px 11px;border:1px solid #e6edf6;border-radius:11px;text-decoration:none;color:inherit;transition:.16s;background:#fff}.teacher-slot-v27:hover{border-color:#b9d3fb;background:#f8fbff;transform:translateY(-1px)}.teacher-slot-v27 time{display:grid;line-height:1.15}.teacher-slot-v27 time b{font-size:11px;color:#10264a}.teacher-slot-v27 time span{font-size:8px;color:#8798ae}.teacher-slot-v27>i:nth-of-type(1){width:32px;height:32px;border-radius:9px;background:#edf5ff;color:#176df6;display:grid;place-items:center;font-size:12px}.teacher-slot-v27>div{display:grid;gap:3px;min-width:0}.teacher-slot-v27>div b{font-size:10px;color:#132a4e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.teacher-slot-v27>div span{font-size:8px;color:#71849e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.teacher-slot-v27 em{font-style:normal;font-size:7px;font-weight:700;color:#176df6;background:#edf5ff;border-radius:999px;padding:5px 7px}.teacher-slot-v27>i:last-child{font-size:8px;color:#8ea0b8}.teacher-empty-v27{min-height:96px;border:1px dashed #dce6f2;border-radius:11px;display:flex;align-items:center;justify-content:center;gap:12px;color:#7890ae}.teacher-empty-v27>i{font-size:20px}.teacher-empty-v27>div{display:grid;gap:3px}.teacher-empty-v27 b{font-size:10px;color:#345274}.teacher-empty-v27 span{font-size:8px}
.teacher-summary-v27{display:flex;flex-direction:column}.teacher-summary-v27>a{display:grid;grid-template-columns:34px minmax(0,1fr) 12px;gap:9px;align-items:center;padding:10px 0;border-top:1px solid #edf1f6;text-decoration:none;color:inherit}.teacher-summary-v27>a:first-of-type{border-top:0}.teacher-summary-v27>a>i:first-child{width:32px;height:32px;border-radius:9px;background:#f1f6ff;color:#176df6;display:grid;place-items:center;font-size:12px}.teacher-summary-v27>a span{display:grid;gap:2px;min-width:0}.teacher-summary-v27>a b{font-size:9px;color:#17345c}.teacher-summary-v27>a small{font-size:7px;color:#7d8ea5;line-height:1.45}.teacher-summary-v27>a>i:last-child{font-size:8px;color:#93a4ba}
/* Keep chat inside the viewport: only contacts/messages scroll. */
.chat-layout-v21{height:calc(100dvh - 132px);min-height:520px;max-height:820px;overflow:hidden}.chat-contacts-v21{min-height:0;overflow-y:auto}.chat-room-v21{min-height:0;height:100%;grid-template-rows:auto minmax(0,1fr) auto}.chat-messages-v21{min-height:0;overscroll-behavior:contain;scrollbar-gutter:stable}.chat-compose-v21{background:#fff;position:relative;z-index:2}
@media(max-width:900px){
 .teacher-kpi-v27{grid-template-columns:1fr 1fr!important}.teacher-home-grid-v27{grid-template-columns:1fr;gap:9px}.teacher-today-v27,.teacher-summary-v27{padding:11px;border-radius:12px}.teacher-summary-v27{display:grid}.teacher-summary-v27 .panel-title{grid-column:1/-1}.teacher-summary-v27>a{padding:9px 0}.teacher-slot-v27{grid-template-columns:52px 30px minmax(0,1fr) 10px;gap:8px;padding:9px}.teacher-slot-v27 em{display:none}.teacher-slot-v27>i:nth-of-type(1){width:30px;height:30px}.teacher-slot-v27 time b{font-size:10px}.teacher-slot-v27>div b{font-size:9px}.teacher-slot-v27>div span{font-size:7px}
 .chat-layout-v21{height:calc(100dvh - 150px);min-height:0;max-height:none;grid-template-columns:1fr;grid-template-rows:118px minmax(0,1fr);gap:8px;overflow:hidden}.chat-contacts-v21{max-height:none!important;height:118px;padding:8px;overflow-y:auto}.chat-contacts-v21 .panel-title{margin-bottom:5px}.chat-contacts-v21 .ess-search{height:31px;margin-bottom:5px}.chat-contact-v21{padding:5px 7px;margin-bottom:2px;grid-template-columns:30px minmax(0,1fr) 10px}.chat-contact-v21 img{width:28px;height:28px}.chat-room-v21{min-height:0!important;height:100%;border-radius:12px}.chat-room-v21>header{padding:8px 10px;grid-template-columns:34px 1fr auto}.chat-room-v21>header img{width:32px;height:32px}.chat-messages-v21{padding:10px;gap:7px}.chat-compose-v21{padding:8px;grid-template-columns:1fr 36px}.chat-compose-v21 input{padding:9px 10px}.chat-bubble-v21{max-width:84%}
}
@media(max-width:480px){
 .teacher-kpi-v27>a{min-height:72px!important}.teacher-kpi-v27>a:nth-child(5){grid-column:1/-1}.teacher-home-grid-v27{gap:8px}.teacher-today-v27 .panel-title p,.teacher-summary-v27 .panel-title p{font-size:7px}.teacher-slot-v27{grid-template-columns:48px 28px minmax(0,1fr) 9px}.teacher-slot-v27 time b{font-size:9px}.teacher-summary-v27>a small{font-size:6.7px}.chat-layout-v21{height:calc(100dvh - 138px);grid-template-rows:105px minmax(0,1fr)}.chat-contacts-v21{height:105px}.chat-room-v21>header>span{display:none}
}

/* V31 live face recognition attendance */
.face-zone-live{grid-template-columns:minmax(320px,520px) 1fr;align-items:stretch;gap:18px}.face-camera-frame{position:relative;height:300px;overflow:hidden;background:#07111f;border:1px solid #d7e2ef}.face-camera-frame video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1);display:block}.face-camera-state{position:absolute;inset:0;display:grid;place-items:center;align-content:center;gap:9px;background:linear-gradient(180deg,#f8fbff,#eef5fc);z-index:4;color:#637a94;font-size:12px}.face-camera-state i{font-size:34px;color:#1c6dcc}.face-camera-state.hidden{display:none}.face-scan-guide{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;z-index:3}.face-scan-guide:before{content:"";width:48%;height:72%;max-width:220px;border:2px solid rgba(255,255,255,.9);border-radius:46% 46% 42% 42%;box-shadow:0 0 0 999px rgba(2,12,26,.18),0 0 22px rgba(34,145,255,.35)}.face-scan-guide span{position:absolute;width:44%;max-width:205px;height:2px;background:rgba(55,189,255,.85);box-shadow:0 0 12px rgba(55,189,255,.8);animation:faceScanLine 2.2s ease-in-out infinite}@keyframes faceScanLine{0%,100%{transform:translateY(-74px);opacity:.35}50%{transform:translateY(74px);opacity:1}}.face-actions{display:flex;flex-direction:column;justify-content:center;gap:12px}.face-actions form{display:grid;grid-template-columns:1fr 1fr;gap:10px}.face-status-box{display:flex;align-items:flex-start;gap:10px;padding:12px 13px;border:1px solid #dce7f3;border-radius:10px;background:#f7fbff;color:#50647b;font-size:11px;line-height:1.45}.face-status-box i{margin-top:2px;color:#176fd7}.face-status-box.success{background:#effbf4;border-color:#bde8ce;color:#217445}.face-status-box.error{background:#fff4f4;border-color:#f0c6c6;color:#a23a3a}.face-status-box.working{background:#fff9ec;border-color:#f1db9a;color:#8b6716}.face-att-btn:disabled,.face-actions button:disabled{opacity:.48;cursor:not-allowed}.face-privacy-note{display:flex;align-items:center;gap:6px;color:#7b8c9f;font-size:9px;line-height:1.45}.face-privacy-note i{color:#33815a}@media(max-width:900px){.face-zone-live{grid-template-columns:1fr}.face-camera-frame{height:min(68vw,390px)}.face-actions form{grid-template-columns:1fr}}@media(max-width:520px){.face-camera-frame{height:72vw;min-height:260px}.face-scan-guide:before{width:55%;height:72%}.face-status-box{font-size:10px}.face-actions .btn{width:100%;justify-content:center}}

/* V32 attendance UI — compact camera + self-enrollment */
.attendance-shell-v32{display:grid;gap:18px}.attendance-main-v32{background:#fff;border:1px solid #e1e8f0;border-radius:14px;padding:20px;box-shadow:0 1px 2px rgba(15,35,60,.02)}.attendance-title-v32{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.attendance-title-v32 h2{font-size:18px;margin:3px 0 5px;color:#10233f}.attendance-title-v32 p{margin:0;color:#718096;font-size:11px}.eyebrow-v32{font-size:8px;font-weight:800;letter-spacing:.14em;color:#1971d4}.attendance-scan-grid-v32{display:grid;grid-template-columns:minmax(360px,480px) minmax(320px,1fr);gap:20px;align-items:stretch}.face-camera-card-v32{min-width:0}.face-camera-card-v32 .face-camera-frame{height:300px;border-radius:13px;border:1px solid #d8e2ee}.camera-hint-v32{display:flex;gap:8px;align-items:flex-start;margin-top:9px;color:#74859a;font-size:9px;line-height:1.5}.camera-hint-v32 i{color:#367ac8;margin-top:1px}.attendance-control-v32{display:flex;flex-direction:column;gap:11px;min-width:0}.identity-card-v32{display:grid;grid-template-columns:42px 1fr auto;gap:11px;align-items:center;padding:11px;border:1px solid #e1e8f0;border-radius:11px;background:#fafcff}.identity-avatar-v32{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#eaf3ff;color:#176fd7}.identity-card-v32 small,.identity-card-v32 b,.identity-card-v32 span{display:block}.identity-card-v32 small{font-size:8px;color:#8290a1}.identity-card-v32 b{font-size:11px;color:#182b46;margin-top:2px}.identity-card-v32>div:nth-child(2)>span{font-size:9px;color:#6f8195;margin-top:2px}.face-reg-badge-v32{white-space:nowrap;font-size:8px!important;font-weight:800;padding:6px 8px;border-radius:999px}.face-reg-badge-v32.ok{background:#eaf8f0;color:#238052}.face-reg-badge-v32.pending{background:#fff4df;color:#966514}.attendance-control-v32 .face-status-box{min-height:50px}.today-attendance-v32{display:grid;grid-template-columns:1fr 1fr;gap:8px}.today-attendance-v32>div{border:1px solid #e3eaf2;border-radius:10px;padding:10px 12px;background:#fff}.today-attendance-v32 small{display:block;font-size:8px;color:#7c8b9e}.today-attendance-v32 b{display:block;font-size:16px;color:#172d4c;margin-top:3px}.attendance-buttons-v32{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important}.attendance-buttons-v32 .btn{height:52px!important;justify-content:flex-start!important;gap:10px!important;padding:0 14px!important}.attendance-buttons-v32 .btn>span{display:grid;text-align:left;gap:1px}.attendance-buttons-v32 .btn b{font-size:10px}.attendance-buttons-v32 .btn small{font-size:8px;font-weight:500;opacity:.72}.enroll-self-v32{width:100%;border:1px solid #cfe0f4;background:#f6faff;color:#174f8e;border-radius:10px;display:flex;align-items:center;gap:10px;padding:10px 12px;cursor:pointer;text-align:left}.enroll-self-v32>i:first-child{font-size:18px;color:#176fd7}.enroll-self-v32>i:last-child{margin-left:auto;font-size:10px}.enroll-self-v32 span{display:grid;gap:2px}.enroll-self-v32 b{font-size:10px}.enroll-self-v32 small{font-size:8px;color:#6e8299}.privacy-v32{display:flex;gap:7px;align-items:flex-start;color:#78899b;font-size:8.5px;line-height:1.45}.privacy-v32 i{color:#2f8159;margin-top:1px}.attendance-history-v32{margin-top:0!important}.face-modal-v32{position:fixed;inset:0;display:none;place-items:center;z-index:9999;padding:20px}.face-modal-v32.open{display:grid}.face-modal-backdrop-v32{position:absolute;inset:0;background:rgba(8,22,42,.52);backdrop-filter:blur(4px)}.face-modal-card-v32{position:relative;width:min(430px,100%);background:#fff;border-radius:16px;padding:25px;box-shadow:0 25px 80px rgba(8,28,55,.25);text-align:center}.face-modal-close-v32{position:absolute;right:13px;top:13px;width:32px;height:32px;border:0;border-radius:50%;background:#f1f5f9;color:#566a80;cursor:pointer}.face-modal-icon-v32{width:54px;height:54px;border-radius:14px;display:grid;place-items:center;margin:0 auto 13px;background:#eaf3ff;color:#176fd7;font-size:24px}.face-modal-card-v32 h3{margin:0 0 7px;font-size:17px;color:#132844}.face-modal-card-v32>p{font-size:10px;color:#6d7f93;line-height:1.6;margin:0}.face-modal-steps-v32{display:grid;gap:7px;text-align:left;margin:16px 0}.face-modal-steps-v32 span{display:flex;align-items:center;gap:9px;padding:8px 10px;border-radius:9px;background:#f7f9fc;color:#53677d;font-size:9px}.face-modal-steps-v32 b{width:21px;height:21px;display:grid;place-items:center;border-radius:50%;background:#e3effd;color:#176fd7}.face-modal-card-v32>.btn{width:100%;justify-content:center;height:44px}.face-modal-card-v32>small{display:block;margin-top:10px;color:#8492a2;font-size:8px;line-height:1.45}.modal-open-v32{overflow:hidden}
@media(max-width:1050px){.attendance-scan-grid-v32{grid-template-columns:minmax(320px,440px) 1fr}.attendance-buttons-v32{grid-template-columns:1fr!important}}
@media(max-width:800px){.attendance-main-v32{padding:14px}.attendance-title-v32{display:grid}.attendance-scan-grid-v32{grid-template-columns:1fr}.face-camera-card-v32 .face-camera-frame{height:min(62vw,360px)}.attendance-buttons-v32{grid-template-columns:1fr 1fr!important}}
@media(max-width:520px){.attendance-title-v32 .geo-status{justify-self:start}.face-camera-card-v32 .face-camera-frame{height:72vw;min-height:260px}.identity-card-v32{grid-template-columns:38px 1fr}.face-reg-badge-v32{grid-column:1/-1;justify-self:start}.attendance-buttons-v32{grid-template-columns:1fr!important}.today-attendance-v32{grid-template-columns:1fr 1fr}.attendance-main-v32{border-radius:10px}.face-modal-card-v32{padding:22px 18px}}

/* V33 — mobile-first chat selection + notification popover */
.notify-wrap-v33{position:relative;margin-left:auto;margin-right:14px;z-index:80}
.top-notify{display:grid;place-items:center;position:relative;width:38px;height:38px;border:0;border-radius:11px;background:transparent;color:#153457;cursor:pointer;font-size:16px}
.top-notify:hover,.top-notify[aria-expanded="true"]{background:#eef5ff;color:#176df6}
.top-notify>span{position:absolute;right:3px;top:2px;min-width:17px;height:17px;padding:0 4px;border-radius:99px;background:#e5484d;color:#fff;display:grid;place-items:center;font-size:8px;font-weight:800;border:2px solid #fff}
.notify-popover-v33{position:absolute;right:0;top:46px;width:min(390px,calc(100vw - 24px));max-height:min(560px,72vh);background:#fff;border:1px solid #dfe7f1;border-radius:15px;box-shadow:0 20px 55px rgba(18,45,78,.18);overflow:hidden;opacity:0;visibility:hidden;transform:translateY(-7px) scale(.985);transform-origin:top right;transition:.16s ease;z-index:120}
.notify-popover-v33.open{opacity:1;visibility:visible;transform:none}
.notify-pop-head-v33{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 15px;border-bottom:1px solid #edf1f6;background:#fff}
.notify-pop-head-v33>div{display:grid;gap:2px}.notify-pop-head-v33 b{font-size:12px;color:#153457}.notify-pop-head-v33 small{font-size:8px;color:#8494a8}.notify-pop-head-v33 form{margin:0}.notify-pop-head-v33 button{border:0;background:#edf5ff;color:#176df6;border-radius:8px;padding:7px 9px;font:700 8px 'Plus Jakarta Sans',sans-serif;cursor:pointer}
.notify-pop-list-v33{max-height:470px;overflow-y:auto;padding:6px}.notify-pop-item-v33{margin:0}.notify-pop-item-v33>button{width:100%;border:0;background:#fff;display:grid;grid-template-columns:34px 1fr;gap:9px;text-align:left;padding:9px;border-radius:10px;cursor:pointer}.notify-pop-item-v33>button:hover{background:#f6f9fd}.notify-pop-item-v33.is-read{opacity:.58}.notify-pop-item-v33>button>i{width:32px;height:32px;border-radius:9px;background:#edf5ff;color:#176df6;display:grid;place-items:center;font-size:11px}.notify-pop-item-v33 span{display:grid;gap:2px;min-width:0}.notify-pop-item-v33 b{font-size:9px;color:#17345c}.notify-pop-item-v33 small{font-size:8px;line-height:1.45;color:#6f8198;white-space:normal}.notify-pop-item-v33 time{font-size:7px;color:#9aa8b8;margin-top:2px}.notify-pop-empty-v33{min-height:180px;display:grid;place-items:center;align-content:center;gap:6px;text-align:center;color:#8293a8}.notify-pop-empty-v33 i{font-size:27px;color:#b5c2d2}.notify-pop-empty-v33 b{font-size:10px;color:#405a78}.notify-pop-empty-v33 small{font-size:8px}.inline-notify-open-v33{border:0;background:transparent;color:#176df6;font:700 8px 'Plus Jakarta Sans',sans-serif;cursor:pointer;padding:4px}
.chat-back-v33{display:none;width:34px;height:34px;border-radius:9px;place-items:center;text-decoration:none;color:#31506f;background:#f1f5f9}

@media(max-width:900px){
 .notify-wrap-v33{margin-left:auto;margin-right:8px}.top-notify{display:grid!important;width:36px;height:36px}.notify-popover-v33{position:fixed;top:68px;right:10px;left:10px;width:auto;max-height:calc(100dvh - 92px);border-radius:14px}.notify-pop-list-v33{max-height:calc(100dvh - 160px)}
 .chat-layout-v21{height:calc(100dvh - 92px)!important;display:block!important;min-height:0!important;max-height:none!important;overflow:hidden!important}
 .chat-layout-v21.chat-list-v33 .chat-contacts-v21{display:block!important;height:100%!important;max-height:none!important;padding:10px!important;overflow-y:auto!important;border-radius:12px}
 .chat-layout-v21.chat-list-v33 .chat-room-v21{display:none!important}
 .chat-layout-v21.chat-open-v33 .chat-contacts-v21{display:none!important}
 .chat-layout-v21.chat-open-v33 .chat-room-v21{display:grid!important;height:100%!important;min-height:0!important;border-radius:12px!important;grid-template-rows:auto minmax(0,1fr) auto!important}
 .chat-contacts-v21 .panel-title{position:sticky;top:0;background:#fff;z-index:2;padding:4px 2px 8px;margin:0!important}.chat-contacts-v21 .ess-search{position:sticky;top:43px;z-index:2;height:42px!important;margin:0 0 9px!important;background:#fff;font-size:11px}
 .chat-contact-v21{padding:10px 9px!important;margin-bottom:3px!important;grid-template-columns:42px minmax(0,1fr) 14px!important;border-bottom:1px solid #f0f3f7;border-radius:9px!important}.chat-contact-v21 img{width:40px!important;height:40px!important}.chat-contact-v21 b{font-size:10px!important}.chat-contact-v21 small{font-size:8px!important}
 .chat-back-v33{display:grid}.chat-room-v21>header{grid-template-columns:34px 36px minmax(0,1fr) auto!important;padding:9px 10px!important;gap:8px!important}.chat-room-v21>header img{width:34px!important;height:34px!important}.chat-room-v21>header>div b{font-size:10px!important}.chat-room-v21>header>div small{font-size:8px!important}.chat-room-v21>header>span{font-size:7px!important}
 .chat-messages-v21{padding:11px!important;gap:8px!important}.chat-bubble-v21{max-width:86%!important;padding:9px 10px!important}.chat-bubble-v21 p{font-size:10px!important}.chat-compose-v21{padding:9px!important;grid-template-columns:minmax(0,1fr) 40px!important}.chat-compose-v21 input{height:42px;font-size:10px!important;padding:10px 11px!important}.chat-compose-v21 button{width:40px;height:42px}
}
@media(max-width:480px){.notify-popover-v33{top:64px;right:8px;left:8px}.chat-layout-v21{height:calc(100dvh - 86px)!important}.chat-room-v21>header>span{display:none!important}.chat-room-v21>header{grid-template-columns:34px 34px minmax(0,1fr)!important}.chat-contact-v21{grid-template-columns:40px minmax(0,1fr) 12px!important}}

/* ===== V34 GLOBAL CONTENT / SCROLL ARCHITECTURE =====
   Desktop: sidebar and topbar stay fixed in their own viewport; only content scrolls.
   Mobile: normal document scrolling, drawer sidebar scrolls independently. */
@media (min-width:901px){
  html,body:not(.login-page){height:100%;overflow:hidden}
  body:not(.login-page) .shell{height:100dvh;min-height:0;display:grid;grid-template-columns:255px minmax(0,1fr);overflow:hidden}
  body:not(.login-page) .side{position:relative!important;top:auto!important;left:auto!important;height:100dvh!important;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;z-index:30}
  body:not(.login-page) .main{height:100dvh;min-height:0;min-width:0;display:grid;grid-template-rows:82px minmax(0,1fr);overflow:hidden;margin:0!important}
  body:not(.login-page) .top{position:relative!important;top:auto!important;height:82px;min-height:82px;z-index:20}
  body:not(.login-page) .content{width:100%;max-width:none!important;height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:26px clamp(24px,2.35vw,40px) 42px!important;scrollbar-gutter:stable}
  body:not(.login-page) .content>*{width:100%;max-width:1480px;margin-left:auto;margin-right:auto}
}

/* Universal content safety on every ESS menu/page */
body:not(.login-page) .content *,body:not(.login-page) .card *,body:not(.login-page) .ess-panel *{min-width:0}
body:not(.login-page) .card,body:not(.login-page) .ess-panel,body:not(.login-page) section,body:not(.login-page) article{max-width:100%}
body:not(.login-page) img,body:not(.login-page) video,body:not(.login-page) canvas{max-width:100%}
body:not(.login-page) .grid,body:not(.login-page) [class*="-grid"]{min-width:0}
body:not(.login-page) .table-wrap,body:not(.login-page) .table-responsive,body:not(.login-page) .transcript-table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
body:not(.login-page) .table{max-width:100%}
body:not(.login-page) input,body:not(.login-page) select,body:not(.login-page) textarea,body:not(.login-page) button{max-width:100%}
body:not(.login-page) .hero,body:not(.login-page) .ess-section-head,body:not(.login-page) .panel-head{min-width:0}

@media (max-width:900px){
  html,body:not(.login-page){height:auto;min-height:100%;overflow-x:hidden;overflow-y:auto}
  body:not(.login-page) .shell{display:block;min-height:100dvh;overflow:visible}
  body:not(.login-page) .main{height:auto;min-height:100dvh;overflow:visible;margin:0!important}
  body:not(.login-page) .top{position:sticky!important;top:0!important;height:68px;min-height:68px;z-index:24}
  body:not(.login-page) .content{height:auto!important;min-height:calc(100dvh - 68px);overflow:visible!important;padding:16px 14px 96px!important}
  body:not(.login-page) .side{position:fixed!important;left:-280px!important;top:0!important;width:255px!important;height:100dvh!important;overflow-y:auto!important;overflow-x:hidden!important;z-index:40!important;overscroll-behavior:contain}
  body:not(.login-page).mobile-open .side,body:not(.login-page) .mobile-open .side{left:0!important}
  body:not(.login-page) .content>*{max-width:100%}
  body:not(.login-page) .card,body:not(.login-page) .ess-panel{overflow:hidden}
  body:not(.login-page) .table-wrap,body:not(.login-page) .transcript-table-wrap{margin-left:0;margin-right:0;width:100%;overflow-x:auto}
}

@media (max-width:560px){
  body:not(.login-page) .content{padding-left:10px!important;padding-right:10px!important}
  body:not(.login-page) .card,body:not(.login-page) .ess-panel{border-radius:10px}
  body:not(.login-page) .formgrid,body:not(.login-page) .form-grid{grid-template-columns:1fr!important}
}

/* ===== V35 CHAT / FINANCE / MOBILE DRAWER / DESKTOP DENSITY ===== */
/* Desktop at browser 100% should feel like the older compact 75-85% view,
   while keeping actual browser zoom at 100% for sharp text and correct hit targets. */
@media (min-width:901px){
  body:not(.login-page) .shell{grid-template-columns:228px minmax(0,1fr)!important}
  body:not(.login-page) .side{padding:18px 13px!important;font-size:12px!important}
  body:not(.login-page) .brand{margin:0 6px 22px!important;gap:10px!important}
  body:not(.login-page) .brand img{width:44px!important;height:44px!important}
  body:not(.login-page) .brand b{font-size:15px!important;line-height:1.2!important}
  body:not(.login-page) .brand small{font-size:9px!important}
  body:not(.login-page) .nav{min-height:0;display:grid;align-content:start;gap:1px}
  body:not(.login-page) .nav a{padding:8px 10px!important;margin:1px 0!important;border-radius:8px!important;font-size:11px!important;gap:9px!important;min-height:34px}
  body:not(.login-page) .nav a i{width:18px;text-align:center;font-size:13px!important}
  body:not(.login-page) .side-security-card{margin-top:12px!important;padding:10px!important}
  body:not(.login-page) .side-security-card img{max-height:58px!important}
  body:not(.login-page) .side-security-card strong{font-size:9px!important}
  body:not(.login-page) .side-security-card p{font-size:7.5px!important;line-height:1.45!important}
  body:not(.login-page) .side-logout{padding:9px 10px!important;font-size:11px!important;min-height:36px}
  body:not(.login-page) .main{grid-template-rows:64px minmax(0,1fr)!important}
  body:not(.login-page) .top{height:64px!important;min-height:64px!important;padding:0 20px!important}
  body:not(.login-page) .content{padding:18px clamp(18px,2vw,30px) 28px!important}
  body:not(.login-page) .content>*{max-width:1320px!important}
  body:not(.login-page) .card{padding:16px!important}
  body:not(.login-page) .page-head-v21{margin-bottom:13px!important}
  body:not(.login-page) .page-head-v21 h2{font-size:20px!important}
  body:not(.login-page) .page-head-v21 p{font-size:9px!important}
  body:not(.login-page) .ess-section-head{margin-bottom:12px!important}
  body:not(.login-page) .ess-section-head h3{font-size:13px!important}
  body:not(.login-page) .ess-section-head p{font-size:8px!important}
  body:not(.login-page) .table{font-size:10.5px!important}
  body:not(.login-page) .table th,body:not(.login-page) .table td{padding:9px 10px!important}
}

/* Sidebar must always sit above the dimming overlay on mobile.
   V34 lowered .side below an older overlay z-index, which made visible links unclickable. */
@media (max-width:900px){
  body:not(.login-page) .side{z-index:110!important;pointer-events:auto!important;background:#fff!important}
  body:not(.login-page) .side-overlay{display:block!important;z-index:100!important;pointer-events:none!important}
  body:not(.login-page) .mobile-open .side-overlay,
  body:not(.login-page).mobile-open .side-overlay{pointer-events:auto!important;opacity:1!important;visibility:visible!important}
  body:not(.login-page) .mobile-open .side,
  body:not(.login-page).mobile-open .side{pointer-events:auto!important}
  body:not(.login-page) .side .nav,
  body:not(.login-page) .side .nav a,
  body:not(.login-page) .side .side-logout{position:relative;z-index:112;pointer-events:auto!important}
  body:not(.login-page) .side{padding-bottom:max(18px,env(safe-area-inset-bottom))!important}
  body:not(.login-page) .side .nav{flex:0 0 auto}
}

/* CHAT — centered, bounded and balanced on desktop. */
@media (min-width:901px){
  body.page-chat .content{display:flex;align-items:flex-start;justify-content:center;overflow:hidden!important}
  body.page-chat .chat-layout-v21{
    width:min(1120px,100%)!important;
    height:min(690px,calc(100dvh - 102px))!important;
    min-height:500px!important;max-height:none!important;
    grid-template-columns:320px minmax(0,1fr)!important;
    gap:12px!important;margin:0 auto!important;overflow:hidden!important;
  }
  body.page-chat .chat-contacts-v21,
  body.page-chat .chat-room-v21{border:1px solid #dfe7f1!important;border-radius:14px!important;background:#fff!important;box-shadow:0 5px 20px rgba(36,72,116,.035)}
  body.page-chat .chat-contacts-v21{padding:13px!important;height:100%!important;overflow-y:auto!important;scrollbar-width:thin}
  body.page-chat .chat-contacts-v21 .panel-title{position:sticky;top:-13px;z-index:4;background:#fff;padding:13px 1px 9px;margin:0!important}
  body.page-chat .chat-contacts-v21 .panel-title h3{font-size:13px!important}
  body.page-chat .chat-contacts-v21 .panel-title span{font-size:8px!important}
  body.page-chat .chat-contacts-v21 .ess-search{position:sticky;top:35px;z-index:4;height:38px!important;margin:0 0 8px!important;font-size:10px!important;background:#fff}
  body.page-chat .chat-contact-v21{grid-template-columns:36px minmax(0,1fr) 12px!important;padding:8px!important;margin:1px 0!important;border-radius:9px!important;min-height:50px}
  body.page-chat .chat-contact-v21:hover,body.page-chat .chat-contact-v21.on{background:#f3f7fd!important}
  body.page-chat .chat-contact-v21 img{width:34px!important;height:34px!important}
  body.page-chat .chat-contact-v21 b{font-size:9.5px!important}
  body.page-chat .chat-contact-v21 small{font-size:7.5px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.page-chat .chat-room-v21{height:100%!important;min-height:0!important;grid-template-rows:58px minmax(0,1fr) 62px!important;overflow:hidden!important}
  body.page-chat .chat-room-v21>header{padding:10px 14px!important;border-bottom:1px solid #e9eef5!important;min-height:58px!important}
  body.page-chat .chat-room-v21>header img{width:36px!important;height:36px!important}
  body.page-chat .chat-room-v21>header b{font-size:10px!important}
  body.page-chat .chat-room-v21>header small{font-size:8px!important}
  body.page-chat .chat-room-v21>header>span{font-size:7px!important}
  body.page-chat .chat-messages-v21{min-height:0!important;padding:14px!important;overflow-y:auto!important;background:#f8fbff!important}
  body.page-chat .chat-empty-v21{height:100%;min-height:0!important;align-content:center!important;padding:20px!important}
  body.page-chat .chat-empty-v21 i{font-size:30px!important}
  body.page-chat .chat-empty-v21 b{font-size:11px!important}
  body.page-chat .chat-empty-v21 span{font-size:8px!important}
  body.page-chat .chat-bubble-v21{max-width:72%!important;padding:9px 11px!important;border-radius:11px!important}
  body.page-chat .chat-bubble-v21 p{font-size:9.5px!important;line-height:1.5!important}
  body.page-chat .chat-bubble-v21 time{font-size:7px!important}
  body.page-chat .chat-compose-v21{min-height:62px!important;padding:10px 12px!important;border-top:1px solid #e8eef5!important;display:grid!important;grid-template-columns:minmax(0,1fr) 40px!important;gap:8px!important;align-items:center!important}
  body.page-chat .chat-compose-v21 input{height:40px!important;font-size:10px!important;padding:0 12px!important;border-radius:10px!important}
  body.page-chat .chat-compose-v21 button{width:40px!important;height:40px!important;border-radius:10px!important}
}

/* CHAT — mobile is a real two-stage screen: contact list first, room second.
   Reserve space for topbar, bottom nav and iPhone safe area so composer is never clipped. */
@media (max-width:900px){
  body.page-chat{overflow:hidden!important;height:100dvh!important}
  body.page-chat .shell,body.page-chat .main{height:100dvh!important;min-height:0!important;overflow:hidden!important}
  body.page-chat .top{height:58px!important;min-height:58px!important;position:relative!important}
  body.page-chat .content{
    height:calc(100dvh - 58px - 78px - env(safe-area-inset-bottom))!important;
    min-height:0!important;overflow:hidden!important;
    padding:8px 8px 6px!important;
  }
  body.page-chat .chat-layout-v21{height:100%!important;min-height:0!important;max-height:none!important;margin:0!important}
  body.page-chat .chat-layout-v21.chat-list-v33 .chat-contacts-v21{height:100%!important;padding:9px!important;overflow-y:auto!important;border:1px solid #dfe7f1!important}
  body.page-chat .chat-layout-v21.chat-open-v33 .chat-room-v21{height:100%!important;min-height:0!important;grid-template-rows:54px minmax(0,1fr) 60px!important;overflow:hidden!important;border:1px solid #dfe7f1!important}
  body.page-chat .chat-room-v21>header{min-height:54px!important;padding:8px 9px!important}
  body.page-chat .chat-messages-v21{min-height:0!important;overflow-y:auto!important;padding:9px!important;overscroll-behavior:contain!important}
  body.page-chat .chat-compose-v21{position:relative!important;bottom:auto!important;min-height:60px!important;padding:8px!important;background:#fff!important;border-top:1px solid #e6edf5!important;z-index:5!important}
  body.page-chat .chat-compose-v21 input{height:42px!important;font-size:11px!important}
  body.page-chat .chat-compose-v21 button{height:42px!important;width:42px!important}
  body.page-chat .ess-bottom-nav{height:78px!important;min-height:78px!important;z-index:90!important}
}
@media (max-width:480px){
  body.page-chat .content{padding:6px!important}
  body.page-chat .chat-layout-v21.chat-open-v33 .chat-room-v21{grid-template-rows:52px minmax(0,1fr) 58px!important}
  body.page-chat .chat-room-v21>header{min-height:52px!important}
  body.page-chat .chat-compose-v21{min-height:58px!important;padding:7px!important}
}

/* FINANCE / SPP — clearer hierarchy and safer responsive tables/forms. */
body.page-finance .finance-kpi-v19{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;margin-bottom:14px!important}
body.page-finance .finance-kpi-v19>div{border:1px solid #dfe7f1!important;border-radius:13px!important;background:#fff!important;padding:14px 16px!important;box-shadow:0 5px 20px rgba(36,72,116,.035)!important}
body.page-finance .finance-kpi-v19 span{font-size:8.5px!important;color:#71849b!important}
body.page-finance .finance-kpi-v19 b{display:block!important;margin-top:5px!important;font-size:17px!important;color:#12335c!important;line-height:1.2!important}
body.page-finance .ess-finance-grid-v26{grid-template-columns:minmax(0,1.45fr) minmax(300px,.55fr)!important;gap:14px!important;align-items:start!important;margin-bottom:14px!important}
body.page-finance .payment-submit-card-v26{position:sticky;top:0;overflow:visible!important}
body.page-finance .ess-form-v26{gap:9px!important}
body.page-finance .ess-form-v26 label{font-size:8px!important;gap:5px!important}
body.page-finance .ess-form-v26 input,body.page-finance .ess-form-v26 select,body.page-finance .ess-form-v26 textarea{font-size:9.5px!important;padding:9px 10px!important;border-radius:8px!important}
body.page-finance .ess-form-v26 .full{grid-column:1/-1}
body.page-finance .ess-form-v26 button{grid-column:1/-1;justify-content:center!important;min-height:38px;font-size:9px!important}
body.page-finance .tablewrap{width:100%;max-width:100%;overflow-x:auto!important;border:1px solid #e7edf4;border-radius:10px}
body.page-finance .tablewrap .table{min-width:680px;background:#fff}
body.page-finance .tablewrap .table th{background:#f7f9fc;color:#61738a!important}
body.page-finance .ess-pill{font-size:7.5px!important;padding:5px 8px!important;border-radius:999px!important;text-transform:capitalize}
body.page-finance .midtrans-box-v26{margin-top:10px!important;padding:10px!important}
body.page-finance .midtrans-box-v26 form{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto!important}

@media (max-width:1050px){
  body.page-finance .ess-finance-grid-v26{grid-template-columns:1fr!important}
  body.page-finance .payment-submit-card-v26{position:relative!important;top:auto!important}
}
@media (max-width:700px){
  body.page-finance .finance-kpi-v19{grid-template-columns:1fr 1fr!important;gap:8px!important}
  body.page-finance .finance-kpi-v19>div{padding:11px 12px!important}
  body.page-finance .finance-kpi-v19>div:last-child{grid-column:1/-1}
  body.page-finance .finance-kpi-v19 b{font-size:15px!important}
  body.page-finance .ess-finance-grid-v26{gap:9px!important}
  body.page-finance .card{padding:12px!important}
  body.page-finance .ess-form-v26{grid-template-columns:1fr!important}
  body.page-finance .ess-form-v26 .full,body.page-finance .ess-form-v26 button{grid-column:auto!important}
  body.page-finance .midtrans-box-v26 form{grid-template-columns:1fr!important}
  body.page-finance .tablewrap .table{min-width:620px}
}

/* ===== V37: sidebar independent scroll + corrected chat empty-state ===== */
body:not(.login-page) .side{overflow:hidden!important}
body:not(.login-page) .side .nav{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;scrollbar-width:thin;padding-right:3px}
body:not(.login-page) .side .nav::-webkit-scrollbar{width:5px}
body:not(.login-page) .side .nav::-webkit-scrollbar-thumb{background:#cfdae8;border-radius:10px}
body:not(.login-page) .side .brand{flex:0 0 auto!important}
body:not(.login-page) .side .side-logout{flex:0 0 auto!important;margin-top:8px!important;background:#fff}
@media(max-width:900px){body:not(.login-page) .side{display:flex!important;flex-direction:column!important;overflow:hidden!important}body:not(.login-page) .side .nav{overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;padding-bottom:12px!important}}

@media(min-width:901px){
 body.page-chat .chat-layout-v21.chat-list-v33 .chat-room-v21{display:grid!important;grid-template-rows:minmax(0,1fr)!important;place-items:center!important}
 body.page-chat .chat-layout-v21.chat-list-v33 .chat-empty-v21{grid-row:1!important;width:100%!important;height:100%!important;margin:0!important;align-content:center!important;justify-content:center!important;place-items:center!important;align-self:stretch!important;justify-self:stretch!important;padding:24px!important}
 body.page-chat .chat-layout-v21.chat-list-v33 .chat-empty-v21 i{margin:0 auto!important}
}
