@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}
}

/* v7.1 mobile dashboard polish + Face ID button */
.ess-face-login i{display:inline-grid!important;place-items:center!important;width:30px!important;height:30px!important;flex:0 0 30px!important;font-size:22px!important;color:#0872ed!important}
.ess-top-avatar img,.ess-mobile-avatar img,.avatar{object-fit:cover!important;object-position:center!important}
@media(max-width:600px){.ess-overview-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px!important}.ess-stat-card,.ess-approval-card{min-width:0!important;overflow:hidden!important;padding:12px 9px!important;grid-template-columns:38px minmax(0,1fr)!important;column-gap:7px!important;min-height:138px!important}.ess-stat-icon{width:38px!important;height:38px!important;font-size:15px!important}.ess-stat-card>div:nth-child(2),.ess-approval-card>div:nth-child(2){min-width:0!important}.ess-stat-card span,.ess-approval-card span{font-size:9px!important;line-height:1.25!important;white-space:normal!important}.ess-stat-card strong,.ess-approval-card strong{font-size:clamp(18px,5.7vw,23px)!important;line-height:1.05!important;max-width:100%!important;overflow-wrap:anywhere!important}.ess-stat-card small,.ess-approval-card small{font-size:8px!important;margin-left:2px!important;white-space:nowrap!important}.ess-stat-card p,.ess-approval-card p{font-size:8px!important;line-height:1.3!important;margin-top:8px!important;min-width:0!important}.ess-leave-card{min-width:0!important;overflow:hidden!important;padding:12px!important;gap:8px!important;align-items:center!important}.ess-leave-copy{min-width:0!important;flex:1 1 auto!important}.ess-leave-copy>span{font-size:8px!important}.ess-leave-copy h2{font-size:13px!important;line-height:1.2!important;margin:4px 0 8px!important}.ess-legend{font-size:8px!important;gap:5px!important}.ess-legend>div{grid-template-columns:8px minmax(0,1fr) auto!important;gap:5px!important}.legend{width:7px!important;height:7px!important}.ess-gradient-donut{width:82px!important;height:82px!important;flex:0 0 82px!important}.ess-gradient-donut:after{inset:14px!important}.ess-gradient-donut strong{font-size:17px!important}.ess-gradient-donut small{font-size:7px!important}}
@media(max-width:390px){.ess-stat-card,.ess-approval-card{padding:10px 7px!important;grid-template-columns:34px minmax(0,1fr)!important;column-gap:5px!important}.ess-stat-icon{width:34px!important;height:34px!important;font-size:14px!important}.ess-stat-card strong,.ess-approval-card strong{font-size:18px!important}.ess-leave-card{padding:10px 8px!important}.ess-gradient-donut{width:76px!important;height:76px!important;flex-basis:76px!important}.ess-gradient-donut strong{font-size:15px!important}}
