/*
 * AICS Notification Centre Reliable Responsive Layout v1 - 26 Aug 2026
 * Presentation only. Loaded globally but scoped to the unique .notification-centre component.
 * This is the fallback owner when route-specific notification CSS detection does not fire.
 */
.notification-centre {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  min-width: 0;
}

.notification-centre .notification-centre-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.notification-centre .notification-centre-head h1 { margin: 0 0 6px; }
.notification-centre .notification-centre-head p { margin: 0; color: #667085; line-height: 1.5; }
.notification-centre .notification-secondary-btn { min-height: 44px; white-space: nowrap; }

.notification-centre .notification-summary {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.notification-centre .notification-summary > div {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 92px;
  padding: 15px 16px;
  border: 1px solid #e5d7e9;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(17, 24, 39, .035);
}

.notification-centre .notification-summary strong {
  display: block;
  margin: 0;
  color: #6A2875;
  font-size: 28px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.notification-centre .notification-summary span {
  display: block;
  margin-top: 7px;
  color: #667085;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
}

.notification-centre .notification-filters {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(220px, 320px));
  gap: 12px;
  align-items: end;
  justify-content: start;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid #e5d7e9;
  border-radius: 14px;
  background: #fff;
}

.notification-centre .notification-filters label {
  display: grid !important;
  gap: 6px;
  min-width: 0 !important;
  margin: 0;
  color: #526071;
  font-size: 12px;
  font-weight: 800;
}

.notification-centre .notification-filters select {
  width: 100%;
  min-height: 44px;
}

.notification-centre .notification-list {
  display: grid !important;
  gap: 10px;
  min-width: 0;
}

.notification-centre .notification-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid #e5d7e9;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(17, 24, 39, .035);
}

.notification-centre .notification-card.is-unread {
  border-left: 4px solid #783184;
  background: linear-gradient(90deg, #fbf5fc 0, #fff 24%);
}

.notification-centre .notification-card-main { min-width: 0; }
.notification-centre .notification-card h2 { margin: 8px 0 6px; font-size: 17px; line-height: 1.35; }
.notification-centre .notification-card p { margin: 0; color: #344054; line-height: 1.5; }

.notification-centre .notification-card-top,
.notification-centre .notification-meta {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 8px;
}

.notification-centre .notification-category,
.notification-centre .notification-priority,
.notification-centre .notification-meta span {
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
  max-width: 100%;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.2;
}

.notification-centre .notification-category,
.notification-centre .notification-meta span {
  color: #5c667a;
  background: #f5f2f6;
  border: 1px solid #ebe2ed;
}

.notification-centre .notification-priority { color: #6A2875; background: #f1e8f3; }
.notification-centre .priority-urgent { color: #b42318; background: #fef3f2; }
.notification-centre .priority-action-required { color: #7a4d00; background: #fff7e6; }
.notification-centre .notification-meta { margin-top: 10px; }

.notification-centre .notification-view-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.notification-centre .notification-empty {
  padding: 28px 18px;
  border: 1px dashed #d9c8dd;
  border-radius: 14px;
  background: #fff;
  color: #667085;
  text-align: center;
}

.notification-centre .notification-pagination { margin-top: 16px; }

@media (max-width: 767px) {
  .notification-centre .notification-centre-head {
    flex-direction: column;
    align-items: stretch;
  }
  .notification-centre .notification-centre-head form,
  .notification-centre .notification-secondary-btn { width: 100%; }
  .notification-centre .notification-summary { grid-template-columns: 1fr; gap: 8px; }
  .notification-centre .notification-summary > div {
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 10px;
    min-height: 62px;
    padding: 12px 14px;
  }
  .notification-centre .notification-summary strong { font-size: 23px; }
  .notification-centre .notification-summary span { margin-top: 0; }
  .notification-centre .notification-filters { grid-template-columns: 1fr; padding: 12px; }
  .notification-centre .notification-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }
  .notification-centre .notification-view-btn { width: 100%; }
  .notification-centre .notification-category,
  .notification-centre .notification-priority,
  .notification-centre .notification-meta span { white-space: normal; }
}
