/* iCommand v26.6.9 — Header date, user alignment and profile presentation */
:root{
  --sapx-v2669-control:46px;
  --sapx-v2669-profile:252px;
}

/* Stable right-side sequence: notifications, refresh, date/time, user. */
body.sapx-v266.authGranted.sapx-v2669 .appHeader{
  overflow:visible!important;
}
body.sapx-v266.authGranted.sapx-v2669 .headerActions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex-wrap:nowrap!important;
  gap:10px!important;
  height:72px!important;
  overflow:visible!important;
}
body.sapx-v266.authGranted.sapx-v2669 .sapx-shell-controls{
  order:1!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  height:100%!important;
  flex:0 0 auto!important;
}
body.sapx-v266.authGranted.sapx-v2669 .sapx-shell-controls>button,
body.sapx-v266.authGranted.sapx-v2669 .sapx-language{
  width:var(--sapx-v2669-control)!important;
  min-width:var(--sapx-v2669-control)!important;
  height:var(--sapx-v2669-control)!important;
  border-radius:12px!important;
}
body.sapx-v266.authGranted.sapx-v2669 .sapx-language{
  width:64px!important;
  min-width:64px!important;
}
body.sapx-v266.authGranted.sapx-v2669 .sapx-notification{order:10!important}
body.sapx-v266.authGranted.sapx-v2669 .sapx-refresh-icon{order:20!important}

/* Date and time are always visible on desktop and match the visual reference. */
body.sapx-v266.authGranted.sapx-v2669 .updateMeta{
  order:2!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  flex:0 0 198px!important;
  width:198px!important;
  min-width:198px!important;
  height:50px!important;
  margin:0 2px 0 0!important;
  padding:5px 8px!important;
  border:0!important;
  border-radius:12px!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--sapx-text)!important;
  overflow:visible!important;
}
body.sapx-v266.authGranted.sapx-v2669 .updateMeta .liveDot{
  width:10px!important;
  height:10px!important;
  min-width:10px!important;
  box-shadow:0 0 0 5px rgba(27,200,138,.12)!important;
}
body.sapx-v266.authGranted.sapx-v2669 .updateMeta>div{
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:2px!important;
}
body.sapx-v266.authGranted.sapx-v2669 .updateMeta small{
  display:block!important;
  margin:0!important;
  color:var(--sapx-muted)!important;
  font-size:10px!important;
  line-height:1.1!important;
  white-space:nowrap!important;
}
body.sapx-v266.authGranted.sapx-v2669 .updateMeta strong{
  display:block!important;
  margin:0!important;
  color:var(--sapx-text)!important;
  font-size:12.5px!important;
  font-weight:750!important;
  line-height:1.15!important;
  white-space:nowrap!important;
}

/* User identity is lowered slightly and vertically centered with the action controls. */
body.sapx-v266.authGranted.sapx-v2669 .authUser.premiumUser{
  order:3!important;
  display:block!important;
  flex:0 0 var(--sapx-v2669-profile)!important;
  width:var(--sapx-v2669-profile)!important;
  min-width:var(--sapx-v2669-profile)!important;
  max-width:var(--sapx-v2669-profile)!important;
  height:54px!important;
  margin:3px 0 0!important;
  padding:0!important;
  position:relative!important;
  overflow:visible!important;
}
body.sapx-v266.authGranted.sapx-v2669 .sapx-profile-trigger{
  width:100%!important;
  height:54px!important;
  min-height:54px!important;
  padding:5px 11px 5px 6px!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  border:1px solid var(--sapx-border)!important;
  border-radius:15px!important;
  background:var(--sapx-card)!important;
  box-shadow:0 3px 12px rgba(15,23,42,.035)!important;
}
body.sapx-v266.authGranted.sapx-v2669 .sapx-profile-trigger:hover,
body.sapx-v266.authGranted.sapx-v2669 .sapx-profile-trigger[aria-expanded="true"]{
  border-color:#9fb5ce!important;
  background:var(--sapx-soft)!important;
}
body.sapx-v266.authGranted.sapx-v2669 .sapx-profile-trigger .userAvatarWrap{
  width:43px!important;
  height:43px!important;
  min-width:43px!important;
  flex:0 0 43px!important;
}
body.sapx-v266.authGranted.sapx-v2669 .sapx-profile-trigger .userIdentity{
  display:flex!important;
  flex:1 1 auto!important;
  min-width:0!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:3px!important;
}
body.sapx-v266.authGranted.sapx-v2669 .sapx-profile-trigger .userIdentity strong{
  max-width:168px!important;
  font-size:13.5px!important;
  line-height:1.05!important;
}
body.sapx-v266.authGranted.sapx-v2669 .sapx-profile-trigger .userIdentity span{
  display:block!important;
  max-width:168px!important;
  color:var(--sapx-muted)!important;
  font-size:11px!important;
  font-weight:600!important;
  line-height:1.05!important;
}
body.sapx-v266.authGranted.sapx-v2669 .sapx-profile-chevron{
  display:block!important;
  margin-left:auto!important;
}

/* Profile card: same clean proportions as the approved reference. */
body.sapx-v266.authGranted.sapx-v2669 .sapx-profile-menu{
  position:fixed!important;
  z-index:5000!important;
  width:380px!important;
  max-width:calc(100vw - 24px)!important;
  max-height:calc(100vh - 92px)!important;
  padding:12px!important;
  overflow:auto!important;
  border:1px solid var(--sapx-border)!important;
  border-radius:17px!important;
  background:var(--sapx-card)!important;
  box-shadow:0 22px 60px rgba(15,23,42,.18)!important;
}
body.sapx-v266.authGranted.sapx-v2669 .sapx-profile-summary{
  min-height:86px!important;
  padding:10px 10px 14px!important;
  gap:14px!important;
  border-bottom:1px solid var(--sapx-border)!important;
}
body.sapx-v266.authGranted.sapx-v2669 .sapx-profile-avatar,
body.sapx-v266.authGranted.sapx-v2669 .sapx-profile-avatar img{
  width:58px!important;
  height:58px!important;
  min-width:58px!important;
}
body.sapx-v266.authGranted.sapx-v2669 .sapx-profile-summary strong{font-size:15px!important}
body.sapx-v266.authGranted.sapx-v2669 .sapx-profile-summary span{font-size:12px!important}
body.sapx-v266.authGranted.sapx-v2669 .sapx-profile-summary small{
  display:block!important;
  margin-top:4px!important;
  color:#0a6ed1!important;
  font-size:13px!important;
  font-weight:750!important;
}
body.sapx-v266.authGranted.sapx-v2669 .sapx-profile-nav{
  display:grid!important;
  gap:3px!important;
  padding-top:8px!important;
}
body.sapx-v266.authGranted.sapx-v2669 .sapx-profile-option{
  min-height:60px!important;
  padding:9px 12px!important;
  border-radius:12px!important;
}
body.sapx-v266.authGranted.sapx-v2669 .sapx-profile-option>span{
  width:30px!important;
  font-size:19px!important;
}
body.sapx-v266.authGranted.sapx-v2669 .sapx-profile-option strong{font-size:14px!important}
body.sapx-v266.authGranted.sapx-v2669 .sapx-profile-option small{font-size:11.5px!important}

@media(max-width:1530px){
  :root{--sapx-v2669-profile:220px}
  body.sapx-v266.authGranted.sapx-v2669 .updateMeta{flex-basis:178px!important;width:178px!important;min-width:178px!important}
  body.sapx-v266.authGranted.sapx-v2669 .sapx-profile-trigger .userIdentity strong,
  body.sapx-v266.authGranted.sapx-v2669 .sapx-profile-trigger .userIdentity span{max-width:136px!important}
  body.sapx-v266.authGranted.sapx-v2669 .sapx-global-search{width:min(300px,21vw)!important}
}
@media(max-width:1260px){
  body.sapx-v266.authGranted.sapx-v2669 .updateMeta{display:none!important}
  :root{--sapx-v2669-profile:190px}
  body.sapx-v266.authGranted.sapx-v2669 .sapx-profile-trigger .userIdentity strong{max-width:108px!important}
  body.sapx-v266.authGranted.sapx-v2669 .sapx-profile-trigger .userIdentity span{display:none!important}
}
@media(max-width:980px){
  :root{--sapx-v2669-profile:48px}
  body.sapx-v266.authGranted.sapx-v2669 .authUser.premiumUser{min-width:48px!important;margin-top:0!important}
  body.sapx-v266.authGranted.sapx-v2669 .sapx-profile-trigger{width:48px!important;height:48px!important;padding:3px!important;border-radius:50%!important}
  body.sapx-v266.authGranted.sapx-v2669 .sapx-profile-trigger .userIdentity,
  body.sapx-v266.authGranted.sapx-v2669 .sapx-profile-chevron{display:none!important}
}
