/* =========================================================
   SCORIZER - MODULO DE NOTIFICACIONES
   ========================================================= */


@media(max-width: 768px) {
body.notifications-page .notifications-filter-actions {
    display: grid;
    gap: 12px;
  }



  body.notifications-page .notifications-filter-actions.is-collapsed {
    margin-bottom: 0;
  }
}



body.notifications-page .notifications-hero {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .94) 0%, rgba(0, 0, 0, .78) 38%, rgba(0, 0, 0, .48) 62%, rgba(0, 0, 0, .16) 100%),
    url('../img/banner/notifications/banner-notifications.png');
  background-size: cover;
  background-position: center right;
}



body.notifications-page .notifications-shell {
  gap: 18px;
}



body.notifications-page .notifications-toolbar {
  align-items: flex-start;
  gap: 16px;
}



body.notifications-page .notifications-toolbar .belts-clean-title {
  padding-top: 2px;
}



body.notifications-page .notifications-filter-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  width: min(100%, 1120px);
}



body.notifications-page .notifications-filter-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) minmax(260px, 1.45fr);
  gap: 10px;
  align-items: end;
}



body.notifications-page .notifications-filter-fields .requirements-toolbar-select {
  min-width: 180px;
}



body.notifications-page .notifications-filter-fields #notificationsSearchInput {
  min-width: 0;
}



body.notifications-page .notifications-filter-secondary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}



body.notifications-page .notifications-relationship-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 5px;
  border: 1px solid rgba(16, 24, 40, .08);
  border-radius: 10px;
  background: #f8fafc;
}



body.notifications-page .notifications-relationship-filter.d-none {
  display: none !important;
}



body.notifications-page .notifications-relationship-filter .chip-filter {
  height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #475467;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}



body.notifications-page .notifications-relationship-filter .chip-filter.active,
body.notifications-page .notifications-relationship-filter .chip-filter[aria-pressed="true"] {
  border-color: rgba(220, 38, 38, .18);
  background: #fff;
  color: #dc2626;
  box-shadow: 0 8px 18px rgba(16, 24, 40, .08);
}



body.notifications-page .notifications-relationship-filter .chip-filter:not(.active):not([aria-pressed="true"]) {
  background: transparent;
  color: #475467;
  box-shadow: none;
}



body.notifications-page .notifications-relationship-filter .chip-filter i {
  font-size: .78rem;
}



body.notifications-page .notifications-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}



body.notifications-page .notifications-module-card {
  width: 100%;
  min-height: 96px;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 8px;
  background: #fff;
  color: #101828;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  text-align: left;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}



body.notifications-page .notifications-module-card:hover,
body.notifications-page .notifications-module-card.is-active {
  border-color: rgba(220, 38, 38, 0.55);
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.13);
  transform: translateY(-1px);
}



body.notifications-page .notifications-module-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #fff1f1;
  color: #dc2626;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}



body.notifications-page .notifications-module-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}



body.notifications-page .notifications-module-copy strong {
  font-size: .98rem;
  line-height: 1.2;
}



body.notifications-page .notifications-module-copy small {
  color: #667085;
  font-size: .78rem;
}



body.notifications-page .notifications-module-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #667085;
  font-size: .68rem;
  font-weight: 750;
  line-height: 1.2;
}



body.notifications-page .notifications-module-breakdown>span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f8fafc;
  white-space: nowrap;
}



body.notifications-page .notifications-module-count {
  min-width: 34px;
  height: 30px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  font-weight: 800;
  font-size: .82rem;
}



body.notifications-page .notifications-list-panel {
  overflow: visible;
}



body.notifications-page .notifications-current-module {
  min-width: max-content;
  border-radius: 999px;
  background: #fff1f1;
  color: #b91c1c;
  padding: 8px 12px;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}



body.notifications-page .notifications-list {
  display: grid;
  gap: 10px;
}



body.notifications-page .notification-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}



body.notifications-page .notification-card.is-read {
  background: #fcfcfd;
  border-color: rgba(16, 24, 40, .07);
}



body.notifications-page .notification-card.is-read .notification-card-icon {
  background: #667085;
}



body.notifications-page .notification-card.is-archived {
  background: #f8fafc;
  border-style: dashed;
}



body.notifications-page .notification-card.requires-action {
  border-color: rgba(220, 38, 38, .18);
}



body.notifications-page .notification-card.is-action-loading {
  opacity: .72;
}



body.notifications-page .notification-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #101828;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}



body.notifications-page .notification-card-main {
  min-width: 0;
}



body.notifications-page .notification-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}



body.notifications-page .notification-card-head>div {
  min-width: 0;
  flex: 1 1 auto;
}



body.notifications-page .notification-label-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 4px;
}



body.notifications-page .notification-module-label {
  display: inline-flex;
  margin-bottom: 0;
  color: #dc2626;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}



body.notifications-page .notification-relationship-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(220, 38, 38, .16);
  border-radius: 999px;
  padding: 3px 8px;
  background: #fff7f7;
  color: #b42318;
  font-size: .68rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}



body.notifications-page .notification-relationship-badge i {
  font-size: .68rem;
}



body.notifications-page .notification-state-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: .68rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}



body.notifications-page .notification-state-badge.is-action {
  background: #fff7ed;
  color: #c2410c;
}



body.notifications-page .notification-state-badge.is-read {
  background: #f2f4f7;
  color: #475467;
}



body.notifications-page .notification-state-badge.is-archived {
  background: #eef4ff;
  color: #2563eb;
}



body.notifications-page .notification-card h3 {
  margin: 0;
  color: #101828;
  font-size: 1rem;
  line-height: 1.25;
}



body.notifications-page .notification-card p {
  margin: 6px 0 0;
  color: #475467;
  font-size: .9rem;
  line-height: 1.35;
}



body.notifications-page .notification-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
  color: #667085;
  font-size: .78rem;
}



body.notifications-page .notification-detail-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(170px, 1fr));
  gap: 9px;
  margin-top: 12px;
}



body.notifications-page .notification-detail-item {
  min-width: 0;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid rgba(16, 24, 40, .07);
  border-radius: 8px;
  background: #fbfcfd;
}



body.notifications-page .notification-detail-item.is-wide {
  grid-column: span 2;
}



body.notifications-page .notification-detail-item>span {
  display: block;
  margin-bottom: 3px;
  color: #667085;
  font-size: .68rem;
  font-weight: 850;
  line-height: 1.15;
  text-transform: uppercase;
}



body.notifications-page .notification-detail-item strong {
  display: block;
  color: #101828;
  font-size: .86rem;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: normal;
}



body.notifications-page .notification-rank-detail {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  min-width: 0;
  vertical-align: middle;
}



body.notifications-page .notification-rank-transition {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  color: #98a2b3;
}



body.notifications-page .notification-rank-transition .notification-rank-detail {
  max-width: min(260px, 42vw);
}



body.notifications-page .notification-detail-item strong .notification-rank-detail {
  display: inline-flex;
}



body.notifications-page .notification-rank-detail>span:last-child {
  min-width: 0;
  display: inline;
  margin: 0;
  color: #101828;
  font-size: .86rem;
  font-weight: 850;
  line-height: 1.25;
  text-transform: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}



body.notifications-page .notification-detail-item.is-wide .notification-rank-detail>span:last-child {
  white-space: normal;
}



@media(max-width: 900px) {
body.notifications-page .notification-detail-item.is-wide {
    grid-column: 1 / -1;
  }
}



body.notifications-page .notification-rank-icon.belt-svg-icon {
  width: 40px;
  height: 24px;
}



body.notifications-page .notification-rank-icon.belt-level-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 16px;
}



body.notifications-page .notification-rank-icon.belt-level-icon i {
  font-size: 18px;
}



body.notifications-page .notification-rank-icon-fallback {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #fff1f1;
  color: #dc2626;
}



body.notifications-page .notification-priority {
  min-height: 26px;
  border-radius: 999px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}



body.notifications-page .notification-priority.is-low {
  background: #f2f4f7;
  color: #475467;
}



body.notifications-page .notification-priority.is-normal {
  background: #eef4ff;
  color: #2563eb;
}



body.notifications-page .notification-priority.is-high {
  background: #fff7ed;
  color: #ea580c;
}



body.notifications-page .notification-priority.is-urgent {
  background: #fff1f1;
  color: #dc2626;
}



body.notifications-page .notification-card-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 7px;
  align-self: flex-start;
  flex: 0 0 auto;
}



body.notifications-page .notification-card-action-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}



body.notifications-page .notification-card-action-buttons button {
  min-height: 38px;
  cursor: pointer;
  white-space: nowrap;
}



body.notifications-page .notification-card-action-buttons button:disabled {
  cursor: not-allowed;
  opacity: .55;
}



body.notifications-page .notification-card-action-buttons .notification-open-btn {
  border-color: #101828 !important;
  background: #101828 !important;
  color: #fff !important;
  box-shadow: 0 8px 16px rgba(16, 24, 40, .14) !important;
}



body.notifications-page .notification-card-action-buttons .notification-open-btn:hover,
body.notifications-page .notification-card-action-buttons .notification-open-btn:focus {
  border-color: #344054 !important;
  background: #344054 !important;
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(16, 24, 40, .18) !important;
}



body.notifications-page .notification-card-action-buttons .notification-action-btn {
  min-width: 108px;
  gap: 6px;
}



body.notifications-page .notification-card-action-buttons .notification-action-btn.is-success {
  border-color: #198754;
  background: #198754;
  color: #fff;
}



body.notifications-page .notification-card-action-buttons .notification-action-btn.is-danger {
  border-color: #dc2626;
  background: #fff;
  color: #dc2626;
}



body.notifications-page .notification-card-action-buttons .notification-action-btn.is-danger:hover {
  background: #dc2626;
  color: #fff;
}



body.notifications-page .notification-card-action-buttons .notification-action-btn.is-muted {
  min-width: 0;
  border: 1px solid rgba(37, 99, 235, .16) !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  box-shadow: none !important;
}



body.notifications-page .notification-card-action-buttons .notification-action-btn.is-muted:hover,
body.notifications-page .notification-card-action-buttons .notification-action-btn.is-muted:focus {
  border-color: rgba(37, 99, 235, .28) !important;
  background: #dbeafe !important;
  color: #1e40af !important;
}



body.notifications-page .notification-card-action-buttons .notification-action-btn.is-read-action {
  border-color: rgba(22, 163, 74, .18) !important;
  background: #ecfdf3 !important;
  color: #15803d !important;
}



body.notifications-page .notification-card-action-buttons .notification-action-btn.is-read-action:hover,
body.notifications-page .notification-card-action-buttons .notification-action-btn.is-read-action:focus {
  border-color: rgba(22, 163, 74, .3) !important;
  background: #dcfce7 !important;
  color: #166534 !important;
}



body.notifications-page .notification-card-action-buttons .notification-action-btn.is-archive-action {
  border-color: rgba(79, 70, 229, .18) !important;
  background: #eef2ff !important;
  color: #4338ca !important;
}



body.notifications-page .notification-card-action-buttons .notification-action-btn.is-archive-action:hover,
body.notifications-page .notification-card-action-buttons .notification-action-btn.is-archive-action:focus {
  border-color: rgba(79, 70, 229, .3) !important;
  background: #e0e7ff !important;
  color: #3730a3 !important;
}



body.notifications-page .notifications-pagination {
  margin-top: 18px;
  padding-top: 4px;
}



body.notifications-page .notifications-summary-loading {
  grid-column: 1 / -1;
}



@media(max-width: 980px) {
body.notifications-page .notifications-toolbar {
    align-items: stretch;
  }



  body.notifications-page .notifications-filter-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }



  body.notifications-page .notifications-filter-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }



  body.notifications-page .notifications-filter-fields .requirements-toolbar-select:has(#notificationsSearchInput) {
    grid-column: 1 / -1;
  }



  body.notifications-page .notifications-filter-fields .requirements-toolbar-select,
body.notifications-page .notifications-filter-fields #notificationsSearchInput {
    min-width: 0;
    width: 100%;
  }



  body.notifications-page .notifications-filter-actions button {
    justify-content: center;
  }



  body.notifications-page .notifications-relationship-filter {
    max-width: 100%;
  }



  body.notifications-page .notifications-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }



  body.notifications-page .notification-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }



  body.notifications-page .notification-card {
    grid-template-columns: auto minmax(0, 1fr);
  }



  body.notifications-page .notification-card-actions {
    grid-column: 1 / -1;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
  }



  body.notifications-page .notification-card-action-buttons {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}



@media(max-width: 640px) {
body.notifications-page .notifications-filter-actions {
    grid-template-columns: 1fr;
  }



  body.notifications-page .notifications-filter-fields {
    grid-template-columns: 1fr;
  }



  body.notifications-page .notifications-filter-secondary {
    justify-content: stretch;
  }



  body.notifications-page .notifications-relationship-filter,
body.notifications-page .notifications-filter-secondary .toolbar-btn {
    width: 100%;
  }



  body.notifications-page .notifications-relationship-filter {
    justify-content: center;
  }



  body.notifications-page .notifications-module-card {
    min-height: 84px;
    padding: 12px;
  }



  body.notifications-page .notifications-summary-grid {
    grid-template-columns: 1fr;
  }



  body.notifications-page .notification-card {
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
  }



  body.notifications-page .notification-card-head {
    display: grid;
  }



  body.notifications-page .notification-detail-grid {
    grid-template-columns: 1fr;
  }



  body.notifications-page .notification-detail-item strong {
    white-space: normal;
  }



  body.notifications-page .notification-card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }



  body.notifications-page .notification-card-action-buttons {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }



  body.notifications-page .notification-card-action-buttons button {
    width: 100%;
    justify-content: center;
  }
}
