/* Compact Work surfaces above the AEM suite navigation. */
#aem-overview.aem-shell #aem-task-modal{z-index:1320!important;padding:20px!important;align-items:center}
#aem-overview.aem-shell #aem-task-modal>#ao-sidebar{width:min(1100px,calc(100vw - 40px))!important;max-height:calc(100dvh - 40px)!important;overflow:hidden!important;display:block;border-radius:10px}
#aem-overview.aem-shell .aem-standard-drawer{z-index:1280!important}
#aem-overview #aem-detail-shade{z-index:1270!important}
#aem-overview #aem-date-popover,#aem-overview #aem-assignment-popover{z-index:1610!important}
#aem-overview #ao-sidebar>.aem-drawer-tools{position:relative!important;top:auto!important;padding:10px 14px!important;min-height:52px;gap:12px;border-bottom:1px solid var(--ao-line);background:var(--ao-card);z-index:5;display:flex!important;justify-content:space-between}
#aem-overview #ao-sidebar>.aem-drawer-tools>span{display:block!important;min-width:0;white-space:normal!important;flex:1;max-width:none}
#aem-overview #ao-sidebar>.aem-drawer-tools>span strong{display:block;font-size:16px!important;font-weight:800;line-height:1.35}
#aem-overview #ao-sidebar>.aem-drawer-tools>span small{display:block;font-size:10px!important;margin-top:3px;white-space:normal}
#aem-overview .aem-task-layout{display:grid;grid-template-columns:minmax(0,1fr) 265px;gap:0;align-items:start;min-height:0}
#aem-overview .aem-task-primary,#aem-overview .aem-task-secondary{min-width:0;max-height:calc(100dvh - 120px);overflow:auto;padding:12px}
#aem-overview .aem-task-secondary{background:var(--ao-bg);border-left:1px solid var(--ao-line);padding:12px}
#aem-overview .aem-task-secondary .aem-task-overview{padding:10px 0;border:0}
#aem-overview .aem-task-secondary .aem-task-facts{padding:9px;background:var(--ao-card)}
#aem-overview .aem-task-secondary .aem-task-facts dl{grid-template-columns:1fr;gap:6px}
#aem-overview .aem-task-secondary .aem-task-facts dl>div{justify-content:space-between;font-size:10px}
#aem-overview .aem-task-secondary .aem-follow-summary{border:0!important;padding:0!important;font-size:11px}
#aem-overview .aem-task-secondary .aem-detail-follower{background:var(--ao-card);font-size:10px}
#aem-overview .aem-task-secondary .aem-task-history>div{max-height:40vh}
#aem-overview .aem-task-history p{font-size:11px!important;line-height:1.5!important}
#aem-overview .aem-task-context{border:1px solid var(--ao-line);background:var(--ao-soft);padding:9px;border-radius:7px;margin-bottom:10px}
#aem-overview .aem-task-context>div{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:11px}
#aem-overview .aem-task-context>div+div{margin-top:8px;display:grid;grid-template-columns:1fr 1fr}
#aem-overview .aem-task-context label{font-size:10px;display:flex;align-items:center;gap:6px;min-width:0}
#aem-overview .aem-task-context :is(select,button){font-size:11px!important;padding:4px 6px!important;max-width:100%;min-height:29px}
#aem-overview #ao-sidebar .aem-task-quick-flags{padding:0 0 9px;border:0;display:flex;align-items:center;flex-wrap:wrap;gap:6px}
#aem-overview #ao-sidebar .aem-task-quick-flags .ao-issuechoices{display:flex;gap:4px;flex-wrap:wrap;margin:0}
#aem-overview #ao-sidebar .aem-task-quick-flags .ao-issuechoice{font-size:10px!important;padding:5px 6px!important}
#aem-overview #ao-sidebar .aem-extension-shortcut{margin:0}
#aem-overview #ao-sidebar .aem-extension-shortcut>button{padding:4px 6px;font-size:10px}
#aem-overview #ao-sidebar .aem-collaboration{padding:0 0 10px;border:0}
#aem-overview #ao-sidebar .aem-extension-panel{padding:7px 9px;background:var(--ao-bg);border:1px solid var(--ao-line);border-radius:6px}
#aem-overview #ao-sidebar .aem-extension-panel p{margin:5px 0;font-size:11px}
#aem-overview #ao-sidebar .ao-detail{padding:0!important;background:transparent!important;border:0!important;max-width:100%;white-space:normal}
#aem-overview #ao-sidebar .ao-detailgrid{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
#aem-overview #ao-sidebar .ao-detailgrid>section,#aem-overview #ao-sidebar .ao-detail>.ao-taskissue{padding:10px;border:1px solid var(--ao-line);border-radius:7px;background:var(--ao-card);margin:0 0 10px}
#aem-overview #ao-sidebar h3{font-size:12px!important;margin:0 0 7px;font-weight:800}
#aem-overview #ao-sidebar .ao-detail label{font-size:11px;gap:5px}
#aem-overview #ao-sidebar .ao-detail textarea{min-height:55px!important;padding:7px;font-size:12px;max-height:220px}
#aem-overview #ao-sidebar .ao-detail input:not([type=checkbox]):not([type=range]){min-height:30px;padding:5px 7px;font-size:11px}
#aem-overview .aem-progress-compact{display:flex;align-items:center;gap:12px;padding:6px 9px;margin-bottom:10px;border:1px solid var(--ao-line);border-radius:6px;background:var(--ao-bg)}
#aem-overview #ao-sidebar .aem-progress-compact label{display:flex!important;align-items:center;flex-direction:row!important;gap:7px;margin:0;font-size:10px;white-space:nowrap}
#aem-overview #ao-sidebar .aem-progress-compact label:last-child:has([type=range]){flex:1;min-width:100px}
#aem-overview #ao-sidebar .aem-progress-compact input[type=range]{width:100%;min-height:18px;margin:0;padding:0;max-width:230px}
#aem-overview .aem-dod-checklist>div{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-bottom:7px}
#aem-overview #ao-sidebar .aem-dod-checklist label{display:flex;align-items:center;gap:6px;padding:6px;background:var(--ao-bg);border-radius:5px;cursor:pointer}
#aem-overview .aem-dod-checklist input{width:14px!important;min-height:14px!important;margin:0}
#aem-overview .aem-dod-checklist small{font-size:9px}
#aem-overview .aem-result-uploader{border:1px dashed var(--ao-line);border-radius:7px;padding:9px;margin-top:9px;cursor:text}
#aem-overview .aem-result-uploader:focus{outline:2px solid var(--ao-green)}
#aem-overview .aem-result-uploader p{font-size:10px;margin:0 0 7px;color:var(--ao-muted)}
#aem-overview .aem-result-uploader input{width:100%;font-size:10px!important}
#aem-overview .aem-result-message{display:block;font-size:11px;color:light-dark(#ac303d,#ffacb6)}
#aem-overview .aem-result-images figure{margin:10px 0 0;border:1px solid var(--ao-line);border-radius:6px;overflow:hidden}
#aem-overview .aem-result-images img{display:block;width:100%;max-height:380px;object-fit:contain;background:var(--ao-bg)}
#aem-overview .aem-result-images figcaption{padding:5px 7px;font-size:10px;display:flex;align-items:center;justify-content:space-between;gap:10px}
#aem-overview .aem-result-images button{font-size:10px;padding:3px 6px}
#aem-overview #ao-sidebar .aem-task-comments{margin-top:10px;padding-top:10px}
#aem-overview #ao-sidebar .aem-task-comments form{display:flex;align-items:flex-end;gap:6px;margin:7px 0}
#aem-overview #ao-sidebar .aem-task-comments form label{flex:1;margin:0;min-width:0}
#aem-overview #ao-sidebar .aem-task-comments textarea{min-height:33px!important;height:33px;max-height:100px;resize:vertical}
#aem-overview #ao-sidebar .aem-task-comments form button{font-size:11px;padding:6px 10px;min-height:33px}
#aem-overview .aem-comment-list{max-height:190px;overflow:auto}
#aem-overview .aem-comment-list article{padding:7px 0!important}
#aem-overview .aem-comment-list p{font-size:11px!important;margin:4px 0!important}
#aem-overview.aem-shell .ao-notegrid.aem-standard-drawer{display:block!important;width:min(920px,calc(100vw - 40px))!important;max-height:calc(100dvh - 60px)!important;height:max-content!important;min-height:0!important;padding:12px!important}
#aem-overview .ao-notegrid>.aem-drawer-tools{margin-bottom:10px;align-items:flex-start}
#aem-overview .ao-notegrid>.aem-drawer-tools>span{display:block;flex:1;font-size:14px;line-height:1.4;min-width:0}
#aem-overview .ao-notegrid>.aem-drawer-tools small{display:block;font-size:10px;font-weight:400}
#aem-overview .aem-note-layout{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:14px}
#aem-overview .aem-note-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px;align-content:start}
#aem-overview .aem-note-fields label{font-size:11px;display:grid;gap:4px}
#aem-overview .aem-note-fields textarea{min-height:75px;height:75px;font-size:12px;max-height:200px}
#aem-overview .aem-note-secondary{background:var(--ao-bg);padding:10px;border-radius:7px;min-width:0}
#aem-overview .aem-note-secondary>.aem-follow-summary{padding:0 0 8px}
#aem-overview .aem-note-secondary>small{font-size:9px;display:block;margin-bottom:10px}
#aem-overview .aem-note-secondary .aem-task-history>div{max-height:300px;overflow:auto}
#aem-overview .aem-project-links{display:flex;gap:6px;flex-wrap:wrap;margin:7px 0}
#aem-overview .aem-project-links a{display:inline-flex;font-size:11px;padding:5px 8px;border-radius:5px;border:1px solid var(--ao-line);background:var(--ao-soft);text-decoration:none;color:var(--ao-green)}
#aem-overview #aem-project-structure.aem-standard-drawer{width:min(620px,calc(100vw - 40px))!important}
#aem-overview #aem-project-structure form{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:15px}
#aem-overview #aem-project-structure label{display:grid;gap:5px;font-size:12px}
#aem-overview #aem-project-structure input,#aem-overview #aem-project-structure select{width:100%;font-size:12px}
#aem-overview #aem-project-structure form>small,#aem-overview #aem-project-structure form>p{grid-column:1/-1}
#aem-overview #aem-project-structure .aem-checkline{display:flex;align-items:center;gap:6px}
#aem-overview #aem-project-structure .aem-checkline input{width:auto}
#aem-overview #aem-project-structure .aem-structure-message{color:light-dark(#b5273b,#ffacb6)}
#aem-overview #ao-sidebar.aem-drawer-minimized .aem-task-layout,#aem-overview .ao-notegrid.aem-drawer-minimized .aem-note-layout{display:none!important}
@media(max-width:850px){#aem-overview .aem-task-layout{grid-template-columns:minmax(0,1fr) 220px}#aem-overview .aem-note-layout{grid-template-columns:minmax(0,1fr) 210px}}
@media(max-width:650px){#aem-overview .aem-task-layout,#aem-overview .aem-note-layout{grid-template-columns:1fr}#aem-overview .aem-task-secondary{max-height:280px}#aem-overview .aem-task-primary{max-height:65dvh}#aem-overview .aem-note-fields{grid-template-columns:1fr}}

#aem-overview.aem-shell :is(#aem-follow-panel,#aem-avatar-editor,#aem-project-structure).aem-standard-drawer{z-index:1360!important}
#aem-overview.aem-shell .ao-notegrid.aem-standard-drawer.aem-drawer-minimized{height:60px!important;max-height:60px!important;overflow:hidden!important}
#aem-overview.aem-shell #aem-task-modal>#ao-sidebar{display:flex!important;flex-direction:column;height:min(780px,calc(100dvh - 40px))!important}
#aem-overview #ao-sidebar>.aem-drawer-tools{flex:0 0 auto}
#aem-overview #ao-sidebar>.aem-task-layout{flex:1;min-height:0;overflow:hidden;align-items:stretch}
#aem-overview .aem-task-primary,#aem-overview .aem-task-secondary{max-height:none;height:100%;min-height:0}
/* Inline task controls and five compact DOD selectors. */
#aem-overview #ao-sidebar .aem-task-context>div+div{display:flex!important;flex-wrap:wrap;gap:8px 14px;align-items:center}
#aem-overview #ao-sidebar .aem-task-context label{display:flex!important;flex-direction:row!important;align-items:center;gap:6px;font-weight:700;margin:0}
#aem-overview #ao-sidebar .aem-task-context>div+div>span{display:inline-flex;align-items:center;gap:5px;font-weight:700}
#aem-overview #ao-sidebar .aem-task-kpi{font-size:12px;color:var(--ao-green);white-space:nowrap}
#aem-overview #ao-sidebar .aem-dod-checklist>div{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
#aem-overview #ao-sidebar .aem-dod-checklist label{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:5px;margin:0;padding:0;background:transparent;font-weight:800}
#aem-overview #ao-sidebar .aem-dod-checklist select{width:100%;min-width:0;padding:5px;font-size:10px;min-height:32px;color:var(--ao-ink);background:var(--ao-card)}
#aem-overview #ao-sidebar [data-dod]:disabled{opacity:1;color:var(--ao-ink);cursor:default}
#aem-overview #ao-sidebar .aem-inline-issue{flex:1 0 100%;padding:8px 10px;border:1px solid var(--ao-line);border-radius:6px;background:var(--ao-bg)}
#aem-overview #ao-sidebar .aem-inline-issue summary{cursor:pointer;font-size:11px;font-weight:800;color:var(--ao-ink)}
#aem-overview #ao-sidebar .aem-inline-issue label{display:grid;gap:6px;margin-top:8px;font-size:11px;font-weight:700}
#aem-overview #ao-sidebar .aem-inline-issue textarea{min-height:65px;font-size:12px;resize:vertical;max-height:180px}
/* Notes live outside table clipping / stacking contexts. */
#aem-overview.aem-shell>.ao-notegrid.aem-standard-drawer{z-index:1280!important;isolation:isolate;background:var(--ao-card)!important;color:var(--ao-ink)!important;opacity:1!important;overflow:auto!important}
#aem-overview.aem-shell>.ao-notegrid>.aem-drawer-tools{position:relative!important;inset:auto!important;display:flex!important;justify-content:space-between;gap:12px;padding:0 0 10px!important;background:var(--ao-card);color:var(--ao-ink)!important;border-bottom:1px solid var(--ao-line)}
#aem-overview.aem-shell>.ao-notegrid>.aem-drawer-tools>span strong{display:block;font-size:16px;font-weight:800}
#aem-overview.aem-shell>.ao-notegrid .aem-note-fields label{color:var(--ao-ink)!important;font-weight:800}
#aem-overview.aem-shell>.ao-notegrid textarea{color:var(--ao-ink)!important;background:var(--ao-card)!important;font-weight:600;opacity:1!important}
@media(max-width:850px){#aem-overview #ao-sidebar .aem-dod-checklist>div{grid-template-columns:repeat(3,minmax(0,1fr))}}

#aem-overview #ao-sidebar .aem-task-context{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap}
#aem-overview #ao-sidebar .aem-task-context>div+div{margin-top:0;flex:1 1 500px}
#aem-overview.aem-shell>.ao-notegrid>.aem-drawer-tools{margin:0 0 10px!important}
/* Keep every detail surface above its scrim, even with later legacy styles. */
#aem-overview.aem-shell .aem-standard-drawer.aem-standard-drawer{z-index:1280!important;opacity:1!important;filter:none!important;backdrop-filter:none!important}
#aem-overview.aem-shell :is(#aem-follow-panel,#aem-avatar-editor,#aem-project-structure).aem-standard-drawer{z-index:1360!important}
#aem-overview.aem-shell #aem-detail-shade{z-index:1270!important;background:#0004!important}
#aem-overview.aem-shell .aem-standard-drawer.aem-standard-drawer>.aem-drawer-tools,
#aem-overview.aem-shell #ao-sidebar.aem-task-surface>.aem-drawer-tools{background:light-dark(#d7e8ff,#233e60)!important;color:var(--ao-ink)!important;border-bottom:1px solid light-dark(#91afd7,#5278aa)!important}
#aem-overview .aem-title-meta{display:flex;gap:10px;align-items:center;font-size:11px;margin-top:6px}
#aem-overview .aem-title-meta .ao-stage{font-size:11px}
#aem-overview #ao-sidebar .aem-task-context .aem-task-control-row{display:flex;align-items:center;gap:8px 12px;flex:1;flex-wrap:wrap;width:100%}
#aem-overview #ao-sidebar .aem-context-kpi{margin-left:auto!important;display:flex!important;flex-direction:column!important;align-items:flex-end!important;gap:2px!important}
#aem-overview #ao-sidebar .aem-context-kpi strong{font-size:18px}
#aem-overview #ao-sidebar .aem-task-assignee .aem-person-control{display:flex;align-items:center;gap:4px}
#aem-overview #ao-sidebar .aem-task-assignee select[hidden]{display:none!important}
#aem-overview #ao-sidebar .aem-task-context select[data-status]{font-weight:800}
#aem-overview #ao-sidebar .aem-task-context option[data-status-tone=todo]{color:light-dark(#596575,#b8c0cf)}
#aem-overview #ao-sidebar .aem-task-context option[data-status-tone=doing]{color:light-dark(#1466ae,#83bdff)}
#aem-overview #ao-sidebar .aem-task-context option[data-status-tone=waiting]{color:light-dark(#946600,#ffd66e)}
#aem-overview #ao-sidebar .aem-task-context option[data-status-tone=risk],#aem-overview #ao-sidebar .aem-task-context option[data-status-tone=stop]{color:light-dark(#b52e43,#ff9bab)}
#aem-overview #ao-sidebar .aem-task-context option[data-status-tone=done]{color:light-dark(#08764c,#84e4b8)}
#aem-overview .aem-role-control{max-width:100%;font-weight:700;font-size:11px;padding:4px;background:var(--ao-card);color:var(--ao-ink)}
#aem-overview #ao-sidebar .aem-inline-issue summary{display:inline;line-height:1.7}
#aem-overview #ao-sidebar .aem-issue-content{font-size:12px;font-weight:800;white-space:pre-wrap;overflow-wrap:anywhere;margin-left:6px}
#aem-overview .aem-issue-content[data-issue-tone="Bình thường"]{color:var(--ao-green)}
#aem-overview .aem-issue-content[data-issue-tone="Vướng mắc"]{color:light-dark(#8b6000,#ffd36f)}
#aem-overview .aem-issue-content[data-issue-tone="Rủi ro"]{color:light-dark(#b65100,#ffb56d)}
#aem-overview .aem-issue-content[data-issue-tone="Sự cố"]{color:light-dark(#b52743,#ff9baa)}
#aem-overview #ao-sidebar .aem-inline-issue[open]>.aem-issue-content{display:none}
#aem-overview #ao-sidebar .aem-inline-issue:not([open])>label{display:none!important}
#aem-overview #ao-sidebar .aem-dod-criterion{min-width:0}
#aem-overview #ao-sidebar .aem-dod-note{font-size:10px;margin-top:5px}
#aem-overview #ao-sidebar .aem-dod-note summary{cursor:pointer;font-weight:700;color:var(--ao-green)}
#aem-overview #ao-sidebar .aem-dod-note textarea{font-size:11px;min-height:65px;width:100%;margin-top:5px}
#aem-overview #ao-sidebar .aem-dod-checklist select:disabled{opacity:1;color:var(--ao-ink);background:var(--ao-bg)}
#aem-overview #ao-sidebar .aem-extension-inputs{grid-template-columns:minmax(180px,1.6fr) minmax(70px,.65fr) minmax(70px,.65fr)!important}
#aem-overview .aem-approved-step{color:var(--ao-green);font-weight:800}
#aem-overview.aem-shell :is(.ao-table tr,.at-projectcard,.at-personcard,.aem-task-facts,.aem-task-comments article,.aem-extension-pending,.aem-model-block){transition:background-color .12s,box-shadow .12s}
#aem-overview.aem-shell .ao-table tbody tr:hover>td{background:light-dark(#e3f1ff,#263e56)!important;box-shadow:inset 0 1px light-dark(#97c1ec,#4b7298),inset 0 -1px light-dark(#97c1ec,#4b7298)}
#aem-overview.aem-shell :is(.at-projectcard,.at-personcard,.aem-task-facts,.aem-task-comments article,.aem-extension-pending,.aem-model-block):hover{box-shadow:0 0 0 2px light-dark(#88b7e7,#5c86b3)!important;background-color:light-dark(#eef7ff,#233b53)!important}
#aem-overview #ao-sidebar>.aem-drawer-tools .aem-title-meta strong{display:inline!important;font-size:11px!important;line-height:inherit}
/* Compact pickers and task facts. */
#aem-overview.aem-shell #aem-follow-panel.aem-follower-picker.aem-standard-drawer{inset:auto!important;left:var(--follow-left,40px)!important;top:var(--follow-top,100px)!important;width:min(360px,calc(100vw - 24px))!important;height:auto!important;max-height:min(460px,calc(100dvh - 24px))!important;padding:12px!important;border-radius:9px!important;overflow:hidden!important;display:flex!important;flex-direction:column;gap:8px}
#aem-overview #aem-follow-panel.aem-follower-picker>.aem-drawer-tools{margin:-12px -12px 0!important;padding:8px 12px!important;position:static;flex:0 0 auto}
#aem-overview #aem-follow-panel.aem-follower-picker .aem-follow-search{width:100%;min-height:34px;font-size:12px}
#aem-overview #aem-follow-panel.aem-follower-picker .aem-follow-list{margin:0;display:block;overflow:auto;max-height:300px;min-height:0}
#aem-overview #aem-follow-panel.aem-follower-picker .aem-follow-list label{display:flex;align-items:center;gap:9px;border-radius:5px;padding:9px 7px;background:transparent;cursor:pointer}
#aem-overview #aem-follow-panel.aem-follower-picker .aem-follow-list label:hover{background:var(--ao-bg)}
#aem-overview #aem-follow-panel.aem-follower-picker .aem-follow-list label>span:last-child{display:flex;flex-direction:column;gap:3px;font-size:12px}
#aem-overview #aem-follow-panel.aem-follower-picker .aem-follow-list small{font-size:10px;color:var(--ao-muted)}
#aem-overview #aem-follow-panel.aem-follower-picker footer{display:flex;justify-content:flex-end;gap:8px;margin:0;padding-top:8px;border-top:1px solid var(--ao-line)}
#aem-overview.aem-shell .ao-notelink{display:inline-flex!important;align-items:center;justify-content:center;width:27px;height:27px;padding:3px!important;font-size:16px!important;border:1px solid var(--ao-line)!important;border-radius:6px;color:light-dark(#9b6900,#ffd76b)!important;background:light-dark(#fff5d9,#423923)!important}
#aem-overview.aem-shell select.aem-role-control{appearance:none!important;background-image:none!important;padding-right:5px!important}
#aem-overview.aem-shell .aem-assign-trigger i{display:none!important}
#aem-overview #ao-sidebar .aem-task-context .aem-task-control-row{gap:6px 10px!important;flex-wrap:wrap!important}
#aem-overview #ao-sidebar .aem-task-context{padding:8px 10px!important}
#aem-overview #ao-sidebar .aem-context-kpi{flex:0 0 auto;flex-direction:row!important;align-items:center!important;gap:4px!important;white-space:nowrap}
#aem-overview #ao-sidebar .aem-context-kpi strong{font-size:13px!important}
#aem-overview #ao-sidebar .aem-dod-note summary{list-style:none;display:flex;align-items:baseline;gap:6px}
#aem-overview #ao-sidebar .aem-dod-note summary::-webkit-details-marker{display:none}
#aem-overview #ao-sidebar .aem-dod-note-preview{color:light-dark(#995d00,#ffd172)!important;font-size:11px;font-weight:800;overflow-wrap:anywhere;white-space:pre-wrap;min-width:0}
#aem-overview #ao-sidebar .aem-dod-note[open] .aem-dod-note-preview{display:none}
#aem-overview.aem-shell #ao-sidebar .aem-inline-issue summary .aem-issue-content[data-issue-tone="Bình thường"]{color:light-dark(#14704b,#8eddb7)!important}
#aem-overview.aem-shell #ao-sidebar .aem-inline-issue summary .aem-issue-content[data-issue-tone="Vướng mắc"]{color:light-dark(#8e6200,#ffd56f)!important}
#aem-overview.aem-shell #ao-sidebar .aem-inline-issue summary .aem-issue-content[data-issue-tone="Rủi ro"]{color:light-dark(#b14b00,#ffb56b)!important}
#aem-overview.aem-shell #ao-sidebar .aem-inline-issue summary .aem-issue-content[data-issue-tone="Sự cố"]{color:light-dark(#bd2143,#ff9bad)!important}
#aem-overview .aem-time-24{width:90px;max-width:100%;font-variant-numeric:tabular-nums}
#aem-overview .aem-datetime-24{display:flex;gap:6px;align-items:center;min-width:0;width:100%}
#aem-overview .aem-datetime-24>input[type=date]{min-width:0;flex:1}
#aem-overview .aem-datetime-24>input[type=text]{min-width:65px!important;max-width:85px!important;flex:0 0 85px;font-variant-numeric:tabular-nums}
#aem-overview.aem-shell .ao-health.waiting{display:none!important}
#aem-overview.aem-shell select[data-mainstatus][data-status-tone=waiting]{background:light-dark(#fff8e4,#4b3c20)!important;color:light-dark(#8c5a00,#ffd579)!important;border-color:light-dark(#ecdcab,#927139)!important}
#aem-overview.aem-shell button[data-timer][data-action=start]{background:light-dark(#e0eeff,#254665)!important;color:light-dark(#185b9e,#9fd2ff)!important;border:1px solid light-dark(#9bbde0,#527da5)!important}
#aem-overview.aem-shell button[data-timer][data-action=pause]{background:light-dark(#fff0c5,#4b3e22)!important;color:light-dark(#8c6000,#ffdb7f)!important;border:1px solid light-dark(#d9b965,#92763d)!important}
#aem-overview.aem-shell button[data-timer][data-action=complete]{background:light-dark(#d9f1e4,#234c3b)!important;color:light-dark(#176944,#a0e9c6)!important;border:1px solid light-dark(#91c4a8,#4c8469)!important}
#aem-overview.aem-shell #aem-follow-panel.aem-follower-picker.aem-standard-drawer[hidden]{display:none!important}
/* Neutral note icon and shared hour picker. */
#aem-overview.aem-shell button.ao-notelink{color:var(--ao-ink)!important;background:transparent!important;border-color:transparent!important}
#aem-overview.aem-shell button.ao-notelink:hover{border-color:var(--ao-line)!important;background:var(--ao-bg)!important}
#aem-overview .aem-task-labels{display:flex;gap:6px;margin-left:auto;flex-wrap:wrap}
#aem-overview .aem-task-labels select{font-size:10px;padding:5px;min-width:120px;max-width:180px;border-radius:5px}
#aem-overview .aem-hour-control{display:inline-flex;align-items:center;min-width:0;gap:2px}
#aem-overview .aem-hour-control input{min-width:60px!important;width:66px!important;max-width:90px!important}
#aem-overview .aem-hour-control .aem-hour-trigger{padding:5px!important;min-width:24px;display:inline-flex;align-items:center;border:0;background:transparent;color:var(--ao-green)}
#aem-overview .aem-datetime-24>.aem-hour-control{flex:0 0 auto}
#aem-overview #aem-hour-picker{position:fixed;z-index:1650;width:240px;padding:12px;background:var(--ao-card);color:var(--ao-ink);border:1px solid var(--ao-line);border-radius:9px;box-shadow:0 12px 35px #0004}
#aem-overview #aem-hour-picker header,#aem-overview #aem-hour-picker footer{display:flex;align-items:center;justify-content:space-between;gap:8px}
#aem-overview #aem-hour-picker>div{display:flex;align-items:end;gap:12px;margin:12px 0}
#aem-overview #aem-hour-picker label{flex:1;display:grid;gap:5px;font-size:11px}
#aem-overview #aem-hour-picker select{width:100%;font-size:17px;padding:6px}
#aem-overview #aem-hour-picker footer{justify-content:flex-end}
#aem-overview #ao-sidebar .aem-dod-checklist>div{grid-template-columns:repeat(auto-fit,minmax(125px,1fr))!important}
#aem-overview #aem-settings-panel{max-width:1250px;margin:0 auto;padding:10px 0 40px;color:var(--ao-ink)}
#aem-overview .aem-settings-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:15px}
#aem-overview .aem-settings-heading h2{margin:0;font-size:23px}
#aem-overview .aem-settings-heading p,#aem-overview .aem-settings-heading>span{font-size:12px;color:var(--ao-muted)}
#aem-overview .aem-settings-tabs{display:flex;gap:7px;padding-bottom:12px;border-bottom:1px solid var(--ao-line)}
#aem-overview .aem-settings-tabs [aria-pressed=true]{background:var(--ui-blue-bg);color:var(--ui-blue-ink);border-color:var(--ao-green)}
#aem-overview #aem-settings-message{font-size:12px;font-weight:700;min-height:18px;color:var(--ao-green)}
#aem-overview #aem-settings-panel fieldset{border:0;padding:0;margin:0;min-width:0}
#aem-overview .aem-settings-card{background:var(--ao-card);border:1px solid var(--ao-line);border-radius:9px;padding:16px;margin-bottom:14px}
#aem-overview .aem-settings-card>header{display:flex;justify-content:space-between;align-items:center;gap:12px}
#aem-overview .aem-settings-card h3{font-size:15px;margin:0 0 8px}
#aem-overview .aem-settings-card p,#aem-overview .aem-settings-card small{font-size:11px;line-height:1.6}
#aem-overview .aem-criterion-editor{border:1px solid var(--ao-line);background:var(--ao-bg);padding:12px;border-radius:7px;margin:10px 0}
#aem-overview .aem-criterion-editor header{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
#aem-overview .aem-criterion-editor header>input{font-weight:800;font-size:13px;flex:1;min-width:150px}
#aem-overview .aem-criterion-editor header>label{font-size:11px;display:flex;align-items:center;gap:4px}
#aem-overview .aem-config-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:8px;margin-bottom:10px}
#aem-overview .aem-config-options>div{display:flex;gap:5px;align-items:center;min-width:0}
#aem-overview .aem-config-options input{width:100%;min-width:0;flex:1}
#aem-overview .aem-config-options select{width:105px;flex:0 0 105px}
#aem-overview #aem-settings-panel :is(input,select,button){font-size:11px;padding:6px 8px}
#aem-overview #aem-settings-panel input[type=checkbox]{width:14px;height:14px}
#aem-overview .aem-config-aggregation{display:flex;align-items:center;gap:10px;font-size:12px;margin:14px 0 7px}
#aem-overview .aem-config-labels{display:grid;grid-template-columns:1fr 1fr;gap:15px}
#aem-overview .aem-config-labels label{display:grid;gap:7px;font-size:12px}
#aem-overview .aem-settings-table{overflow:auto}
#aem-overview .aem-settings-table table{width:100%;border-collapse:collapse}
#aem-overview .aem-settings-table :is(th,td){padding:10px;border-bottom:1px solid var(--ao-line);font-size:12px;text-align:center}
#aem-overview .aem-settings-table th:first-child{text-align:left}
#aem-overview .aem-user-roles{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px}
#aem-overview .aem-user-roles label{display:flex;align-items:center;gap:7px;font-size:12px}
#aem-overview .aem-user-roles label>span:not(.aem-avatar){flex:1}
#aem-overview button:disabled{cursor:not-allowed}
/* Inactive issue choices stay neutral; selected choices keep their semantic tone. */
#aem-overview.aem-shell button.ao-issuechoice[aria-pressed=false]{background:var(--ao-card)!important;color:var(--ao-ink)!important;border-color:var(--ao-line)!important;outline:none!important;box-shadow:none!important}
#aem-overview.aem-shell button.ao-issuechoice[aria-pressed=true]{background:var(--issue-bg)!important;border-color:var(--issue-border)!important;color:var(--ao-ink)!important}
#aem-overview.aem-shell #ao-dashboard>section[data-zero-count=true],
#aem-overview.aem-shell .aem-issue-cards>button[data-zero-count=true]{background:var(--ao-card)!important;border-color:light-dark(#d2d9e2,#465364)!important;color:light-dark(#748092,#a7b4c5)!important;box-shadow:none!important}
#aem-overview.aem-shell :is(#ao-dashboard>section,.aem-issue-cards>button)[data-zero-count=true] :is(strong,small,span){color:inherit!important}
#aem-overview .aem-search-control{position:relative;display:inline-flex;align-items:center;min-width:0;flex:1 1 220px;max-width:100%}
#aem-overview .aem-search-control>input{width:100%;min-width:0!important;flex:1;padding-right:30px!important}
#aem-overview.aem-shell .aem-search-control>.aem-search-clear{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:24px;height:24px;min-height:0;padding:0!important;font-size:19px;line-height:1;border:0;background:transparent;color:var(--ao-muted);display:grid;place-items:center;z-index:1}
#aem-overview.aem-shell .aem-search-control>.aem-search-clear[hidden]{display:none!important}
#aem-overview .aem-search-control>.aem-search-clear:hover{background:var(--ao-bg);color:var(--ao-ink)}
#aem-overview .aem-search-control>input[type=search]::-webkit-search-cancel-button{display:none}
#aem-overview #aem-follow-panel .aem-search-control,#aem-overview #aem-assignment-popover .aem-search-control{flex:0 0 auto;width:100%}

/* Keep task identity on one header row, with stage and PL beside it. */
#aem-overview.aem-shell #ao-sidebar>.aem-drawer-tools>span{display:grid!important;grid-template-columns:minmax(180px,1fr) auto;align-items:start;gap:8px 20px}
#aem-overview.aem-shell #ao-sidebar>.aem-drawer-tools .aem-title-copy{display:block;min-width:0}
#aem-overview.aem-shell #ao-sidebar>.aem-drawer-tools .aem-title-meta{margin:0!important;align-items:center;flex-wrap:wrap;justify-content:flex-end;padding-top:2px}
#aem-overview.aem-shell #ao-sidebar .aem-inline-issue[hidden],
#aem-overview.aem-shell .aem-config-criterion-body[hidden]{display:none!important}
#aem-overview .aem-criterion-editor header{margin-bottom:0}
#aem-overview .aem-config-criterion-body{margin-top:10px}
#aem-overview .aem-criterion-editor [data-config-collapse]{min-width:28px;font-size:15px;font-weight:800}
#aem-overview.aem-shell #ao-sidebar .aem-model-time{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap;padding:8px 10px;margin:6px 0;border:1px solid var(--ao-line);border-radius:6px;background:var(--ao-card)}
#aem-overview.aem-shell #ao-sidebar .aem-model-time h3{margin:0;font-size:11px}
#aem-overview.aem-shell .aem-task-labels select[data-label-tone=approved]{--label-ink:light-dark(#11643f,#90e3b8);--label-bg:light-dark(#e5f5eb,#183b2c)}
#aem-overview.aem-shell .aem-task-labels select[data-label-tone=excellent]{--label-ink:light-dark(#945400,#ffda83);--label-bg:light-dark(#fff1cb,#423318)}
#aem-overview.aem-shell .aem-task-labels select[data-label-tone=sketch]{--label-ink:light-dark(#6632a2,#d7b9ff);--label-bg:light-dark(#f0e7fb,#352248)}
#aem-overview.aem-shell .aem-task-labels select[data-label-tone=support]{--label-ink:light-dark(#185f9d,#a7d5ff);--label-bg:light-dark(#e5f1ff,#203b55)}
#aem-overview.aem-shell .aem-task-labels select[data-label-tone]:not([data-label-tone=none]){color:var(--label-ink)!important;background:var(--label-bg)!important;border-color:var(--label-ink)!important;font-weight:750!important}
#aem-overview.aem-shell .aem-task-labels select option{color:var(--ao-ink);background:var(--ao-card)}
#aem-overview #ao-rows{overflow-anchor:none}
@media(max-width:750px){#aem-overview.aem-shell #ao-sidebar>.aem-drawer-tools>span{grid-template-columns:minmax(0,1fr)}#aem-overview.aem-shell #ao-sidebar>.aem-drawer-tools .aem-title-meta{justify-content:flex-start}}

#aem-overview.aem-shell #aem-project-structure [data-clone-deadline][hidden]{display:none!important}
#aem-overview #aem-project-structure form[data-clone-kind]>footer{grid-column:1/-1;display:flex;gap:8px;justify-content:flex-end}
#aem-overview .aem-clone-task-action{font-size:10px;padding:3px 6px;margin-left:5px}
/* MODEL: clock/actions on the left, timing metadata on the right. */
#aem-overview.aem-shell #ao-sidebar .aem-model-time{align-items:flex-start}
#aem-overview.aem-shell #ao-sidebar .aem-model-time>h3{flex:0 0 145px;padding-top:8px}
#aem-overview.aem-shell .ao-timer.aem-timer-layout{flex:1;min-width:0;display:grid;grid-template-columns:minmax(210px,1fr) minmax(130px,auto);gap:8px 16px;text-align:left}
#aem-overview .aem-timer-main>strong{display:block;margin:0 0 4px}
#aem-overview .aem-timer-buttons{display:flex;align-items:flex-start;gap:5px;flex-wrap:wrap}
#aem-overview .aem-timer-meta{display:grid;align-content:start;gap:5px;padding-top:4px;text-align:right;font-size:11px}
#aem-overview .aem-timer-meta small{font-size:10px}
#aem-overview .aem-time-breakdown{grid-column:1/-1;border-top:1px solid var(--ao-line);padding-top:7px;font-size:11px}
#aem-overview .aem-time-breakdown>div{display:flex;gap:15px;flex-wrap:wrap;margin:8px 0}
#aem-overview .aem-time-breakdown b{font-variant-numeric:tabular-nums}
#aem-overview .aem-time-breakdown>small{display:block;line-height:1.5}
#aem-overview .aem-time-breakdown>div>span:nth-child(2),#aem-overview .aem-rework-number{color:light-dark(#a33728,#ffaf93)!important;font-weight:750}
#aem-overview .aem-timer-adjust>summary{list-style:none;cursor:pointer;border:1px solid var(--ao-line);border-radius:5px;padding:3px 8px;font-size:13px;line-height:1.3;background:var(--ao-card)}
#aem-overview .aem-timer-adjust>summary::-webkit-details-marker{display:none}
#aem-overview .aem-timer-adjust[open]{flex-basis:100%}
#aem-overview .aem-timer-adjust form{display:grid;gap:8px;margin-top:8px;border:1px solid var(--ao-line);border-radius:6px;padding:10px;background:var(--ao-bg)}
#aem-overview .aem-timer-adjust h4,#aem-overview .aem-timer-adjust p{margin:0;font-size:11px}
#aem-overview .aem-timer-adjust label{display:grid;grid-template-columns:minmax(65px,1fr) 48px auto 48px auto;align-items:center;gap:4px;font-size:10px}
#aem-overview .aem-timer-adjust input{width:48px;padding:4px!important}
#aem-overview .aem-timer-adjust .aem-time-reason{grid-template-columns:1fr}
#aem-overview .aem-timer-adjust textarea{min-height:52px;width:100%;font:inherit;color:var(--ao-ink);background:var(--ao-card);border:1px solid var(--ao-line);border-radius:5px;padding:6px}
#aem-overview [data-time-error]{font-size:11px;color:light-dark(#a12b37,#ffadb8)}
#aem-overview .aem-time-audit{margin-top:9px}
#aem-overview .aem-time-audit article{padding:8px 0;border-bottom:1px solid var(--ao-line)}
#aem-overview .aem-time-audit article small{display:block;font-size:10px}
#aem-overview .aem-time-audit article p{margin:3px 0;font-size:11px}
#aem-overview .aem-settings-group>summary{font-weight:800;font-size:14px;cursor:pointer;position:relative;min-height:30px}
#aem-overview .aem-settings-group>summary>[data-config-add]{float:right;margin-top:-4px}
#aem-overview .aem-settings-group[open]>summary{margin-bottom:14px}
#aem-overview #aem-model-time-report{margin-top:12px}
#aem-overview #aem-model-time-report th,#aem-overview #aem-model-time-report td{padding:8px;font-size:11px}
#aem-overview #aem-management-dod-editor.aem-standard-drawer{width:min(680px,calc(100vw - 40px))!important;z-index:1370!important}
#aem-overview #aem-management-dod-editor fieldset,#aem-overview .aem-management-config fieldset{border:0;margin:0;padding:0;min-width:0}
#aem-overview #aem-management-dod-editor form section{padding:10px;border:1px solid var(--ao-line);border-radius:6px;margin:8px 0;background:var(--ao-card)}
#aem-overview #aem-management-dod-editor label{display:grid;grid-template-columns:minmax(160px,1fr) minmax(180px,1fr);align-items:center;gap:10px;font-size:12px;font-weight:700}
#aem-overview #aem-management-dod-editor textarea{width:100%;min-height:55px;padding:7px;margin-top:6px;color:var(--ao-ink);background:var(--ao-card);border:1px solid var(--ao-line);border-radius:5px;font:inherit}
#aem-overview .aem-management-history article{border-bottom:1px solid var(--ao-line);padding:10px 0;font-size:11px}
#aem-overview .aem-management-history small{display:block;margin-top:4px}
#aem-overview .aem-management-grade{font-weight:800}
#aem-overview .aem-management-grade[data-grade=Tốt]{color:light-dark(#166542,#91e6b3)!important}
#aem-overview .aem-management-grade[data-grade=Đạt]{color:light-dark(#225c9c,#9ac8ff)!important}
#aem-overview .aem-management-grade[data-grade="Không đạt"],#aem-overview .aem-management-error{color:light-dark(#b22a39,#ffaeb9)!important}
#aem-overview .aem-management-grade[data-grade=Waiting]{color:light-dark(#8b6300,#f7d278)!important}
#aem-overview #aem-management-dod-report>summary,#aem-overview .aem-management-config>summary{font-size:14px;font-weight:800;cursor:pointer}
#aem-overview #aem-management-dod-report nav{display:flex;gap:8px;margin:12px 0}
#aem-overview .aem-management-config[open]>summary{margin-bottom:14px}
#aem-overview.aem-shell #aem-work-success{position:fixed;right:24px;bottom:24px;z-index:1900;display:flex;align-items:center;gap:10px;max-width:min(480px,calc(100vw - 32px));padding:12px 15px;border:1px solid light-dark(#5b9c79,#62b68b);border-left-width:4px;border-radius:8px;box-shadow:0 6px 28px #0002;background:light-dark(#e8f6ed,#15382a);color:light-dark(#153c27,#d9ffe8);font-size:13px}
#aem-overview.aem-shell #aem-work-success[hidden]{display:none!important}
#aem-overview #aem-work-success button{padding:1px 7px;background:transparent;border:0;font-size:20px}
#aem-overview [data-settings-save-feedback]{display:inline-block;margin:8px 12px;color:light-dark(#19683d,#9ae1b6);font-size:12px;font-weight:750}
/* Distinct Preview stage, larger task controls and shared compact menus. */
#aem-overview.aem-shell.aem-shell{--stage-preview-bg:light-dark(#f7cfe3,#60354c)!important}
#aem-overview.aem-shell .ao-stage.preview{background:var(--stage-preview-bg)!important;color:light-dark(#7e2450,#ffdaed)!important;border-color:light-dark(#ce7ca3,#b77899)!important}
#aem-overview.aem-shell #ao-sidebar .aem-task-control-row.aem-task-control-row [data-status]{font-size:13px!important;min-height:36px;min-width:150px;padding:7px 10px!important;font-weight:800!important;border-width:2px}
#aem-overview.aem-shell #ao-sidebar .aem-task-control-row.aem-task-control-row [data-editdeadline]{font-size:13px!important;min-height:36px;padding:7px 10px!important;border-width:2px;font-weight:800!important}
#aem-overview.aem-shell #ao-sidebar .aem-task-control-row.aem-task-control-row [data-editdeadline] .ao-deadline-chip{font-size:13px!important;font-weight:800!important}
#aem-overview .aem-task-overflow{display:inline-block;position:relative;vertical-align:middle;margin:2px 4px}
#aem-overview .aem-task-overflow>summary{list-style:none;border:1px solid var(--ao-line);border-radius:5px;background:var(--ao-card);padding:2px 10px;cursor:pointer;font-size:19px;line-height:1.25}
#aem-overview .aem-task-overflow>summary::-webkit-details-marker{display:none}
#aem-overview .aem-task-overflow>div{position:fixed;z-index:1660;min-width:190px;padding:5px;background:var(--ao-card);color:var(--ao-ink);border:1px solid var(--ao-line);border-radius:7px;box-shadow:0 8px 25px #0003;text-align:left}
#aem-overview .aem-task-overflow button,#aem-overview .aem-task-overflow a{display:flex;align-items:center;gap:8px;border:0;background:transparent;color:var(--ao-ink);width:100%;padding:8px!important;text-align:left;text-decoration:none;font-size:12px}
#aem-overview .ao-menu button{display:flex;align-items:center;gap:7px}
#aem-overview [data-ui-delete]{color:light-dark(#aa2436,#ffacb6)!important}
#aem-overview #aem-admin-team-dod.aem-standard-drawer{width:min(600px,calc(100vw - 40px))!important;z-index:1360!important}
#aem-overview .aem-admin-team-group{border:1px solid var(--ao-line);border-radius:7px;padding:10px;margin:12px 0;background:var(--ao-card)}
#aem-overview .aem-admin-team-group>summary{font-weight:800;font-size:14px;cursor:pointer;color:light-dark(#285c87,#b2d8ff)}
#aem-overview .aem-admin-team-group>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:10px;font-size:12px}
#aem-overview .aem-admin-team-group>div>span:first-child{flex:1}
#aem-overview .aem-admin-team-group button{padding:4px 9px}
#aem-overview .aem-prepare-options{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:12px 0}
#aem-overview .aem-prepare-choice{display:flex!important;align-items:center;gap:7px;font-size:12px;padding:5px 0}
#aem-overview .aem-prepare-choice input{width:auto!important}
#aem-overview #ao-quick [data-prepare-form] label{display:grid;gap:6px;margin:8px 0}
#aem-overview #ao-quick [data-prepare-form] footer{display:flex;gap:8px;margin-top:12px}
#aem-overview #aem-delete-confirm{position:fixed;inset:0;z-index:1800;display:grid;place-items:center;background:#08131b80;padding:20px}
#aem-overview #aem-delete-confirm[hidden]{display:none!important}
#aem-overview #aem-delete-confirm>div{width:min(460px,100%);padding:22px;border:1px solid var(--ao-line);border-radius:12px;background:var(--ao-card);box-shadow:0 12px 50px #0004}
#aem-overview #aem-delete-confirm footer{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}
#aem-overview #aem-delete-confirm [data-delete-confirm]{color:light-dark(#a31c2c,#ffd5db);background:light-dark(#ffe6eb,#59202b);border-color:#c75b70}
#aem-overview #ao-sidebar [data-header-rename]{width:100%;font-size:16px;font-weight:800}
#aem-overview #aem-team-toolbar{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap;margin-bottom:14px}
#aem-overview #aem-team-toolbar #at-myviews{flex:0 0 auto;margin:0!important}
#aem-overview #aem-team-toolbar #at-smartfilters{flex:1 1 600px;width:auto!important;margin:0!important;padding:9px!important}
#aem-overview #aem-team-toolbar>.aem-search-control{flex:0 1 290px!important;width:290px!important;max-width:320px;min-width:180px}
#aem-overview #aem-team-toolbar #at-search{width:100%!important;min-width:0!important;font-size:12px}
#aem-overview .at-projectcard>.ac-heading{cursor:pointer}
/* View title, phase and PL read as one compact line. */
#aem-overview.aem-shell #ao-sidebar>.aem-drawer-tools>span{display:block!important}
#aem-overview.aem-shell #ao-sidebar .aem-title-copy{display:flex!important;align-items:center;flex-wrap:wrap;gap:5px 9px}
#aem-overview.aem-shell #ao-sidebar .aem-title-copy>strong{display:inline!important;flex:0 1 auto}
#aem-overview.aem-shell #ao-sidebar .aem-title-copy>small{flex-basis:100%;margin-top:0}
#aem-overview.aem-shell #ao-sidebar .aem-title-meta{display:inline-flex!important;align-items:center;justify-content:flex-start!important;gap:9px;margin:0!important}
#aem-overview.aem-shell #ao-sidebar .aem-title-meta i{font-style:normal;color:light-dark(#46576a,#b8cbe1)}
#aem-overview .aem-avatar-static{display:inline-flex;flex:none;align-items:center;cursor:default}
#aem-overview .aem-project-pm h4{margin:0;color:light-dark(#285c87,#b2d8ff)}
#aem-overview .aem-workload-help{font-size:12px;line-height:1.6}
#aem-overview .at-projectcard>.at-loadbadge{display:block;margin-top:9px}
/* One desktop filter layout for My Work, Allocation and Project Leader. */
#aem-overview #aem-team-toolbar{display:grid!important;grid-template-columns:minmax(300px,.9fr) minmax(420px,1.3fr);gap:12px 20px;padding:14px 16px;background:var(--ao-card);border:1px solid var(--ao-line);border-radius:12px}
#aem-overview #aem-team-toolbar strong{font-size:11px;font-weight:800;text-transform:uppercase;color:light-dark(#4d647e,#b6c9df)}
#aem-overview #aem-team-toolbar :is(.aem-filter-search,.aem-dispatch-filters)>div{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
#aem-overview #aem-team-toolbar .aem-filter-search .aem-search-control{flex:1 1 200px!important;min-width:150px;width:auto!important;max-width:none!important}
#aem-overview #aem-team-toolbar .aem-filter-kind{flex:1 1 170px}
#aem-overview #aem-team-toolbar select{max-width:100%;width:100%;min-width:0;min-height:34px;font-size:12px!important;background:var(--ao-card);color:var(--ao-text)}
#aem-overview #aem-team-toolbar .aem-dispatch-filters{border-left:1px solid var(--ao-line);padding-left:20px;min-width:0}
#aem-overview .aem-dispatch-filters label{flex:1 1 155px;min-width:0}
#aem-overview .aem-dispatch-filters label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#aem-overview #aem-team-toolbar #at-smartfilters{grid-column:1/-1;border:0!important;border-top:1px solid var(--ao-line)!important;padding:10px 0 0!important;border-radius:0!important;width:100%!important;min-width:0}
#aem-overview #as-active-chips{display:none!important}
#aem-overview #aem-team-load-summary{margin:12px 0!important;width:100%}
#aem-overview #aem-dispatch-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:10px 0 18px}
#aem-overview .aem-request-actions{display:flex;gap:8px;flex-wrap:wrap}
#aem-overview [data-load-request=more]{color:light-dark(#14613c,#b1f1cc);border-color:#4b9c74}
#aem-overview [data-load-request=rebalance]{color:light-dark(#8d4210,#ffd5ab);border-color:#c78d4e}
#aem-overview.aem-shell .aem-dispatch-drawer{width:min(680px,calc(100vw - 40px))!important;z-index:1390!important}
#aem-overview .aem-dispatch-drawer label{display:grid;gap:6px;margin:12px 0;font-size:12px;font-weight:700}
#aem-overview .aem-dispatch-drawer :is(select,textarea){width:100%;max-width:100%;min-width:0}
#aem-overview .aem-request-note{white-space:pre-wrap;overflow-wrap:anywhere}
#aem-overview .aem-request-badge{display:block;font-size:11px;font-weight:800;padding:6px;border-radius:5px;margin-bottom:8px;color:light-dark(#126541,#b9f9d8);background:light-dark(#e1f5e9,#153f2c)}
#aem-overview .aem-request-badge.rebalance{color:light-dark(#8f430b,#ffe0b9);background:light-dark(#fff0da,#51341a)}
#aem-overview .aem-routing-people{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;font-size:12px}
#aem-overview .aem-routing-people label{display:flex;gap:6px;align-items:center}
#aem-overview .aem-routing-people input{width:auto}
#aem-overview .pl-direct{cursor:pointer;text-decoration:underline;text-underline-offset:3px}
@media(max-width:1000px){#aem-overview #aem-team-toolbar{grid-template-columns:1fr}#aem-overview #aem-team-toolbar .aem-dispatch-filters{border-left:0;padding-left:0}}
/* Compact primary filters: status and period are visible; extras stay in the dropdown. */
#aem-overview #aem-team-toolbar>.aem-dispatch-filters{min-width:0}
#aem-overview #aem-team-toolbar .aem-primary-status,#aem-overview #aem-team-toolbar .aem-primary-period{display:grid;gap:5px;flex:1 1 150px}
#aem-overview #aem-team-toolbar :is(.aem-primary-status,.aem-primary-period)>span{position:static;width:auto;height:auto;clip-path:none;font-size:11px}
#aem-overview #aem-team-toolbar #at-smartfilters .as-filtergroup.aem-time-shortcuts{display:flex!important;align-items:center;gap:7px;flex-wrap:wrap}
#aem-overview #aem-team-toolbar #at-smartfilters #as-more{margin:0}
#aem-overview .aem-extra-filters>div{display:grid;gap:9px;margin-top:8px}
#aem-overview .aem-extra-filters label{display:grid;gap:4px}
#aem-overview .aem-extra-filters label>span{font-size:11px}
#aem-overview.aem-shell #aem-load-request.aem-dispatch-drawer{width:min(480px,calc(100vw - 32px))!important}
#aem-overview #aem-load-request .aem-request-periods{display:flex;gap:8px;flex-wrap:wrap;border:0;margin:12px 0;padding:0}
#aem-overview #aem-load-request .aem-request-periods legend{font-size:12px;font-weight:700;margin-bottom:8px}
#aem-overview #aem-load-request .aem-request-periods label{display:flex;align-items:center;gap:6px;margin:0;padding:10px 12px;border:1px solid var(--ao-line);border-radius:7px;background:var(--ao-card);cursor:pointer}
#aem-overview #aem-load-request .aem-request-periods label:has(input:checked){color:light-dark(#13583d,#d5ffe7);border-color:#438466;background:light-dark(#e0f1e7,#1e4435)}
#aem-overview #aem-load-request .aem-request-periods input{width:auto;margin:0;accent-color:#317d5e}
#aem-overview #aem-load-request .aem-request-watchers,#aem-overview #aem-load-request .aem-request-routing{margin:12px 0;border:1px solid var(--ao-line);padding:10px;border-radius:7px;font-size:12px}
#aem-overview .aem-request-watchers summary,#aem-overview .aem-request-routing summary{cursor:pointer;font-weight:700}
#aem-overview .aem-request-watcher-list{max-height:230px;overflow:auto;margin-top:8px}
#aem-overview #aem-load-request .aem-request-watcher-list label{display:flex;align-items:center;gap:8px;margin:0;padding:7px;border-radius:6px}
#aem-overview #aem-load-request .aem-request-watcher-list label:hover{background:var(--ao-soft)}
#aem-overview .aem-request-watcher-list input{width:auto}
#aem-overview .aem-watcher-search{width:100%;margin-top:8px}
#aem-overview #aem-settings-navigation{margin-top:14px!important;padding-top:5px;border-top:1px solid var(--ao-line)}
#aem-overview .pl-direct,#aem-overview .pl-direct *{text-decoration:none!important}
#aem-overview .aem-repeat-table-header{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
#aem-overview .aem-start-plan{min-width:30px;min-height:26px}
#aem-overview .aem-start-plan:empty{border-color:transparent;background:transparent}
#aem-overview .aem-start-plan:empty:hover{border-color:var(--ao-line);background:var(--ao-soft)}
#aem-overview #ak-members .aem-kpi-project-notes{display:flex;flex-wrap:wrap;gap:3px 6px;margin-top:6px;max-width:310px;min-width:150px}
#aem-overview #ak-members .aem-kpi-project-notes button{padding:1px 0;border:0;background:transparent;color:light-dark(#215d88,#a9d9ff);font-size:11px;line-height:1.5;font-weight:700;text-align:left}
#aem-overview #ak-members .aem-kpi-project-notes button:hover{color:light-dark(#133e64,#e0f1ff);background:var(--ao-soft)}
#aem-overview #aem-kpi-personnel-overview{margin:12px 0 18px}
#aem-overview #aem-kpi-personnel-overview>header{display:flex;gap:8px 18px;justify-content:space-between;flex-wrap:wrap;font-size:12px;margin-bottom:8px}
#aem-overview #aem-kpi-personnel-overview>header small{font-size:11px}
#aem-overview #aem-kpi-personnel-overview>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#aem-overview #aem-kpi-personnel-overview button{display:grid;gap:5px;text-align:left;padding:12px 14px;background:var(--ao-card);border:1px solid var(--ao-line);border-top:3px solid light-dark(#468875,#6fbda4);border-radius:8px;color:var(--ao-ink)}
#aem-overview #aem-kpi-personnel-overview button>strong{font-size:20px}
#aem-overview #aem-kpi-personnel-overview button>span{font-size:11px}
#aem-overview #aem-kpi-personnel-overview button.is-zero{border-top-color:#9ca7b2;color:light-dark(#626e7d,#a8b4c3)}
#aem-overview #aem-kpi-contribution.aem-dispatch-drawer{width:min(700px,calc(100vw - 32px))!important}
/* Shared colgroups keep all personnel groups aligned, even with repeated headers hidden. */
#aem-overview.aem-shell.aem-shell .ao-table table.aem-task-table{table-layout:fixed!important;width:100%!important}
#aem-overview.aem-shell.aem-shell .aem-task-table th{width:auto!important}
#aem-overview.aem-shell.aem-shell .aem-task-table td{min-width:0;vertical-align:middle;overflow-wrap:anywhere}
#aem-overview.aem-shell.aem-shell .aem-task-table td:nth-child(2){text-align:left!important}
#aem-overview.aem-shell.aem-shell .aem-task-table td:nth-child(2) .ao-stage{display:inline-block;margin-left:0!important}
#aem-overview.aem-shell.aem-shell .aem-task-table :is(select,input){max-width:100%!important;min-width:0!important}
#aem-overview.aem-shell.aem-shell .aem-task-table [data-teamdetail]{white-space:normal}
/* HSC uses a compact floating editor by its trigger, like the deadline picker. */
#aem-overview.aem-shell #ak-hsc-editor.aem-hsc-popover{position:fixed!important;right:auto!important;bottom:auto!important;width:min(340px,calc(100vw - 16px));max-width:340px!important;height:auto!important;max-height:calc(100vh - 16px)!important;overflow:auto!important;margin:0!important;padding:14px!important;background:var(--ao-card)!important;border:1px solid var(--ao-line);border-radius:10px;box-shadow:0 12px 35px #0003;z-index:1660!important}
#aem-overview #ak-hsc-editor.aem-hsc-popover header{margin:0 0 8px}
#aem-overview #ak-hsc-editor.aem-hsc-popover h3{font-size:13px}
#aem-overview #ak-hsc-editor.aem-hsc-popover .ao-tools{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0}
#aem-overview #ak-hsc-editor.aem-hsc-popover input{font-size:12px;height:34px!important;min-height:34px!important;padding:5px 7px}
#aem-overview #ak-hsc-editor.aem-hsc-popover footer{display:flex;gap:7px;justify-content:flex-end;margin-top:12px}
#aem-overview #ak-hsc-editor.aem-hsc-popover button{font-size:12px;min-height:30px;padding:4px 9px}
#aem-overview #ak-hsc-editor.aem-hsc-popover small{font-size:10px}
#aem-overview #ak-members [data-kpi-notes-cell]{width:25%;vertical-align:middle;white-space:normal}
#aem-overview #ak-members [data-kpi-notes-cell] .aem-kpi-project-notes{margin:0;max-width:none;min-width:0}
#aem-overview #ao-sidebar [data-goto-overview]{font-size:12px;white-space:nowrap;color:light-dark(#23527e,#c5e2ff)}
#aem-overview.aem-shell #ao-rows tr.aem-task-located>td{background:light-dark(#fff1b8,#4b421e)!important;box-shadow:inset 0 2px #d6a72c,inset 0 -2px #d6a72c}
/* One line of desktop filters, with quick periods beside the dropdowns. */
#aem-overview.aem-shell #aem-team-toolbar{display:flex!important;flex-wrap:wrap;gap:7px;padding:10px!important;align-items:center}
#aem-overview.aem-shell #aem-team-toolbar .aem-filter-search{flex:1 1 100%;min-width:0;padding:0!important;border:0!important}
#aem-overview.aem-shell #aem-team-toolbar .aem-filter-search>strong{display:none}
#aem-overview.aem-shell #aem-team-toolbar .aem-filter-search>div{display:flex!important;align-items:center;gap:7px;flex-wrap:wrap;grid-template-columns:none}
#aem-overview.aem-shell #aem-team-toolbar .aem-search-control{flex:1 1 200px;max-width:300px}
#aem-overview.aem-shell #aem-team-toolbar :is(.aem-filter-kind,.aem-primary-status){flex:0 1 170px;min-width:130px}
#aem-overview.aem-shell #aem-team-toolbar .aem-primary-status>span{display:none}
#aem-overview.aem-shell #aem-team-toolbar .aem-primary-status select{width:100%;margin:0}
#aem-overview.aem-shell #aem-team-toolbar .as-filtergroup.aem-time-shortcuts{display:flex;flex:0 1 auto;gap:5px;flex-wrap:wrap;margin:0!important;padding:0!important;border:0!important}
#aem-overview.aem-shell #aem-team-toolbar #at-smartfilters{flex:1 1 100%;margin:0!important;padding:0!important;border:0!important}
#aem-overview.aem-shell #aem-team-toolbar #as-range{margin:0;border:0;padding:0}
#aem-overview.aem-shell #aem-dispatch-actions{display:flex;align-items:center;gap:5px;margin:0 0 0 auto!important;padding:0;border:0}
#aem-overview.aem-shell #aem-dispatch-actions[hidden]{display:none!important}
#aem-overview.aem-shell #at-pl-team-picker #aem-dispatch-actions{display:inline-flex;float:right}
#aem-overview.aem-shell .aem-hsc-pencil{display:inline-flex!important;align-items:center;justify-content:center;min-width:26px!important;min-height:26px;padding:4px!important;margin-left:5px;vertical-align:middle}
#aem-overview.aem-shell #ak-members td:has([data-hsc-edit])>br{display:none}
#aem-overview.aem-shell #aem-kpi-personnel-overview [data-kpi-period-summary]{display:flex;flex-direction:column;text-align:left;gap:6px;border:1px solid var(--ao-line);border-top:3px solid #4b8c7b;border-radius:8px;padding:16px;background:var(--ao-card)}
#aem-overview.aem-shell #aem-kpi-personnel-overview [data-kpi-period-summary]>strong{font-size:23px;line-height:1.3}
#aem-overview.aem-shell .increase{color:light-dark(#14784f,#82e8b6)!important}
#aem-overview.aem-shell .decrease{color:light-dark(#ac3344,#ff9bae)!important}
#aem-overview.aem-shell .neutral{color:var(--ao-muted)}
#aem-overview.aem-shell .aem-export-bar{display:flex;justify-content:flex-end;margin:8px 0}
#aem-overview.aem-shell #aem-reports-panel{min-width:0}
#aem-overview.aem-shell .aem-report-filters{display:flex;align-items:flex-end;gap:9px;flex-wrap:wrap;margin:18px 0 10px;padding:12px;background:var(--ao-card);border:1px solid var(--ao-line);border-radius:8px}
#aem-overview.aem-shell .aem-report-filters label{display:flex;flex-direction:column;gap:4px;font-weight:700}
#aem-overview.aem-shell .aem-report-filters input{width:100px}
#aem-overview.aem-shell .aem-report-filters nav{display:flex;gap:5px;margin-left:auto}
#aem-overview.aem-shell .aem-report-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:12px 0}
#aem-overview.aem-shell .aem-report-cards>section{display:flex;flex-direction:column;gap:7px;padding:15px;background:var(--ao-card);border:1px solid var(--ao-line);border-top:3px solid #418b77;border-radius:8px}
#aem-overview.aem-shell .aem-report-cards>section>strong{font-size:26px}
#aem-overview.aem-shell .aem-report-section{padding:16px;background:var(--ao-card);border:1px solid var(--ao-line);border-radius:9px;margin:12px 0}
#aem-overview.aem-shell .aem-report-section h3{margin:0 0 12px}
#aem-overview.aem-shell .aem-report-charts{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:24px}
#aem-overview.aem-shell .aem-report-bar{display:grid;grid-template-columns:95px 1fr 65px;align-items:center;gap:9px;margin:10px 0}
#aem-overview.aem-shell .aem-report-bar>div{height:14px;background:var(--ao-soft);border-radius:3px;overflow:hidden}
#aem-overview.aem-shell .aem-report-bar i{display:block;height:100%;background:#238467;border-radius:3px}
#aem-overview.aem-shell .aem-report-bar.previous i{background:#739ac3}
#aem-overview.aem-shell .aem-report-bar strong{text-align:right}
#aem-overview.aem-shell .aem-report-method{font-size:12px;line-height:1.7;color:var(--ao-muted)}
#aem-overview.aem-shell .aem-model-off.am{width:43.75%}
#aem-overview.aem-shell .aem-model-off.pm{left:43.75%;width:56.25%}

#aem-overview.aem-shell .aem-model-day{background:linear-gradient(to right,transparent 43.5%,var(--ao-line) 43.75%,transparent 44%)}
/* Compact KPI summary and readable personnel names. */
#aem-overview.aem-shell #ak-summary{display:inline-flex!important;width:auto!important;max-width:100%;min-width:0;align-items:center;justify-content:flex-start!important;gap:22px;padding:10px 15px;margin:8px 0 12px;vertical-align:top}
#aem-overview.aem-shell #ak-summary h3{font-size:16px;margin:2px 0 0}
#aem-overview.aem-shell #ak-summary>strong{font-size:23px!important;white-space:nowrap}
#aem-overview.aem-shell #at-content .at-cardhead>strong{font-size:18px!important;line-height:1.35;font-weight:800!important}
#aem-overview.aem-shell #ak-members tbody td:first-child{font-size:14px!important;font-weight:800!important}
#aem-overview.aem-shell #ak-hsc-hours{display:block;background:var(--ao-soft);border:1px solid var(--ao-line);border-radius:6px;padding:9px;font-size:15px;font-weight:800;margin-bottom:8px}
#aem-overview.aem-shell #ak-hsc-hours:empty{display:none}
#aem-overview.aem-shell #aem-team-toolbar .aem-filter-search>div{flex-wrap:nowrap!important}
#aem-overview.aem-shell #aem-team-toolbar .as-filtergroup.aem-time-shortcuts{flex:0 0 auto;flex-wrap:nowrap!important}
#aem-overview.aem-shell #aem-team-toolbar .aem-search-control{flex:1 1 180px;max-width:none;min-width:130px}
#aem-overview.aem-shell #aem-team-toolbar :is(.aem-filter-kind,.aem-primary-status){flex:0 1 170px;min-width:110px}
#aem-overview.aem-shell [data-management-note-preview]{display:inline-block;max-width:calc(100% - 90px);overflow:hidden;text-overflow:ellipsis;vertical-align:bottom;white-space:nowrap;margin-left:10px;color:light-dark(#916300,#f5d36b);font-weight:750}
#aem-overview.aem-shell #aem-management-dod-statistics{margin:15px 0;padding:15px;border:1px solid var(--ao-line);border-radius:9px;background:var(--ao-card)}
#aem-overview.aem-shell .aem-management-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#aem-overview.aem-shell .aem-management-stat-grid h4{font-size:15px;margin:8px 0}
#aem-overview.aem-shell .aem-dod-counts{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0}
#aem-overview.aem-shell .aem-dod-counts>span{padding:4px 7px;border:1px solid var(--ao-line);border-radius:5px;color:var(--ao-muted)}
#aem-overview.aem-shell .aem-dod-counts [data-grade="Tốt"]:not(.is-zero){color:light-dark(#14784f,#82e8b6)}
#aem-overview.aem-shell .aem-dod-counts [data-grade="Đạt"]:not(.is-zero){color:light-dark(#2363a6,#9dc5ff)}
#aem-overview.aem-shell .aem-dod-counts [data-grade="Không đạt"]:not(.is-zero){color:light-dark(#ac3344,#ff9bae)}
#aem-overview.aem-shell .aem-dod-counts [data-grade="Waiting"]:not(.is-zero){color:light-dark(#916300,#f5d36b)}
#aem-overview.aem-shell .aem-appearance-settings>div{display:flex;gap:18px;flex-wrap:wrap}
#aem-overview.aem-shell .aem-appearance-settings label{display:flex;flex-direction:column;gap:7px;min-width:200px;font-weight:750}
#aem-overview.aem-shell #ao-theme{font-size:12px!important;width:auto!important;min-width:120px;display:inline-flex;gap:7px;align-items:center}
#aem-overview.aem-shell #ao-theme:before{font-size:17px}
@media(max-width:1100px){#aem-overview.aem-shell #aem-team-toolbar .aem-filter-search>div{flex-wrap:wrap!important}#aem-overview.aem-shell .aem-management-stat-grid{grid-template-columns:1fr}}
#aem-overview.aem-shell #ak-members table th:nth-child(1){width:14%!important}
#aem-overview.aem-shell #ak-members table th:nth-child(2),#aem-overview.aem-shell #ak-members table th:nth-child(3){width:5%!important}
#aem-overview.aem-shell #ak-members table th:nth-child(4){width:8%!important}
#aem-overview.aem-shell #ak-members table th:nth-child(5),#aem-overview.aem-shell #ak-members table th:nth-child(6){width:10%!important}
#aem-overview.aem-shell #ak-members table th:nth-child(7){width:7%!important}
#aem-overview.aem-shell #ak-members table th:nth-child(8){width:9%!important}
#aem-overview.aem-shell #ak-members table th[data-kpi-completed-heading]{width:8%!important}
#aem-overview.aem-shell #ak-members table th[data-kpi-notes-heading]{width:24%!important}
/* Four comparable KPI cards in a single desktop row. */
#aem-overview.aem-shell #aem-kpi-personnel-overview>div{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px}
#aem-overview.aem-shell #aem-kpi-personnel-overview #ak-summary{display:flex!important;flex-direction:column;align-items:flex-start;justify-content:flex-start!important;gap:8px;width:100%!important;max-width:none;margin:0!important;padding:16px!important;border:1px solid var(--ao-line);border-top:3px solid #5088ba;background:var(--ao-card);border-radius:8px}
#aem-overview.aem-shell #aem-kpi-personnel-overview #ak-summary h3{font-size:25px!important;margin:12px 0 0}
#aem-overview.aem-shell #aem-kpi-personnel-overview #ak-summary>strong{display:none}
/* Personal views use a new blue / magenta pair. */
#aem-overview.aem-shell #at-myviews [data-myview=mine]{color:light-dark(#164c82,#bddcff)!important;background:light-dark(#edf5ff,#162b42)!important;border-color:light-dark(#b5cde8,#3f6488)!important}
#aem-overview.aem-shell #at-myviews [data-myview=mine][aria-pressed=true]{background:light-dark(#d7eaff,#1d3b5b)!important;box-shadow:inset 0 -3px #3d80bd!important}
#aem-overview.aem-shell #at-myviews [data-myview=pl]{color:light-dark(#833d73,#f2bde5)!important;background:light-dark(#fbeef8,#382137)!important;border-color:light-dark(#dcb6d2,#89557d)!important}
#aem-overview.aem-shell #at-myviews [data-myview=pl][aria-pressed=true]{background:light-dark(#f2d7eb,#522c49)!important;box-shadow:inset 0 -3px #b2629c!important}
/* DOD dashboard: shared controls, short overview and one focused table. */
#aem-overview.aem-shell #ad-panel>h2{font-size:21px;margin:4px 0 12px}
#aem-overview.aem-shell #ad-panel>.ao-tools{display:flex;gap:8px;align-items:center;margin:8px 0}
#aem-overview.aem-shell #ad-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:12px 0}
#aem-overview.aem-shell #ad-summary>button{padding:11px 13px;border-radius:7px;min-height:80px}
#aem-overview.aem-shell #ad-summary>button strong{font-size:24px;margin-top:6px}
#aem-overview.aem-shell #ad-summary>.is-zero{background:var(--ao-card)!important;color:var(--ao-muted)!important;border-color:var(--ao-line)!important}
#aem-overview.aem-shell #aem-dod-views{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0 8px}
#aem-overview.aem-shell #aem-dod-views button{display:flex;align-items:center;gap:9px;padding:9px 12px;white-space:nowrap}
#aem-overview.aem-shell #aem-dod-views button b{padding:1px 5px;border-radius:4px;background:var(--ao-soft);font-size:11px}
#aem-overview.aem-shell #aem-dod-views button[aria-pressed=true]{border-color:#5686b6;background:light-dark(#e3effb,#1c334c);box-shadow:inset 0 -2px #5686b6}
#aem-overview.aem-shell .aem-dod-search{display:flex;align-items:center;gap:10px;margin:8px 0;font-size:12px}
#aem-overview.aem-shell .aem-dod-search input{width:280px;max-width:100%}
#aem-overview.aem-shell .aem-dod-table-pane{padding:16px;background:var(--ao-card);border:1px solid var(--ao-line);border-radius:9px;margin:10px 0}
#aem-overview.aem-shell .aem-dod-table-pane>h3{font-size:15px;margin:12px 0}
#aem-overview.aem-shell #aem-management-dod-statistics{padding:16px;margin:10px 0}
#aem-overview.aem-shell .aem-dod-role-focused .aem-management-stat-grid{grid-template-columns:1fr!important}
#aem-overview.aem-shell .aem-dod-role-focused .aem-management-stat-grid table th:first-child{width:24%!important}
#aem-overview.aem-shell .aem-dod-role-focused .aem-management-stat-grid table :is(th,td){padding:9px 10px;font-size:12px}
#aem-overview.aem-shell #aem-management-dod-report>nav{display:none}
#aem-overview.aem-shell .aem-dod-coverage-top{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#aem-overview.aem-shell .aem-dod-coverage-top>div{display:flex;flex-direction:column;gap:6px;padding:12px;border:1px solid var(--ao-line);border-radius:7px;background:var(--ao-bg)}
#aem-overview.aem-shell .aem-dod-coverage-top strong{font-size:24px;line-height:1.3}
#aem-overview.aem-shell .aem-dod-coverage-top span{font-size:12px}
#aem-overview.aem-shell .aem-dod-status-strip{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}
#aem-overview.aem-shell .aem-dod-status-strip>span{padding:5px 10px;border:1px solid var(--ao-line);border-radius:5px}
#aem-overview.aem-shell :is(.aem-dod-status-strip,.aem-dod-counts) [data-grade="Tốt"]:not(.is-zero){color:light-dark(#17754d,#8ee1bb)}
#aem-overview.aem-shell :is(.aem-dod-status-strip,.aem-dod-counts) [data-grade="Đạt"]:not(.is-zero){color:light-dark(#1e659f,#a5d0ff)}
#aem-overview.aem-shell :is(.aem-dod-status-strip,.aem-dod-counts) [data-grade="Không đạt"]:not(.is-zero){color:light-dark(#ad3446,#ff9bac)}
#aem-overview.aem-shell :is(.aem-dod-status-strip,.aem-dod-counts) [data-grade="Waiting"]:not(.is-zero){color:light-dark(#916500,#f1d16e)}
#aem-overview.aem-shell .aem-dod-method{font-size:12px;margin-top:12px}
#aem-overview.aem-shell #aem-hour-picker.aem-hour-scroll{width:184px!important;padding:9px!important}
#aem-overview.aem-shell #aem-hour-picker.aem-hour-scroll>div{gap:7px;margin:8px 0;align-items:center}
#aem-overview.aem-shell #aem-hour-picker.aem-hour-scroll header strong{font-size:12px}
#aem-overview.aem-shell #aem-hour-picker.aem-hour-scroll select{height:132px;overflow-y:auto;overscroll-behavior:contain;font-size:14px!important;padding:0!important;border-radius:5px}
#aem-overview.aem-shell #aem-hour-picker.aem-hour-scroll option{padding:4px 7px;min-height:25px}
#aem-overview.aem-shell #aem-hour-picker.aem-hour-scroll footer button{padding:5px 9px;font-size:12px}
/* Forecast shares the four headline metrics from the supplied reference. */
#aem-overview.aem-shell .af-stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px;margin:16px 0}
#aem-overview.aem-shell .af-stats>div{display:flex;flex-direction:column;gap:10px;padding:17px 15px;border:1px solid var(--ao-line);border-radius:8px;background:var(--ao-card);min-width:0}
#aem-overview.aem-shell .af-stats strong{font-size:27px;line-height:1.3}
#aem-overview.aem-shell .af-stats span{font-size:12px;line-height:1.7;color:var(--ao-muted)}
#aem-overview.aem-shell .af-stats .af-actual strong{color:light-dark(#158453,#4ad596)}
#aem-overview.aem-shell .af-stats .af-feasible strong{color:light-dark(#3665bb,#85a8ff)}
#aem-overview.aem-shell .af-stats .af-missing strong{color:light-dark(#bb3444,#ff8e9d)}
/* Operational metrics remain separate from personnel KPI. */
#aem-overview.aem-shell .aem-coo-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:12px 0 18px}
#aem-overview.aem-shell .aem-coo-metrics>button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:8px;padding:13px;border-top:3px solid #587eaa;border-radius:7px;background:var(--ao-card)}
#aem-overview.aem-shell .aem-coo-metrics>button strong{font-size:25px;line-height:1.3}
#aem-overview.aem-shell .aem-coo-metrics>button span{font-size:12px}
#aem-overview.aem-shell .aem-coo-metrics>button.is-zero{border-top-color:var(--ao-line);color:var(--ao-muted)}
#aem-overview.aem-shell .aem-coo-metrics [data-coo-metric=overdue]:not(.is-zero),#aem-overview.aem-shell .aem-coo-metrics [data-coo-metric=flagged]:not(.is-zero){border-top-color:#c17048}
#aem-overview.aem-shell .aem-coo-secondary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
#aem-overview.aem-shell .aem-coo-secondary h4{font-size:14px;margin:8px 0}
#aem-overview.aem-shell .aem-coo-method{margin-top:15px;border-top:1px solid var(--ao-line);padding-top:10px}
#aem-overview.aem-shell .aem-coo-method p{font-size:12px;line-height:1.7}
@media(max-width:1100px){#aem-overview.aem-shell :is(#aem-kpi-personnel-overview>div,.aem-coo-metrics,.af-stats){grid-template-columns:repeat(2,minmax(0,1fr))!important}#aem-overview.aem-shell .aem-coo-secondary{grid-template-columns:1fr}}
#aem-overview.aem-shell .af-stats>div.is-zero strong{color:var(--ao-muted)!important}
/* Compact top actions and distinct workload request actions. */
#aem-overview.aem-shell #ao-theme.aem-theme-icons{display:inline-flex!important;align-items:center;justify-content:center;width:38px!important;min-width:38px!important;height:36px;padding:7px!important;font-size:0!important}
#aem-overview.aem-shell #ao-theme.aem-theme-icons:before{display:none!important}
#aem-overview.aem-shell #ao-theme.aem-theme-icons [data-theme-sun]{color:light-dark(#9d6b04,#f5d16c)}
#aem-overview.aem-shell #ao-theme.aem-theme-icons [data-theme-moon]{color:light-dark(#4a5699,#b9c9ff)}
#aem-overview.aem-shell #aem-dispatch-actions [data-load-request=more]{border-color:light-dark(#78b8ba,#397b7d)!important;background:light-dark(#e5f5f3,#17383a)!important;color:light-dark(#155e61,#a4e1db)!important}
#aem-overview.aem-shell #aem-dispatch-actions [data-load-request=rebalance]{border-color:light-dark(#d9ac76,#906438)!important;background:light-dark(#fff3e1,#42301e)!important;color:light-dark(#87510b,#f3d4a2)!important}
#aem-overview.aem-shell #aem-dispatch-actions .aem-pending-request{border-color:light-dark(#bcaddb,#725c9e)!important;background:light-dark(#f1ecfa,#30243e)!important;color:light-dark(#684390,#d9bdf7)!important}
#aem-overview.aem-shell #ad-summary{grid-template-columns:repeat(4,minmax(0,1fr))}
#aem-overview.aem-shell #aem-report-focus{display:flex;gap:7px;margin:12px 0}
#aem-overview.aem-shell #aem-report-focus [aria-pressed=true]{background:light-dark(#deede9,#1a3932);border-color:#4d8e7e;box-shadow:inset 0 -2px #4d8e7e}
#aem-overview.aem-shell #aem-report-more,#aem-overview.aem-shell #aem-report-method-fold{margin:14px 0;border:1px solid var(--ao-line);border-radius:8px;background:var(--ao-card);padding:12px}
#aem-overview.aem-shell #aem-report-more>summary,#aem-overview.aem-shell #aem-report-method-fold>summary{cursor:pointer;font-weight:750}
#aem-overview.aem-shell #aem-personnel-comparison>header{margin-bottom:14px}
#aem-overview.aem-shell #aem-personnel-comparison input[type=search]{width:230px}
#aem-overview.aem-shell .aem-personnel-compare-team h4{margin:16px 0 8px;font-size:15px}
#aem-overview.aem-shell .aem-personnel-compare-team table th:first-child{width:28%!important}
#aem-overview.aem-shell .aem-personnel-compare-team table td{padding:10px!important}
#aem-overview.aem-shell #aem-quick-notes-button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:38px;height:36px;padding:7px}
#aem-overview.aem-shell #aem-quick-notes-button [data-note-count]{position:absolute;top:-5px;right:-5px;border-radius:10px;background:#75529b;color:#fff;font-size:9px;line-height:16px;min-width:16px;text-align:center}
#aem-overview.aem-shell #aem-quick-notes-popover{position:fixed;z-index:1670;padding:13px;overflow-y:auto;border:1px solid var(--ao-line);border-radius:10px;background:var(--note-bg,var(--ao-card));color:var(--ao-ink);box-shadow:0 14px 40px #0003}
#aem-overview.aem-shell [data-note-color=yellow]{--note-bg:light-dark(#fff6ce,#3e351f)}
#aem-overview.aem-shell [data-note-color=pink]{--note-bg:light-dark(#fbe7ef,#422732)}
#aem-overview.aem-shell [data-note-color=blue]{--note-bg:light-dark(#e6f1ff,#1d324b)}
#aem-overview.aem-shell [data-note-color=green]{--note-bg:light-dark(#e3f3e8,#203a2c)}
#aem-overview.aem-shell [data-note-color=neutral]{--note-bg:var(--ao-card)}
#aem-overview.aem-shell #aem-quick-notes-popover header{display:flex;justify-content:space-between;gap:8px;margin-bottom:10px}
#aem-overview.aem-shell #aem-quick-notes-popover header button{padding:2px 7px}
#aem-overview.aem-shell .aem-quick-note-toolbar{display:flex;gap:5px;margin-bottom:10px}
#aem-overview.aem-shell #aem-quick-notes-popover button{font-size:12px;padding:5px 8px}
#aem-overview.aem-shell #aem-quick-note-title{width:100%;font-size:15px;font-weight:750;background:transparent}
#aem-overview.aem-shell #aem-quick-note-body{width:100%;background:transparent;min-height:110px;max-height:260px}
#aem-overview.aem-shell .aem-note-colors{display:flex;gap:7px;padding:10px 0}
#aem-overview.aem-shell .aem-note-colors [data-note-color]{background:var(--note-bg);width:24px;height:24px;padding:0!important;line-height:20px;border:1px solid light-dark(#9aa6ae,#a1adbb)}
#aem-overview.aem-shell .aem-quick-todo-heading{display:block;font-size:12px;margin:12px 0 7px}
#aem-overview.aem-shell .aem-quick-todo-list>div{display:flex;gap:6px;align-items:center;margin:4px 0}
#aem-overview.aem-shell .aem-quick-todo-list label{display:flex;flex:1;gap:7px;align-items:flex-start;overflow-wrap:anywhere}
#aem-overview.aem-shell .aem-quick-todo-list input{width:auto;flex:0 0 auto;margin-top:5px;accent-color:#548773}
#aem-overview.aem-shell .aem-quick-todo-list .done{text-decoration:line-through;color:var(--ao-muted)}
#aem-overview.aem-shell .aem-quick-todo-add{display:flex;gap:5px;margin-top:9px}
#aem-overview.aem-shell .aem-quick-todo-add input{flex:1;min-width:0}
#aem-overview.aem-shell .aem-quick-note-editor footer{display:flex;justify-content:space-between;margin-top:12px}
#aem-overview.aem-shell .aem-quick-notes-list{display:flex;flex-direction:column;gap:8px}
#aem-overview.aem-shell .aem-quick-notes-list>button{display:flex;flex-direction:column;gap:5px;text-align:left;background:var(--note-bg);padding:10px!important}
#aem-overview.aem-shell .aem-quick-notes-list span{white-space:pre-wrap;font-size:12px;overflow-wrap:anywhere}
#aem-overview.aem-shell .aem-quick-note-help{display:block;margin-top:12px;font-size:10px}
#aem-overview.aem-shell #aem-quick-note-error{color:light-dark(#a43245,#ffacba);font-size:12px;margin:5px 0}
#aem-overview.aem-shell .aem-quick-note-confirm{display:flex;align-items:center;gap:8px;padding:9px 0;border-top:1px solid var(--ao-line);margin-top:10px}
@media(max-width:1100px){#aem-overview.aem-shell #ad-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Clear names and compact, unit-safe multi-period comparisons. */
#aem-overview #at-content .at-personhead,#aem-overview #at-content summary,#aem-overview .aem-week-table tbody td:first-child strong{font-size:17px!important;font-weight:750!important}
#aem-overview #aem-personnel-comparison tbody th{font-size:17px!important;font-weight:750!important;min-width:155px}
#aem-overview .aem-comparison-matrix{table-layout:auto!important;width:100%!important}
#aem-overview .aem-comparison-matrix th,#aem-overview .aem-comparison-matrix td{min-width:155px;vertical-align:top;padding:12px!important}
#aem-overview .aem-comparison-matrix td small{display:block;font-size:11px!important;line-height:1.5;white-space:normal}
#aem-overview .aem-comparison-matrix td b{font-size:17px}
#aem-overview .aem-comparison-matrix td button{display:block;width:100%;text-align:left;background:transparent;padding:5px;border:0;box-shadow:none}
#aem-overview .aem-comparison-matrix td button:hover{background:rgba(65,133,221,.13)}
#aem-overview .aem-comparison-matrix thead th{white-space:nowrap}
#aem-overview .aem-comparison-matrix tr>th:first-child{position:sticky;left:0;background:var(--ao-card,#fff);z-index:1}
#aem-overview.dark .aem-comparison-matrix tr>th:first-child{background:#141c27}

/* Forecast: target at the top right and square metrics, two above / two below. */
#aem-overview.aem-shell #af-all-teams .af-card>header{display:grid!important;grid-template-columns:minmax(0,1fr) 106px;gap:12px!important;align-items:start!important;min-height:0!important;padding-bottom:10px}
#aem-overview.aem-shell #af-all-teams .af-card>header>div{width:auto!important;min-width:0}
#aem-overview.aem-shell #af-all-teams .af-card>header h2{font-size:18px!important;line-height:1.4}
#aem-overview.aem-shell #af-all-teams .af-card>header label{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;width:106px!important;gap:5px!important;font-size:11px!important;margin:0!important}
#aem-overview.aem-shell #af-all-teams .af-card>header input{width:106px!important;max-width:100%;min-height:38px;font-size:15px!important;font-weight:750}
#aem-overview.aem-shell #af-all-teams .af-stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;margin:14px 0!important;align-items:stretch}
#aem-overview.aem-shell #af-all-teams .af-stats>div{aspect-ratio:1/1;display:flex!important;flex-direction:column!important;justify-content:space-between;gap:8px!important;padding:14px!important;min-width:0;min-height:170px}
#aem-overview.aem-shell #af-all-teams .af-stats small{font-size:12px!important;line-height:1.5;overflow-wrap:normal}
#aem-overview.aem-shell #af-all-teams .af-stats strong{font-size:28px!important;line-height:1.2!important;margin:0!important}
#aem-overview.aem-shell #af-all-teams .af-stats span{font-size:11px!important;line-height:1.5!important}
#aem-overview.aem-shell #af-all-teams .af-no-target .af-stats strong{font-size:19px!important}
/* Beginning and deadline have equal visual weight in both task layouts. */
#aem-overview.aem-shell .aem-task-context .aem-start-plan,
#aem-overview.aem-shell .aem-task-context [data-editdeadline]{font-size:14px!important;font-weight:750!important;line-height:1.4!important;min-height:40px!important;padding:8px 10px!important;border:1px solid var(--ao-line)!important;background:var(--ao-card)!important;white-space:nowrap}
#aem-overview.aem-shell .aem-task-context [data-editdeadline] *{font-size:14px!important;font-weight:750!important;line-height:1.4!important}
#aem-overview.aem-shell .aem-task-context .aem-start-plan:empty{border-color:transparent!important;background:transparent!important}
