/* TF-10 Notificari: operational delivery center, scoped to #notifications. */

#notifications.notificationsPage {
  --notification-ink: #183858;
  --notification-muted: #687f99;
  --notification-line: #d9e5f0;
  --notification-soft: #f5f9fc;
  --notification-accent: #c85b32;
  --notification-accent-soft: #fff1e9;
  display: grid;
  gap: 20px;
  min-width: 0;
  overflow: visible;
}

#notifications .modulePageHeader {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 24px 26px;
  border: 1px solid #e2ded8;
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 18%, rgba(200, 91, 50, 0.13), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #fffaf6 100%);
  box-shadow: 0 14px 35px rgba(65, 45, 32, 0.075);
}

#notifications .modulePageHeader::after {
  position: absolute;
  right: -46px;
  bottom: -72px;
  width: 194px;
  height: 194px;
  border: 34px solid rgba(200, 91, 50, 0.07);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

#notifications .modulePageHeader > * {
  position: relative;
  z-index: 1;
}

#notifications .modulePrimaryAction {
  min-height: 44px;
  border-radius: 12px;
  box-shadow: 0 9px 20px rgba(200, 91, 50, 0.18);
}

#notifications .notificationStats {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 12px;
  margin: 0;
}

#notifications .notificationStats article {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--notification-line);
  border-radius: 15px;
  background: linear-gradient(145deg, #ffffff, #f9fbfd);
  box-shadow: 0 8px 22px rgba(24, 56, 88, 0.055);
}

#notifications .notificationStats article small {
  color: var(--notification-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.035em;
}

#notifications .notificationStats article strong {
  display: block;
  margin-top: 4px;
  color: var(--notification-ink);
  font-size: 1.45rem;
  line-height: 1;
}

#notifications .notificationToolbar {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(130px, 1fr)) !important;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--notification-line);
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(24, 56, 88, 0.05);
}

#notifications .notificationToolbar .ticketSearch {
  grid-column: span 2 !important;
  min-width: 0;
}

#notifications .notificationToolbar input,
#notifications .notificationToolbar select,
#notifications .notificationToolbar button {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border-radius: 10px;
}

#notifications .notificationToolbar .filterButton {
  padding-inline: 15px;
  white-space: nowrap;
}

#notifications .notificationToolbar .secondaryFilter {
  border-color: #ccd9e5;
  background: #f5f8fb;
  color: #3e5b76;
}

#notifications .operationPanel {
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--notification-line);
  border-radius: 17px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(24, 56, 88, 0.065);
}

#notifications .panelTitle {
  min-height: 68px;
  margin: 0;
  padding: 17px 20px;
  border-bottom: 1px solid #e4edf5;
  background: linear-gradient(90deg, #f8fbfd, #ffffff);
}

#notifications .panelSummary {
  padding: 6px 10px;
  border: 1px solid #d2e0eb;
  border-radius: 999px;
  background: #ffffff;
  color: #536e88;
  font-size: 0.75rem;
  font-weight: 700;
}

#notifications .notificationCards {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
}

#notifications .notificationCard {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(120px, auto);
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid #dfe8f0;
  border-left: 4px solid var(--notification-accent);
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 5px 16px rgba(24, 56, 88, 0.045);
}

#notifications .notificationCardIcon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #f0cdbd;
  border-radius: 11px;
  background: var(--notification-accent-soft);
  color: var(--notification-accent);
}

#notifications .notificationCardMain {
  min-width: 0;
}

#notifications .notificationCardMain > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

#notifications .notificationCardMain h4,
#notifications .notificationCardMain p,
#notifications .notificationCardMain small {
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  white-space: normal;
}

#notifications .notificationCardMain h4 {
  margin: 0 0 4px;
  color: var(--notification-ink);
  font-size: 0.93rem;
}

#notifications .notificationCardMain p {
  margin: 0 0 4px;
  color: #4f6982;
  font-size: 0.8rem;
  line-height: 1.45;
}

#notifications .notificationCardMain small,
#notifications .notificationCard time {
  color: var(--notification-muted);
  font-size: 0.72rem;
}

#notifications .notificationCard time {
  text-align: right;
}

#notifications .notificationCard.error {
  border-left-color: #bf3d3d;
  background: #fffafa;
}

#notifications .notificationAssetAlertsList {
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 14px;
}

#notifications .notificationAssetAlertsList > * {
  min-width: 0;
  border-radius: 12px;
}

#notifications .assetDocumentState {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 170px;
  padding: 24px;
  border: 1px dashed #d5e1eb;
  background: var(--notification-soft);
  color: var(--notification-muted);
  text-align: center;
}

#notifications .assetDocumentState strong {
  margin-bottom: 5px;
  color: var(--notification-ink);
}

#notifications .paginationControls {
  margin: 0 14px 16px;
}

@media (max-width: 1180px) {
  #notifications .notificationStats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  #notifications .notificationToolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #notifications .notificationToolbar .ticketSearch {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 760px) {
  #notifications.notificationsPage {
    gap: 14px;
  }

  #notifications .modulePageHeader {
    display: grid;
    gap: 16px;
    padding: 19px 17px;
    border-radius: 15px;
  }

  #notifications .modulePrimaryAction {
    width: 100%;
  }

  #notifications .notificationStats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px;
  }

  #notifications .notificationStats article {
    min-height: 84px;
    padding: 13px;
  }

  #notifications .notificationToolbar {
    grid-template-columns: 1fr !important;
    gap: 10px;
    padding: 12px;
  }

  #notifications .notificationToolbar .ticketSearch {
    grid-column: auto !important;
  }

  #notifications .panelTitle {
    align-items: flex-start;
    gap: 10px;
    min-height: 60px;
    padding: 14px;
  }

  #notifications .notificationCards,
  #notifications .notificationAssetAlertsList {
    padding: 10px;
  }

  #notifications .notificationCard {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    padding: 12px;
  }

  #notifications .notificationCardIcon {
    width: 40px;
    height: 40px;
  }

  #notifications .notificationCard > :last-child {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 420px) {
  #notifications .notificationStats {
    grid-template-columns: 1fr !important;
  }

  #notifications .notificationStats article {
    min-height: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #notifications .notificationCard,
  #notifications .modulePrimaryAction {
    transition: none;
  }
}
