/* ITSM Announcements: UAT-only compact, accessible portal surfaces. */
#portalApp .ialAnnBar{display:flex;align-items:center;width:100%;max-width:100%;min-height:36px;background:#edf5ff;border-bottom:1px solid #c9dcfa;overflow:hidden;position:relative;z-index:1}
#portalApp .ialAnnBar[hidden],#portalApp .ialAnnBell[hidden]{display:none!important}
#portalApp .ialAnnTag{display:flex;align-items:center;gap:5px;flex:none;background:#205dc1;color:#fff;font-size:11px;line-height:1;font-weight:800;letter-spacing:.01em;padding:0 11px;align-self:stretch}
#portalApp .ialAnnTag svg{width:15px;height:15px}
#portalApp .ialAnnRail{min-width:0;flex:1;display:flex;align-items:center;overflow:hidden;height:36px;outline-offset:-3px;cursor:pointer}
#portalApp .ialAnnTrack{display:flex;align-items:center;gap:46px;width:max-content;white-space:nowrap;animation:ialAnnTravel var(--ial-ann-duration,26s) linear infinite;color:#1d498b;font-weight:650;font-size:12px}
#portalApp .ialAnnHeadline{padding-left:18px;display:inline-flex;align-items:center;gap:7px;white-space:nowrap;background:transparent;border:0;color:inherit;font:inherit;cursor:pointer}
#portalApp .ialAnnHeadline:focus-visible,#portalApp .ialAnnAll:focus-visible{outline:2px solid #175cd3;outline-offset:-2px}
#portalApp .ialAnnRail:hover .ialAnnTrack,#portalApp .ialAnnRail:focus-within .ialAnnTrack,#portalApp .ialAnnRail.ialAnnPaused .ialAnnTrack{animation-play-state:paused}
#portalApp .ialAnnAll{height:36px;flex:none;border:0;border-left:1px solid #c7d9f2;background:#edf5ff;color:#2058a3;font-size:11px;font-weight:750;padding:0 12px;cursor:pointer}
#portalApp .ialAnnBar.ialAnnCritical{background:#fff1e6;border-bottom-color:#f8c897}
#portalApp .ialAnnCritical .ialAnnTag{background:#b54708}
#portalApp .ialAnnCritical .ialAnnRail{cursor:default}
#portalApp .ialAnnCritical .ialAnnTrack{animation:none;max-width:100%;overflow:hidden;text-overflow:ellipsis;display:block;color:#7a3610}
#portalApp .ialAnnCritical .ialAnnHeadline{max-width:100%;overflow:hidden;text-overflow:ellipsis;display:inline-block;vertical-align:middle}
#portalApp .ialAnnBell{position:relative;display:inline-grid;place-items:center;flex:0 0 auto;width:38px;min-width:38px;height:38px;min-height:38px;border:1px solid #dce5f0;border-radius:10px;background:#f4f7fd;color:#28558e;cursor:pointer;padding:0!important}
#portalApp .ialAnnBell svg{width:20px;height:20px}
#portalApp .ialAnnCount{position:absolute;right:-3px;top:-5px;min-width:16px;height:16px;padding:0 3px;display:grid;place-items:center;background:#d92d20;color:white;border-radius:10px;font-size:9px;font-weight:800;line-height:1}
#portalApp .ialAnnCount[hidden]{display:none!important}
#portalApp #desktopNav .ialAnnNav{display:flex;gap:9px;align-items:center;width:100%;text-align:left;border:0;cursor:pointer}
#portalApp #desktopNav .ialAnnNav.ialAnnNavActive{background:#eaf2ff!important;color:#175cd3!important}
.ialAnnOverlay{position:fixed;inset:0;z-index:2147483100;background:rgba(12,28,55,.55);display:flex;justify-content:center;align-items:center;padding:20px}
.ialAnnPanel{width:min(790px,100%);max-height:min(90dvh,810px);display:flex;flex-direction:column;overflow:hidden;border-radius:17px;background:#fff;color:#21304a;box-shadow:0 18px 45px rgba(16,35,60,.27)}
.ialAnnPanelHead{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 19px;border-bottom:1px solid #e5eaf3}
.ialAnnPanelHead h2{margin:0;font-size:19px;font-weight:800;color:#183d73}
.ialAnnPanelHead p{margin:4px 0 0;font-size:12px;color:#64748b}
.ialAnnClose{border:0;background:#eef2f8;color:#394d69;width:32px;height:32px;border-radius:9px;font-size:21px;cursor:pointer}
.ialAnnFilters{padding:12px 17px;display:flex;gap:9px;align-items:center;flex-wrap:wrap;border-bottom:1px solid #e5eaf3}
.ialAnnFilters input{flex:1;min-width:145px;border:1px solid #ced8e7;border-radius:8px;padding:10px;font-size:13px;color:#263c5c;background:#fff}
.ialAnnFilters button{border:1px solid #d2def0;border-radius:8px;background:#fff;color:#2a5688;padding:9px 12px;font-size:12px;cursor:pointer}
.ialAnnFilters button[aria-pressed="true"]{background:#e6f0ff;border-color:#7ea8ea;color:#1456b7;font-weight:750}
.ialAnnResults{padding:13px 17px;overflow:auto;overscroll-behavior:contain;min-height:115px}
.ialAnnRow{width:100%;text-align:left;background:white;border:1px solid #e3eaf3;border-radius:11px;display:flex;gap:10px;padding:12px;margin-bottom:9px;cursor:pointer;color:#293d5a}
.ialAnnRow:hover{border-color:#91b2e4;background:#f9fbff}
.ialAnnRow .ialAnnDot{margin-top:5px;width:7px;height:7px;background:#2e72d2;border-radius:50%;flex:none}
.ialAnnRow[data-read="1"] .ialAnnDot{background:#d9e1ed}
.ialAnnRowText{flex:1;min-width:0}
.ialAnnRowTitle{font-weight:800;font-size:13px;display:block}
.ialAnnRowDesc{display:block;font-size:12px;color:#60738e;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ialAnnRowMeta{display:flex;gap:7px;align-items:center;flex-wrap:wrap;color:#6b7f96;font-size:10px;margin-top:7px}
.ialAnnBadge{background:#eaf2ff;color:#1d59b2;border-radius:5px;padding:3px 6px;font-size:10px;font-weight:750}
.ialAnnBadge.critical{background:#fff0e7;color:#a74311}
.ialAnnEmpty{font-size:13px;color:#667085;padding:24px 10px;text-align:center}
.ialAnnDetail{padding:20px;overflow:auto;line-height:1.55}
.ialAnnDetail h3{font-size:18px;margin:10px 0 12px;color:#193b71}
.ialAnnDetail p{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;color:#344766}
.ialAnnDetail img{display:block;max-width:100%;max-height:45vh;object-fit:contain;margin:14px auto;border-radius:9px}
.ialAnnBack{border:1px solid #d5e1f1;background:#fff;color:#23589c;font-size:12px;border-radius:8px;padding:7px 10px;cursor:pointer;margin:0 17px 12px;align-self:flex-start}
.ialAnnFoot{padding:11px 18px;border-top:1px solid #e7edf5;font-size:11px;color:#637893}
@keyframes ialAnnTravel{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(max-width:820px){
 #portalApp .ialAnnBar{height:32px;min-height:32px}
 #portalApp .ialAnnTag{font-size:9px;gap:4px;padding:0 7px}
 #portalApp .ialAnnTag svg{width:12px;height:12px}
 #portalApp .ialAnnRail,#portalApp .ialAnnAll{height:32px}
 #portalApp .ialAnnTrack{font-size:11px;gap:27px}
 #portalApp .ialAnnAll{padding:0 8px}
 #portalApp .ialAnnBell{width:38px;min-width:38px}
 .ialAnnOverlay{padding:0;align-items:stretch}
 .ialAnnPanel{width:100%;height:100dvh;max-height:100dvh;border-radius:0}
 .ialAnnPanelHead{padding:14px 15px}
 .ialAnnResults{padding:10px 12px}
 .ialAnnFilters{padding:10px 12px}
 .ialAnnDetail{padding:14px}
}
@media(prefers-reduced-motion:reduce){#portalApp .ialAnnTrack{animation:none!important;max-width:100%;overflow:hidden}}

#portalApp .topbar{isolation:isolate}
#portalApp .ialAnnBellMenu{position:absolute;right:9px;top:calc(100% + 5px);z-index:2000;width:min(330px,calc(100vw - 24px));background:#fff;color:#263b5a;border:1px solid #dce6f4;border-radius:12px;box-shadow:0 12px 32px rgba(15,37,70,.2);overflow:hidden}
#portalApp .ialAnnPopHead{font-size:13px;font-weight:800;padding:13px 15px;border-bottom:1px solid #e6edf5;color:#23436d}
#portalApp .ialAnnPopItem{display:block;width:100%;border:0;border-bottom:1px solid #edf2f8;background:#fff;text-align:left;color:#244a7a;font-weight:650;font-size:12px;padding:12px 15px;cursor:pointer}
#portalApp .ialAnnPopItem:hover{background:#f1f6ff}
#portalApp .ialAnnPopEmpty{font-size:12px;color:#667085;padding:14px}
#portalApp .ialAnnPopView{width:100%;border:0;background:#f0f6ff;color:#1c58ac;font-size:12px;font-weight:800;padding:11px;cursor:pointer}
@media(max-width:820px){#portalApp .ialAnnBellMenu{right:5px;top:calc(100% + 1px);width:min(330px,calc(100vw - 16px))}}

/* UAT: persistent announcements directly beneath the existing sticky header.
   Desktop uses normal sticky stacking; mobile follows the shared fixed toolbar.
   Do not alter the approved mobile logo, toolbar or bottom navigation. */
@media(min-width:821px){
  #portalApp:not(.hidden) .main #ialAnnTicker:not([hidden]){
    position:sticky!important;
    top:66px!important;
    z-index:4!important;
  }
}
@media(max-width:820px){
  #portalApp:not(.hidden) .main #ialAnnTicker:not([hidden]){
    position:fixed!important;
    top:calc(53px + var(--ial-mobile-toolbar-height,96px))!important;
    left:0!important;
    right:0!important;
    width:100vw!important;
    max-width:100vw!important;
    z-index:53!important;
    height:32px!important;
  }
  #portalApp:not(.hidden) .main:has(#ialAnnTicker:not([hidden])){
    padding-top:calc(var(--ial-mobile-toolbar-height,96px) + 32px)!important;
  }
}

/* Mobile announcement centre refinement (UAT): readable search, compact cards and useful metadata. */
.ialAnnPanel{min-height:0}
.ialAnnResults{flex:1;min-height:0}
.ialAnnFilters input:focus-visible{outline:2px solid #175cd3;outline-offset:2px}
.ialAnnRow{align-items:flex-start;min-height:90px;transition:background-color .12s,border-color .12s}
.ialAnnRow[data-read="0"]{border-color:#b9d2f4;background:#f8fbff}
.ialAnnRow[data-read="1"] .ialAnnRowTitle{font-weight:700}
.ialAnnRow .ialAnnDot{margin-top:5px}
.ialAnnRowDesc[hidden]{display:none}
.ialAnnRowArrow{align-self:center;flex:none;font-size:23px;color:#8999ae;line-height:1}
.ialAnnUnread{font-size:10px;font-weight:800;color:#1d5ac1}
.ialAnnDetailMeta{display:flex;gap:8px 16px;flex-wrap:wrap;margin:6px 0 15px;color:#657793;font-size:12px}
@media(max-width:820px){
 .ialAnnPanelHead{padding:calc(14px + env(safe-area-inset-top,0px)) 15px 14px}
 .ialAnnPanelHead h2{font-size:21px;line-height:1.25}
 .ialAnnPanelHead p{font-size:12px;line-height:1.45;max-width:38ch}
 .ialAnnFilters{
   display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
   gap:9px;padding:12px;border-bottom:1px solid #e5eaf3
 }
 .ialAnnFilters input{
   grid-column:1/-1;width:100%;min-width:0;height:44px;
   padding:11px 13px;font-size:14px
 }
 .ialAnnFilters button{
   display:flex;align-items:center;justify-content:center;
   min-width:0;width:100%;min-height:41px;padding:8px 4px;
   font-size:12px;line-height:1.3;white-space:nowrap
 }
 .ialAnnResults{padding:12px}
 .ialAnnRow{padding:14px 12px;gap:9px;border-radius:12px}
 .ialAnnRowTitle{font-size:14px;line-height:1.35}
 .ialAnnRowDesc{font-size:12px;white-space:normal;overflow:hidden;
   display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
 .ialAnnRowMeta{font-size:11px;line-height:1.5}
 .ialAnnDetail{padding:15px;overscroll-behavior:contain}
}
@media(max-width:360px){
 .ialAnnFilters button{font-size:11px}
 .ialAnnRow{padding:12px 10px}
}

/* UAT global-shell Announcements: keep the approved portal header, ticker,
   desktop sidebar and mobile bottom navigation visible in the Announcements view. */
.ialAnnOverlay{
  position:fixed!important;
  top:var(--ial-ann-shell-top,66px)!important;
  left:var(--ial-ann-shell-left,250px)!important;
  right:0!important;
  bottom:var(--ial-ann-shell-bottom,0px)!important;
  padding:0!important;
  background:#f6f8fc!important;
  align-items:stretch!important;
  justify-content:stretch!important;
  z-index:4!important;
}
.ialAnnPanel{
  width:100%!important;
  max-width:none!important;
  max-height:none!important;
  height:100%!important;
  border-radius:0!important;
  box-shadow:none!important;
  border:0!important;
  background:#fff;
}
@media(max-width:820px){
 .ialAnnOverlay{
   top:var(--ial-ann-shell-top,153px)!important;
   left:0!important;
   right:0!important;
   bottom:var(--ial-ann-shell-bottom,74px)!important;
   z-index:24!important;
 }
 .ialAnnPanel{width:100%!important;max-height:100%!important;height:100%!important}
 .ialAnnPanelHead{min-height:62px}
 /* The existing global page title reads Announcements. Avoid a duplicate
    visible heading while retaining a dialog name for accessibility. */
 .ialAnnPanelHead h2{
   position:absolute!important;width:1px!important;height:1px!important;
   overflow:hidden!important;clip:rect(0 0 0 0)!important;
   white-space:nowrap!important;margin:-1px!important;padding:0!important;border:0!important
 }
 .ialAnnPanelHead p{margin:0}
}
