.notification-bell{position:relative}.notification-bell>summary{display:flex;align-items:center;gap:5px;cursor:pointer;list-style:none;padding:8px;border:1px solid var(--border,#ddd);border-radius:10px}.notification-count{font-size:14px;font-weight:700}.notification-popover{position:absolute;right:0;top:48px;width:min(390px,85vw);max-height:70vh;overflow:auto;z-index:80;background:var(--surface,#fff);border:1px solid var(--border,#ddd);border-radius:14px;padding:18px;box-shadow:0 12px 35px #0002}.notification-popover h2{font-size:19px}.notification-list{list-style:none;padding:0;margin:0}.notification-item{display:grid;gap:7px;padding:14px 0;border-bottom:1px solid #ddd}.notification-item:last-child{border-bottom:0}.notification-item small{color:#666}.notification-item p{margin:0}.notification-item .badge{justify-self:start}.notification-item.unread strong::before{content:'• ';color:var(--roig-red,currentColor)}.notification-option{display:inline-flex;align-items:center;gap:8px;margin:10px 20px 10px 0}.notifications-panel{margin:18px 0}.notifications-panel h2{display:flex;align-items:center;gap:9px}.notification-item button{justify-self:start}
.critical-alerts h2{color:var(--roig-red,#c70e06)}.notification-controls,.notification-bulk,.notification-item-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.notification-controls{justify-content:space-between;margin:12px 0}.notification-controls label{display:flex;align-items:center;gap:8px}.notification-bulk{padding:12px 0;border-bottom:1px solid var(--border,#ddd)}.notification-bulk label{display:flex;gap:7px;align-items:center}.notification-item-head input{width:18px;height:18px;margin:0}.notification-item-head .notification-read-label{margin-left:auto}.notification-load-button{display:block;width:100%;margin-top:10px;min-height:40px;text-align:center}.notification-delete-confirm{padding:14px;border:1px solid var(--roig-red,#c70e06);border-radius:10px;margin:12px 0}[data-notice-feed] [hidden]{display:none!important}[data-notice-message]{min-height:18px}.notification-item strong,.notification-item p{overflow-wrap:anywhere}@media(max-width:600px){.notification-controls{align-items:flex-start;flex-direction:column}.notification-bulk button{flex:1 1 130px}}

.notifications-panel>.panel-heading{background:rgba(199,14,6,.08);background:color-mix(in srgb,var(--roig-red,#c70e06) 8%,white);border-radius:9px;padding:10px 12px;margin-bottom:8px}.notifications-panel>.panel-heading h2{margin:0;font-size:19px}.notification-item{gap:4px;padding:9px 0}.notification-item-head{display:flex;align-items:baseline;gap:8px;flex-wrap:nowrap}.notification-item-head>input{align-self:center;flex:0 0 16px;width:16px;height:16px}.notification-item-head>strong{flex:1 1 200px;min-width:0;line-height:1.3;font-size:16px}.notification-item-head>.notification-priority{flex:0 0 auto;font-size:13px;line-height:1.3;padding:3px 7px;white-space:nowrap}.notification-list .notification-priority-critical{background:var(--roig-red,#c70e06);color:#fff;border:1px solid var(--roig-red,#c70e06)}.notification-list .notification-priority-other{background:#fff3cd;color:#664d03;border:1px solid #ffe69c}.notification-item-head>.notification-meta{flex:0 1 340px;margin-left:auto;text-align:right;font-size:13px;line-height:1.35;overflow-wrap:anywhere}.notification-item p{font-size:15px;line-height:1.35}.notification-item-footer{display:flex;align-items:center;gap:12px;font-size:14px}.notification-item-footer>.notification-read-label{margin-left:auto;font-size:13px}.notification-popover .notification-item-head{flex-wrap:wrap}.notification-popover .notification-meta{flex-basis:100%;text-align:left}.notification-popover .notification-item-head>strong{flex-basis:140px}@media(max-width:700px){.notification-item-head{flex-wrap:wrap}.notification-item-head>strong{flex-basis:160px}.notification-item-head>.notification-meta{flex-basis:100%;text-align:left;margin-left:0}.notification-controls,.notification-bulk{gap:8px}.notification-controls{margin:8px 0}.notification-bulk{padding:8px 0}}

.notification-filter-tabs{display:flex;flex-wrap:wrap;gap:4px;border-bottom:1px solid var(--border,#ddd);padding-bottom:5px}.notification-filter-tabs button{border:0;border-radius:6px 6px 0 0;background:transparent;color:var(--text,#54595f);font-size:14px;padding:8px 10px;white-space:nowrap}.notification-filter-tabs button[aria-pressed="true"]{color:var(--red,#c70e06);background:var(--red-soft,rgba(199,14,6,.08));box-shadow:inset 0 -2px var(--red,#c70e06);font-weight:650}.notification-personal-help{margin:6px 0;font-size:13px}[data-notice-message]:empty{display:none}

/* Keep the entire notification heading in one row, including after API loads. */
.notifications-panel>.panel-heading{background:rgba(199,14,6,.10);background:color-mix(in srgb,var(--red,#c70e06) 10%,white)}.notification-list .notification-item-head{display:grid;grid-template-columns:16px max-content minmax(100px,1fr) max-content;align-items:center;gap:8px;padding:7px 10px;background:var(--red-soft,rgba(199,14,6,.06));border-radius:6px;min-width:0;overflow-x:auto}.notification-list .notification-item-head--plain{grid-template-columns:max-content minmax(100px,1fr) max-content}.notification-list .notification-item-head>strong{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;min-width:0}.notification-list .notification-item-head>.notification-meta{display:flex;align-items:center;gap:3px;white-space:nowrap;margin:0;text-align:right;font-size:13px;line-height:1.3}.notification-business{display:inline-block;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notification-meta time{white-space:nowrap}.notification-item .notification-open-button{padding:5px 11px;font-size:13px;min-height:29px;border-radius:6px}.notifications-panel .notification-load-button{background:#f1f2f4;border:1px solid #d9dce1;color:var(--ink,#000);font-size:14px;font-weight:600;min-height:36px}.notifications-panel .notification-load-button:hover{background:#e6e8ec}.notification-popover .notification-item-head{font-size:13px}.notification-popover .notification-business{max-width:120px}@media(max-width:700px){.notification-list .notification-item-head{grid-template-columns:16px max-content minmax(100px,1fr) max-content}.notification-list .notification-item-head--plain{grid-template-columns:max-content minmax(100px,1fr) max-content}.notification-business{max-width:130px}}

/* Keep controls in the panel header and each notice's actions in its title row. */
.notifications-panel > .panel-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.notifications-panel > .panel-heading .notification-filter-tabs {
  flex: 1 1 auto;
  min-width: 0;
  border-bottom: 0;
  padding-bottom: 0;
}
.notifications-panel .notification-filter-tabs button {
  border-radius: 6px;
  color: #41454b;
  padding: 5px 8px;
}
.notifications-panel .notification-filter-tabs button[aria-pressed="true"] {
  color: var(--red,#c70e06);
  background: #fff;
}
.notifications-panel [data-notice-progress] {
  margin-inline-start: auto;
  font-size: 13px;
}
.notifications-panel .notification-item-head {
  grid-template-columns: 16px max-content minmax(0,1fr) max-content max-content;
  padding-block: 5px;
}
.notification-title-group {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
.notification-title-group > strong {
  font-size: 16px;
  line-height: 1.3;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notification-title-group > .notification-read-label {
  flex: 0 0 auto;
  margin: 0;
  font-size: 12px;
  white-space: nowrap;
}
.notifications-panel .notification-open-button {
  white-space: nowrap;
  align-self: center;
}
@media (max-width: 1000px) {
  .notifications-panel .notification-item-head {
    grid-template-columns: 16px max-content minmax(0,1fr) max-content;
  }
  .notification-title-group { grid-column: 3 / -1; }
  .notifications-panel .notification-item-head > .notification-meta {
    grid-column: 2 / 4;
    min-width: 0;
    justify-content: flex-start;
  }
  .notifications-panel .notification-item-head > .notification-open-button { grid-column: 4; }
}
@media (max-width: 430px) {
  .notification-title-group {
    flex-wrap: wrap;
    row-gap: 1px;
  }
  .notification-title-group > strong {
    white-space: normal;
  }
}

.notifications-panel--platform .notification-business {
  color: var(--ink,#202227);
  font-size: 16px;
  font-weight: 750;
}

.notifications-panel--platform .notification-item--warning {
  background: #fff9e6;
  border-radius: 8px;
}

.notifications-panel--platform .notification-item--warning .notification-item-head {
  background: #fff0b3;
}

.notifications-panel--platform .notification-item--warning > p {
  padding-inline: 10px;
}

.notification-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.notification-alert-icon {
  color: var(--red,#c70e06);
  font-size: 17px;
  line-height: 1;
}

.notification-item--warning .notification-alert-icon,
.notification-list .notification-priority-warning {
  background: #ffdf70;
  color: #654300;
  border-radius: 5px;
  padding: 3px 6px;
}

.notification-list .notification-priority-warning {
  border: 1px solid #e5bf4a;
}

.notification-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 16px;
}

.notification-list .notification-item--critical {
  background: var(--red-soft, #fcebea);
  border-radius: 8px;
}
.notification-list .notification-item--warning {
  background: #fff9e6;
  border-radius: 8px;
}
.notifications-panel .notification-list .notification-item--critical .notification-item-head {
  background: var(--red-soft, #fcebea);
}
.notifications-panel .notification-list .notification-item--warning .notification-item-head {
  background: #fff0b3;
}

.notification-bell.has-pending > summary { background:#fff0f1; border-color:#ff263f; color:#d90026; }
.notification-bell.has-pending > summary svg { stroke:#f0002b; stroke-width:2.4; }
.notification-bell.has-pending .notification-count { min-width:1.55rem; padding:.1rem .3rem; text-align:center; border-radius:1rem; background:#d90026; color:#fff; font-size:.9rem; font-weight:800; }
.registration-notice .badge { margin-inline-end:.4rem; }

.notification-title-group > .notification-description {
  flex: 1 1 9rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.35;
  color: #54595f;
}

.notifications-panel .notification-list > .notification-item {
  padding-block: 4px;
}

@media (max-width: 430px) {
  .notification-title-group > .notification-description {
    order: 1;
    flex-basis: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
