/* AEM shared visual foundation. Brand reference: https://aemviz.com/ */
:root{--aem-sage:#b5c1a7;--aem-paper:#f7f7f5;--aem-ink:#253027;--aem-muted:#5e685e;--aem-line:#d4d9d0;--aem-forest:#26342c;--aem-accent:#64745d;--aem-soft:#e8ede3;--aem-white:#fff;--aem-radius:8px;--aem-header:76px;--suite-bg:var(--aem-paper)!important;--suite-ink:var(--aem-ink)!important;--suite-muted:var(--aem-muted)!important;--suite-line:var(--aem-line)!important;--suite-card:#fff!important;color-scheme:light!important}
html{background:var(--aem-paper)!important;scroll-padding-top:90px}
body[data-aem-page]{background:var(--aem-paper);color:var(--aem-ink);font:14px/1.5 Arial,Helvetica,sans-serif;color-scheme:light}
body[data-aem-page] :is(button,input,select,textarea){font-family:Arial,Helvetica,sans-serif}
body[data-aem-page] :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--aem-accent);outline-offset:3px}
#aem-global-header{position:sticky;top:0;z-index:1200;display:flex;align-items:center;gap:28px;height:var(--aem-header);min-height:var(--aem-header);padding:0 30px;margin:0;border:0;border-bottom:1px solid #a9b69b;background:var(--aem-sage);color:var(--aem-ink);font:13px Arial,Helvetica,sans-serif;box-sizing:border-box;width:100%}
#aem-global-header *{box-sizing:border-box}
#aem-global-header .aem-global-logo{display:flex;align-items:center;gap:15px;text-decoration:none;color:var(--aem-forest);flex-shrink:0}
#aem-global-header .aem-global-logo img{width:100px;height:40px;display:block;max-width:none}
#aem-global-header .aem-global-logo span{font-size:9px;letter-spacing:1.8px;border-left:1px solid #8c9a80;padding:7px 0 7px 15px}
#aem-global-header nav{display:flex;gap:3px;align-items:center;flex:1;min-width:0;overflow-x:auto;height:100%;scrollbar-width:thin;min-height:0;padding:0;margin:0;background:transparent}
#aem-global-header nav a{display:flex;align-items:center;justify-content:center;min-height:40px;padding:10px 12px;white-space:nowrap;text-decoration:none;border-radius:6px;font-size:12px;font-weight:500;line-height:20px;color:var(--aem-forest);border:0}
#aem-global-header nav a:hover{background:#ffffff40}
#aem-global-header nav a[aria-current=page]{background:var(--aem-forest);color:white}
#aem-global-header .aem-global-demo{font-size:9px;letter-spacing:1.2px;white-space:nowrap;color:#34402e;border:1px solid #8f9f82;border-radius:4px;padding:5px 8px}
/* Shared surfaces and controls, with semantic status colours retained. */
body[data-aem-page] :is(.card,.surface,.metric,.suite-card,.suite-metric,.suite-staff-card){border-color:var(--aem-line);border-radius:var(--aem-radius);box-shadow:none;background:var(--aem-white)}
body[data-aem-page] :is(h1,h2,h3){color:var(--aem-ink);font-family:Arial,Helvetica,sans-serif}
body[data-aem-page] h1{font-size:28px;line-height:1.2;letter-spacing:-.8px;font-weight:500}
body[data-aem-page] h2{font-size:18px;font-weight:600;letter-spacing:-.25px}
body[data-aem-page] :is(.metric strong,.suite-metric strong){font-weight:500;color:var(--aem-ink);font-size:29px}
body[data-aem-page] :is(.metric small,.metric em,.muted,.help,.foot,.suite-footnote,.suite-eyebrow,.eyebrow){color:var(--aem-muted)}
body[data-aem-page] :is(input,select,textarea){border-color:var(--aem-line);border-radius:6px;color:var(--aem-ink);background:white}
body[data-aem-page] :is(button.primary,.primary,.suite-primary){background:var(--aem-forest)!important;border-color:var(--aem-forest)!important;color:white!important;border-radius:6px}
body[data-aem-page] :is(th,.suite-table th){background:#edf0e9;color:var(--aem-muted);font-size:11px;font-weight:600;letter-spacing:.4px}
body[data-aem-page] :is(td,.card,.surface){border-color:var(--aem-line)}
body[data-aem-page] :is(.notice,.policy-note){background:#eef1e8;border-color:var(--aem-line);color:#52604a;border-radius:6px}
body[data-aem-page] :is(dialog){color:var(--aem-ink);background:white;border:1px solid var(--aem-line);border-radius:10px;box-shadow:0 20px 80px #26342c33}
body[data-aem-page] dialog::backdrop{background:#26342c80}
body[data-aem-page] :is(.bar,.progress i){background:var(--aem-accent)}
/* Payroll and Time Off keep local task navigation under one global header. */
body:is([data-aem-page=payroll],[data-aem-page=timeoff])>aside{top:var(--aem-header);width:220px;background:#edf0e8;color:var(--aem-ink);border-right:1px solid var(--aem-line);padding:20px 14px}
body:is([data-aem-page=payroll],[data-aem-page=timeoff])>aside .brand{display:none}
body:is([data-aem-page=payroll],[data-aem-page=timeoff])>aside .product{margin:10px 12px 22px;color:var(--aem-muted);font-size:10px}
body:is([data-aem-page=payroll],[data-aem-page=timeoff])>aside .product span{color:var(--aem-ink);font-size:17px;font-weight:500}
body:is([data-aem-page=payroll],[data-aem-page=timeoff])>aside nav button{color:var(--aem-muted);border-radius:6px;font-size:13px}
body:is([data-aem-page=payroll],[data-aem-page=timeoff])>aside nav button.active{background:#dce4d3;color:var(--aem-ink);font-weight:600}
body:is([data-aem-page=payroll],[data-aem-page=timeoff])>aside .aside-bottom{border-top:1px solid var(--aem-line);font-size:12px;gap:12px;color:var(--aem-muted)}
body:is([data-aem-page=payroll],[data-aem-page=timeoff])>main{margin-left:220px;padding:0 32px 48px}
body:is([data-aem-page=payroll],[data-aem-page=timeoff]) main>.top{height:48px;font-size:12px;color:var(--aem-muted);border-color:var(--aem-line)}
body[data-aem-page=timeoff] .intro{background:#e4eadc;color:var(--aem-ink);border:1px solid var(--aem-line);border-radius:8px}
body[data-aem-page=timeoff] .intro p{color:var(--aem-muted)}
body[data-aem-page=timeoff] .calendar .day-title{background:#edf0e8}
body[data-aem-page=timeoff] .calendar button{background:#e4eadc;color:var(--aem-ink)}
/* Pipeline uses the same content width, heading scale and control styling. */
body[data-aem-page=pipeline]>header.top{display:none}
body[data-aem-page=pipeline]>main{max-width:1600px;padding:28px 32px 48px}
body[data-aem-page=pipeline] .metric{border-top:1px solid var(--aem-line)}
body[data-aem-page=pipeline] .teams button[aria-pressed=true]{background:var(--aem-forest);color:white}
body[data-aem-page=pipeline] .heading h1{font-size:28px}
body[data-aem-page=pipeline] .heading h1 span{display:none}
/* Suite: Work, Checkin, HRM, home. Existing route machinery remains intact. */
#aem-suite-bar{display:none!important}
#aem-suite-page{font-family:Arial,Helvetica,sans-serif!important;max-width:1600px!important;padding:28px 32px 60px!important}
#aem-suite-page :is(.suite-welcome){background:#e4eadc!important;border:1px solid var(--aem-line);border-radius:8px;color:var(--aem-ink)}
#aem-suite-page .suite-welcome :is(h2,p,span,small){color:var(--aem-ink)!important}
#aem-suite-page :is(.suite-orbit){background:var(--aem-sage)!important;border-color:#9fac93!important;color:var(--aem-forest)!important}
#aem-suite-page .suite-module{border-top:1px solid var(--aem-line)!important;--module-color:var(--aem-accent)!important}
#aem-suite-page .suite-page-head h1{--module-color:var(--aem-accent)!important;font-size:28px!important;font-weight:500!important}
#aem-suite-page .suite-metric{border-top-color:var(--aem-line)!important}
#aem-suite-page .suite-avatar{background:#e4eadc;color:var(--aem-forest)}

/* Messages: same brand chrome, with a quiet light conversation surface. */
body[data-aem-page=messages],body[data-aem-page=messages].light{--bg:#f7f7f5;--side:#edf0e8;--line:#d4d9d0;--bubble:#e8ece4;--muted:#5e685e;--accent:#64745d;--text:#253027;--panel:#fff;--input:#fff;color:#253027}
body[data-aem-page=messages] .topbar{background:#f7f7f5;color:var(--aem-muted);height:48px;border-bottom:1px solid var(--aem-line);padding:0 22px}
body[data-aem-page=messages] .topbar>.logo,body[data-aem-page=messages] .apps{display:none!important}
body[data-aem-page=messages] .topbar .demo-label{color:var(--aem-muted)}
body[data-aem-page=messages] .top-search{background:white;border:1px solid var(--aem-line);color:var(--aem-muted);padding:5px 10px}
body[data-aem-page=messages] .top-search input{background:none;color:var(--aem-ink)}
body[data-aem-page=messages] .top-search input::placeholder{color:var(--aem-muted)}
body[data-aem-page=messages] .topbar .icon-button{color:var(--aem-muted)}
body[data-aem-page=messages] .workspace{height:calc(100dvh - var(--aem-header) - 48px)}
body[data-aem-page=messages] :is(.channels h1,.conversation-title h2,.message-header strong,.empty-state h3){color:var(--aem-ink)}
body[data-aem-page=messages] .channels{border-right:1px solid var(--aem-line);width:290px}
body[data-aem-page=messages] .channel.active{background:var(--aem-forest);color:white}
body[data-aem-page=messages] .channel:hover:not(.active){background:#dfe6d8}
body[data-aem-page=messages] .channel-search{border:1px solid var(--aem-line)}
body[data-aem-page=messages] :is(.tools){background:#edf0e8;border-left:1px solid var(--aem-line)}
body[data-aem-page=messages] :is(.metadata,#kind,.category-toggle,.composer-note,.hint){color:var(--aem-muted)}
body[data-aem-page=messages] .mine .bubble{background:var(--aem-forest);color:white}
body[data-aem-page=messages] .bubble a{color:#4f6841}
body[data-aem-page=messages] .mine .bubble a{color:#e0edce}
body[data-aem-page=messages] .popover{background:white;border:1px solid var(--aem-line);color:var(--aem-ink)}
body[data-aem-page=messages] #detail-panel{top:calc(var(--aem-header) + 48px)}
@media(max-width:1100px){#aem-global-header{gap:18px;padding:0 20px}#aem-global-header .aem-global-logo span,#aem-global-header .aem-global-demo{display:none}#aem-global-header nav a{padding:10px}}
@media(max-width:760px){:root{--aem-header:112px}#aem-global-header{height:112px;display:grid;grid-template-columns:1fr auto;gap:0;padding:10px 16px 0}#aem-global-header .aem-global-logo img{width:78px;height:32px}#aem-global-header .aem-global-logo span{display:block}#aem-global-header nav{grid-column:1/-1;width:100%;height:54px;order:3}#aem-global-header nav a{font-size:12px;min-height:36px;padding:8px 10px}#aem-global-header .aem-global-demo{display:block;font-size:8px}body:is([data-aem-page=payroll],[data-aem-page=timeoff])>aside{position:static;width:auto;padding:10px 16px;border-right:0;border-bottom:1px solid var(--aem-line)}body:is([data-aem-page=payroll],[data-aem-page=timeoff])>aside .product,body:is([data-aem-page=payroll],[data-aem-page=timeoff])>aside .aside-bottom{display:none}body:is([data-aem-page=payroll],[data-aem-page=timeoff])>aside nav{display:flex;overflow-x:auto;gap:5px}body:is([data-aem-page=payroll],[data-aem-page=timeoff])>aside nav button{width:auto;white-space:nowrap;padding:10px;margin:0;font-size:12px}body:is([data-aem-page=payroll],[data-aem-page=timeoff])>main{margin:0;padding:0 16px 30px}#aem-suite-page{padding:24px 16px!important}body[data-aem-page=pipeline]>main{padding:24px 16px}body[data-aem-page=messages] .channels{width:100%}body[data-aem-page=messages] .topbar{gap:8px;padding:0 12px}body[data-aem-page=messages] .top-end{display:none}}
@media print{#aem-global-header{display:none!important}}
/* Override legacy Work theme rules, which lived in inline styles. */










body[data-aem-page=messages] .channels h1{font-size:18px;font-weight:600}

/* Shared phone layout: keep workflows and make all controls reachable. */
@media(max-width:760px){
html,body{max-width:100%;overflow-x:hidden}body{padding-bottom:env(safe-area-inset-bottom)}
#aem-global-header{box-sizing:border-box;width:100%;max-width:100vw}#aem-global-header nav{min-width:0;overflow-x:auto;scrollbar-width:thin}#aem-global-header nav a{flex-shrink:0;min-height:44px;display:flex;align-items:center}
body :is(input,select,textarea){font-size:16px}body :is(button,.button){min-height:42px;touch-action:manipulation}
body :is(main,#app,.card,.metrics,.grid,.hrm-grid){min-width:0}
body :is(dialog,.aem-standard-drawer){max-width:calc(100vw - 20px);max-height:calc(100dvh - 24px);overflow:auto}body dialog{padding:18px}body dialog footer{flex-wrap:wrap;position:sticky;bottom:-18px;background:var(--aem-paper);padding:12px 0}
body :is(.metric strong,.slip-total strong){font-size:20px;overflow-wrap:anywhere}body .metrics{gap:10px}body .card{padding:16px}body .bar-row{grid-template-columns:90px minmax(25px,1fr) 100px;gap:8px}body .bar-row>:last-child{font-size:12px;text-align:right}
body .filters>input{min-width:0;width:100%}body .filters>select{max-width:100%}body .top{height:auto;min-height:64px;gap:8px;flex-wrap:wrap;padding:12px 0}body .top .badge{font-size:9px}
body[data-aem-page=hrm] aside nav{max-width:100%;gap:4px}body[data-aem-page=hrm] aside nav button{flex-shrink:0;width:auto}body[data-aem-page=hrm] aside{padding:8px 12px}






body[data-aem-page=messages] .conversation{min-width:0}body[data-aem-page=messages] #detail-panel{width:100%;max-width:100%;right:0}body[data-aem-page=messages] .composer{padding-bottom:max(10px,env(safe-area-inset-bottom))}body[data-aem-page=messages] .bubble{overflow-wrap:anywhere;max-width:100%}
}
@media(max-width:380px){body .metrics{grid-template-columns:1fr}body .metric strong{font-size:24px}}

@media(max-width:760px){body[data-aem-page=messages] .composer-wrap textarea{min-height:52px;line-height:22px;padding:8px;overflow:auto}body[data-aem-page=messages] .composer-wrap{flex-shrink:0}body[data-aem-page=messages] .conversation-title h2{font-size:15px}body[data-aem-page=messages] .composer-note{line-height:1.4}}

.aem-source-parent{display:block;flex-basis:100%;font-size:11px;color:var(--aem-muted,#5e685e);overflow-wrap:anywhere;white-space:normal}

  


/* Local-tab activity is not company-wide online presence. */
#aem-online{display:none!important}
/* Keep Work detail panels below the shared navigation at every screen size. */







/* Work overview: readable hierarchy, compact notes and consistent Vietnamese type. */
.aem-completion-dialog{max-width:420px;width:calc(100% - 48px);box-sizing:border-box;padding:24px;border:1px solid #d4d9d0;border-radius:12px;background:#fff;color:#253027;font:14px/1.6 Arial,Helvetica,sans-serif;box-shadow:0 16px 60px #0003}
.aem-completion-dialog::backdrop{background:#13221966}
.aem-completion-dialog h2{font-size:20px;margin:0 0 12px}
.aem-completion-dialog>div{display:flex;justify-content:flex-end;gap:10px;margin-top:22px;flex-wrap:wrap}
.aem-completion-dialog button{padding:10px 14px;border:1px solid #d4d9d0;border-radius:6px;background:#fff;font:inherit;cursor:pointer}
.aem-completion-dialog .aem-confirm-complete{background:#26342c;color:white}


































/* Đang tải: thanh menu hiện ngay (xem aem-boot.js), nội dung ẩn tới khi dữ liệu về; thay màn hình chữ giữa trang bằng thanh tiến trình mỏng dưới menu. */
html.aem-app-loading::before{content:"";position:fixed;left:0;right:0;top:var(--aem-header,76px);height:3px;z-index:1300;background:linear-gradient(90deg,transparent 0,#64745d 50%,transparent 100%) no-repeat;background-size:35% 100%;animation:aem-loading-bar 1.1s ease-in-out infinite;visibility:visible}
@keyframes aem-loading-bar{from{background-position:-40% 0}to{background-position:140% 0}}
@media(prefers-reduced-motion:reduce){html.aem-app-loading::before{animation:none;background:#64745d55}}
/* Mọi trang dùng chung: không để lề 8px mặc định của trình duyệt quanh thanh menu (Checkin, Tài khoản từng bị viền trắng). */
body[data-aem-page]{margin:0}

#aem-global-header .aem-global-actions{display:flex;align-items:center;gap:16px;flex:none}#aem-global-header .aem-global-demo{flex:none}@media(max-width:760px){#aem-global-header .aem-global-actions{grid-column:2;grid-row:1;gap:0}#aem-global-header .aem-global-actions .aem-global-demo{display:none}#aem-global-header .aem-global-logo{grid-column:1;grid-row:1;min-width:0}#aem-global-header nav{grid-row:2}}

/* Keep the original sign-in appearance, centered with room to scroll on short screens. */
html:not(.aem-auth-ready) body[data-aem-page=account]{display:flex;flex-direction:column;align-items:center;min-height:100vh;min-height:100dvh;margin:0;padding:16px!important;box-sizing:border-box;width:100%}
html:not(.aem-auth-ready) body[data-aem-page=account]>main{flex:none;width:100%;max-width:440px;box-sizing:border-box;margin:auto!important}
/* AEM homepage — typography and spacing follow the studio website. */
#aem-suite-page .aem-home{max-width:1320px;margin:0 auto;padding:28px 12px 30px;color:var(--aem-ink);font-family:Arial,Helvetica,sans-serif}
#aem-suite-page .aem-home-hero{padding:20px 0 42px;border:0;background:none}
#aem-suite-page .aem-home-eyebrow{font-size:12px;letter-spacing:1.15px;font-weight:400;margin:0 0 40px}
#aem-suite-page .aem-home-hero h1{font:500 clamp(38px,5.8vw,78px)/1.08 Arial,Helvetica,sans-serif;letter-spacing:-3px;margin:0;color:#253027}
#aem-suite-page .aem-home-hero h1 span{color:#68765f}
#aem-suite-page .aem-home-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0 25px;font-size:14px}
#aem-suite-page .aem-home-intro p{margin:0;color:#5e685e}
#aem-suite-page .aem-home-intro a{display:inline-flex;gap:24px;align-items:center;border-radius:7px;background:#26342c;color:#fff;padding:13px 18px;text-decoration:none;font-weight:600}
#aem-suite-page .aem-home-stats{display:grid;grid-template-columns:repeat(4,1fr);padding:26px 0;border-top:1px solid #d4d9d0;border-bottom:1px solid #d4d9d0;margin-bottom:30px}
#aem-suite-page .aem-home-stats>div{display:flex;flex-direction:column;gap:8px;padding:0 24px;border-right:1px solid #d4d9d0}
#aem-suite-page .aem-home-stats>div:first-child{padding-left:0}#aem-suite-page .aem-home-stats>div:last-child{border:0}
#aem-suite-page .aem-home-stats strong{font-size:30px;font-weight:500;line-height:1.1}#aem-suite-page .aem-home-stats span{font-size:12px;color:#5e685e}
#aem-suite-page .aem-home-links{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
#aem-suite-page .aem-home-links>a{display:flex;align-items:center;gap:15px;padding:22px 18px;border:1px solid #d4d9d0;border-radius:9px;background:#fff;text-decoration:none;color:#253027;min-width:0;transition:background .15s,border-color .15s}
#aem-suite-page .aem-home-links>a:hover{background:#edf1e6;border-color:#9eae94}
#aem-suite-page .aem-home-links strong{display:block;font-size:17px;font-weight:600;margin-bottom:7px}#aem-suite-page .aem-home-links small{font-size:12px;color:#5e685e}
#aem-suite-page .aem-home-icon{color:#68765f;display:flex}#aem-suite-page .aem-home-icon svg{height:23px;width:23px}#aem-suite-page .aem-home-arrow{margin-left:auto;font-size:21px;color:#68765f}
#aem-suite-page .aem-home a:focus-visible{outline:3px solid #91a584;outline-offset:4px}
@media(max-width:760px){#aem-suite-page .aem-home{padding:12px 0 24px}#aem-suite-page .aem-home-hero{padding:12px 0 26px}#aem-suite-page .aem-home-eyebrow{font-size:10px;letter-spacing:.7px;margin-bottom:28px}#aem-suite-page .aem-home-hero h1{font-size:clamp(34px,6.5vw,50px);letter-spacing:-1.5px;line-height:1.12}#aem-suite-page .aem-home-links{grid-template-columns:repeat(2,1fr);gap:10px}#aem-suite-page .aem-home-links>a{padding:18px 12px;gap:10px}#aem-suite-page .aem-home-links strong{font-size:16px}#aem-suite-page .aem-home-links small{font-size:11px;line-height:1.5}#aem-suite-page .aem-home-stats{gap:20px 0;grid-template-columns:repeat(2,1fr);padding:22px 0}#aem-suite-page .aem-home-stats>div{padding:0 16px}#aem-suite-page .aem-home-stats>div:nth-child(odd){padding-left:0}#aem-suite-page .aem-home-stats>div:nth-child(even){border:0}#aem-suite-page .aem-home-stats strong{font-size:26px}#aem-suite-page .aem-home-arrow{display:none}}
/* Unified typography matching aemviz.com. */
body[data-aem-page],body[data-aem-page] :is(button,input,select,textarea,table,th,td,a,p,span,div,label,small,strong,b,h1,h2,h3,h4){font-family:Arial,Helvetica,sans-serif!important;font-synthesis:none;-webkit-font-smoothing:antialiased}
body[data-aem-page]{font-weight:400;line-height:1.5}
body[data-aem-page] :is(h1,h2,h3,h4){font-weight:500!important}
body[data-aem-page] :is(button,input,select,textarea,td,p,label){font-weight:400}
body[data-aem-page] :is(strong,b,th){font-weight:600!important}
body[data-aem-page] #aem-global-header nav a{font-weight:400!important}
body[data-aem-page] #aem-global-header nav a[aria-current=page]{font-weight:600!important}
body[data-aem-page] .aem-home-hero h1{font-weight:400!important}
body[data-aem-page] #aem-notification-bell{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;min-width:44px;min-height:44px;color:#26342c!important}
body[data-aem-page] #aem-notification-bell:hover{background:transparent!important}
body[data-aem-page] .aem-global-demo{display:none!important}
body[data-aem-page=messages] .presence-state{display:block;font-size:11px!important;font-weight:400;color:#7d877b;line-height:1.5;white-space:nowrap}
body[data-aem-page=messages] .presence-state:before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:#a3aaa1;margin-right:5px}
body[data-aem-page=messages] .presence-state[data-state=online]{color:#387a47}
body[data-aem-page=messages] .presence-state[data-state=online]:before{background:#45a65b}
body[data-aem-page=messages] .member-row{display:grid;grid-template-columns:32px 1fr;gap:3px 9px;padding:10px 0}
body[data-aem-page=messages] .member-row .avatar{grid-row:span 2}
body[data-aem-page=messages] .member-row .presence-state{grid-column:2}
body[data-aem-page=messages] .member-row button{text-align:left;white-space:normal}
body[data-aem-page=messages] .sidebar-topics{border-top:1px solid #d4d9d0;border-bottom:1px solid #d4d9d0;padding:16px 0;margin:16px 0}
body[data-aem-page=messages] .sidebar-topics header{display:flex;justify-content:space-between;align-items:center}
body[data-aem-page=messages] .sidebar-topics h4{margin:0;font-size:14px}
body[data-aem-page=messages] .sidebar-topics>button{display:block;width:100%;text-align:left;padding:10px 12px;margin-top:5px;border:0;border-radius:6px}
body[data-aem-page=messages] .sidebar-topics>button[aria-current=true]{background:#26342c;color:white}
@media(min-width:1101px){body[data-aem-page=messages] #detail-panel{width:280px;min-width:280px;position:static;overflow:auto}body[data-aem-page=messages] .channels{width:260px;min-width:220px}body[data-aem-page=messages] .conversation{min-width:0}}

[data-aem-page="payroll"] #nav button{display:flex;align-items:center;gap:12px;min-height:46px;font-size:14px;}
.payroll-nav-icon{width:22px;height:22px;flex:0 0 22px;display:block;}
[data-aem-page="timeoff"] .filters{align-items:flex-end;gap:12px;}[data-aem-page="timeoff"] .filters>label{display:flex;flex-direction:column;gap:8px;margin:0;}[data-aem-page="timeoff"] .filters input,[data-aem-page="timeoff"] .filters select{height:42px;box-sizing:border-box;margin:0;}

/* Work sidebar fills the viewport without clipping longer menus. */


/* Reveal message tools only for the hovered or keyboard-focused message. */
@media(hover:hover) and (pointer:fine){body[data-aem-page=messages] #feed .message :is(.message-react,.message-more,.message-actions){opacity:0!important;pointer-events:none;transition:opacity .12s ease;}body[data-aem-page=messages] #feed .message:is(:hover,:focus-within) :is(.message-react,.message-more,.message-actions){opacity:1!important;pointer-events:auto;}}

/* Consistent Work typography; remove inherited extra-bold table styles. */








[data-aem-page=timeoff] #nav button{display:flex;align-items:center;gap:12px;min-height:46px;font-size:14px;} .timeoff-nav-icon{width:22px;height:22px;flex:0 0 22px;display:block;}

.policy-description{white-space:normal;min-width:260px;max-width:600px;font-size:13px;line-height:1.6;}#form-preview{white-space:pre-line;line-height:1.6;}

/* Fit project overview to its available width. */

/* Work dark palette matches Messages: charcoal/sage surfaces with readable controls. */
body[data-aem-page=suite].aem-work-dark{color-scheme:dark;--aem-paper:#212624;--aem-white:#29312b;--aem-ink:#e1e8e2;--aem-muted:#9aa99e;--aem-line:#37413a;--aem-forest:#416b4d;--aem-accent:#8fbf83;--aem-soft:#303c33;background:#212624;color:#e1e8e2}
body[data-aem-page=suite].aem-work-dark #aem-global-header{background:#303e32;color:#e1e8e2;border-color:#37413a}
body[data-aem-page=suite].aem-work-dark #aem-global-header a{color:#d4dfd6}
body[data-aem-page=suite].aem-work-dark #aem-global-header nav a[aria-current=page]{background:#49604b;color:white}
body[data-aem-page=suite].aem-work-dark #aem-notification-bell{color:#e1e8e2!important}














/* Names stay within the sticky staff column, including long Vietnamese names. */












/* KPI surfaces must follow the Work theme, including summary and report panes. */



/* One Workspace theme shared by every route. */
#aem-theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;flex:0 0 40px;padding:9px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--aem-ink);cursor:pointer}
#aem-theme-toggle:hover{background:var(--aem-soft)}
#aem-theme-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#aem-global-header .aem-global-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}
body #ap-theme,body #theme-toggle{display:none!important}
html[data-aem-theme=dark]{color-scheme:dark!important;--aem-sage:#303e32;--aem-paper:#212624;--aem-white:#29312b;--aem-ink:#e1e8e2;--aem-muted:#aab8ae;--aem-line:#46534a;--aem-forest:#416b4d;--aem-accent:#a5d298;--aem-soft:#303c33;--suite-card:var(--aem-white)!important}
html[data-aem-theme=dark] body[data-aem-page]{color-scheme:dark!important;background:var(--aem-paper)!important;color:var(--aem-ink)!important;--bg:var(--aem-paper);--card:var(--aem-white);--ink:var(--aem-ink);--muted:var(--aem-muted);--line:var(--aem-line);--soft:var(--aem-soft)}
html[data-aem-theme=dark] #aem-global-header{background:var(--aem-sage)!important;border-color:var(--aem-line)!important;color:var(--aem-ink)!important}
html[data-aem-theme=dark] #aem-global-header :is(nav a,.aem-global-logo){color:var(--aem-ink)!important}
html[data-aem-theme=dark] body[data-aem-page] :is(input,select,textarea,button,.button){color:var(--aem-ink);background-color:var(--aem-white);border-color:var(--aem-line)}
html[data-aem-theme=dark] body[data-aem-page] :is(input,textarea)::placeholder{color:var(--aem-muted);opacity:1}
html[data-aem-theme=dark] body[data-aem-page] :is(dialog,.popover,.card,.surface,.metric,.suite-card,.suite-metric,.suite-staff-card,.table-wrap,.account-content section,.checkin-page section,.check-stats article,.hrm-detail,.hrm-doc,.hrm-facts>div,.pay-workspace,.pay-filter,.pay-pagination,.pay-recent){background-color:var(--aem-white)!important;color:var(--aem-ink)!important;border-color:var(--aem-line)!important}
html[data-aem-theme=dark] body[data-aem-page] :is(th,td){background-color:var(--aem-white)!important;color:var(--aem-ink)!important;border-color:var(--aem-line)!important}
html[data-aem-theme=dark] body[data-aem-page] :is(thead th,.notice,.policy-note,.pill,.outside,.formula,.slip-total,.steps,.account-nav button.selected){background-color:var(--aem-soft)!important;color:var(--aem-ink)!important;border-color:var(--aem-line)!important}
html[data-aem-theme=dark] body[data-aem-page] :is(.account-nav,aside.sidebar,.layout>aside,.shell>aside){background:#191e1b!important;color:var(--aem-ink)!important;border-color:var(--aem-line)!important}
html[data-aem-theme=dark] body[data-aem-page] :is(.checkin-page,.check-heading p,.check-row>span,.check-stats span,.weekday,.day-times,.check-note,.account-content,.hrm-sub,.help,.muted,small){color:var(--aem-muted)}
html[data-aem-theme=dark] body[data-aem-page] :is(h1,h2,h3,h4,label,summary){color:var(--aem-ink)}
html[data-aem-theme=dark] .checkin-page a{color:#a5d298}
html[data-aem-theme=dark] .checkin-page :is(.is-today,#punches button.recorded){background:#304c39!important;color:#d3efd9!important;border-color:#658c6d!important}
html[data-aem-theme=dark] .checkin-page .has-issue{background:#493e25!important;border-color:#a58a4e!important;color:#f5dfab!important}
html[data-aem-theme=dark] #punches button:disabled{background:#303833;color:#b4c0b6}
/* Work's metric builders and reports share surface tokens, including inline styles. */



@media(max-width:760px){#aem-global-header .aem-global-actions{gap:0}#aem-theme-toggle{width:36px;height:40px;flex-basis:36px;padding:8px}}


html body #aem-create-demo #ap-theme,html body[data-aem-page=messages] #theme-toggle{display:none!important}
/* Override legacy light-only tokens once at the Work root. */

html[data-aem-theme=dark] body[data-aem-page]>aside{background:#191e1b!important;color:var(--aem-ink)!important;border-color:var(--aem-line)!important}
html[data-aem-theme=dark] body[data-aem-page] :is(.to-request,.to-list-head,.to-filter-rail,.to-search,.secondary,.badge,.steps .current,.account-avatar){background-color:var(--aem-white)!important;color:var(--aem-ink)!important;border-color:var(--aem-line)!important}
html[data-aem-theme=dark] body[data-aem-page] :is(.to-filter-rail button.active,.to-filter-rail button[aria-pressed=true],.to-categories button.active,.to-tabs button.active){background:var(--aem-soft)!important;color:var(--aem-ink)!important}
html[data-aem-theme=dark] body[data-aem-page] :is(.account-facts dt,.profile-facts dt,.account-content dt,.to-request small,.to-page-header p,.to-filter-rail h3,.to-categories h3,.to-pagination,.product,.top,.check-heading p){color:var(--aem-muted)!important}
html[data-aem-theme=dark] body[data-aem-page] :is(.to-tabs button,.to-title,.to-creator,.to-dates,.to-row-status,.account-content dd){color:var(--aem-ink)!important}
html[data-aem-theme=dark] body[data-aem-page=timeoff] .calendar,html[data-aem-theme=dark] body[data-aem-page=timeoff] .calendar>div{background:var(--aem-white)!important;color:var(--aem-ink)!important;border-color:var(--aem-line)!important}
html[data-aem-theme=dark] body[data-aem-page=timeoff] .calendar .day-title{background:var(--aem-soft)!important;color:var(--aem-muted)!important}
html[data-aem-theme=dark] body :is(#aem-notification-bell,#aem-notification-panel,#aem-notification-panel button){background:var(--aem-white)!important;color:var(--aem-ink)!important;border-color:var(--aem-line)!important}
html[data-aem-theme=dark] body #aem-notification-panel :is(a,small,.notification-hint){color:var(--aem-muted)!important}
html[data-aem-theme=dark] body #aem-notification-panel .unread{background:var(--aem-soft)!important}
html[data-aem-theme=dark] body[data-aem-page] .hrm-warning{background:#493e25!important;color:#f5dfab!important;border-color:#a58a4e!important}

html[data-aem-theme=dark] #aem-suite-page .aem-home-links>a{background:var(--aem-white)!important;color:var(--aem-ink)!important;border-color:var(--aem-line)!important}
html[data-aem-theme=dark] #aem-suite-page .aem-home-hero h1{color:var(--aem-ink)!important}
html[data-aem-theme=dark] #aem-suite-page .aem-home-hero h1 span{color:#a5c59a!important}
html[data-aem-theme=dark] #aem-suite-page :is(.aem-home-intro p,.aem-home-stats span,.aem-home-links small,.aem-home-links svg){color:var(--aem-muted)!important}
html[data-aem-theme=dark] #aem-suite-page .aem-home-links strong{color:var(--aem-ink)!important}
/* KPI team selectors retain readable contrast in both workspace themes. */



/* Nút ✦ Trợ lý AEM trên thanh đầu trang (mọi trang). */
#aem-global-header #aem-assistant-button{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;flex:0 0 40px;padding:9px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--aem-ink);cursor:pointer}
#aem-global-header #aem-assistant-button:hover{background:var(--aem-soft)}
#aem-global-header #aem-assistant-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:760px){#aem-global-header #aem-assistant-button{width:36px;flex-basis:36px;padding:8px}}

/* Điện thoại: màn hình cố định, không kéo ngang trang và không chạm đúp để phóng to. */
html.aem-touch-locked,html.aem-touch-locked body{overflow-x:hidden;overscroll-behavior-x:none;touch-action:pan-x pan-y;-webkit-text-size-adjust:100%;text-size-adjust:100%}
html.aem-touch-locked :is(button,a,input,select,textarea,label){touch-action:manipulation}
