/* Phase 6 — notification UI visual alignment (HTML mock tokens + locked behaviour) */

/* Local Inter only — no Google Inter / no external font request. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/Inter/Inter-VariableFont_opsz,wght.ttf") format("truetype");
}

:root {
  --plgz-notif-font-display: "Red Hat Display", -apple-system, "Segoe UI", sans-serif;
  --plgz-notif-font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --plgz-notif-red: #EB1F2A;
  --plgz-notif-red-dark: #C4141E;
  --plgz-notif-red-soft: #FEEDEE;
  --plgz-notif-green: #0FA36B;
  --plgz-notif-green-soft: #E7F6F0;
  --plgz-notif-blue: #2E6BE6;
  --plgz-notif-blue-soft: #EAF0FD;
  --plgz-notif-amber: #D97706;
  --plgz-notif-amber-soft: #FDF3E7;
  --plgz-notif-purple: #6C4AB6;
  --plgz-notif-purple-soft: #F0EBFA;
  --plgz-notif-ink: #1C2333;
  --plgz-notif-ink-2: #5A6478;
  --plgz-notif-ink-3: #98A1B3;
  --plgz-notif-line: #ECEEF3;
  --plgz-notif-bg: #F6F7FA;
  --plgz-notif-card: #FFFFFF;
  --plgz-notif-radius: 16px;
  --plgz-notif-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --plgz-notif-shadow-lg: 0 12px 32px -8px rgba(16, 24, 40, 0.18),
    0 4px 12px -4px rgba(16, 24, 40, 0.08);
  --plgz-notif-panel-width: 380px;
  /* Legacy aliases kept for any residual references */
  --plgz-notif-accent: var(--plgz-notif-red);
  --plgz-notif-muted: var(--plgz-notif-ink-2);
  --plgz-notif-border: var(--plgz-notif-line);
  --plgz-notif-surface: var(--plgz-notif-card);
}

/* ---- Bell + badge ---- */
.plgz-notification-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  color: var(--plgz-notif-ink-2);
  transition: background 0.15s, color 0.15s;
}

.plgz-notification-bell:hover,
.plgz-notification-bell[aria-expanded="true"] {
  background: var(--plgz-notif-red-soft);
  color: var(--plgz-notif-red);
}

.plgz-notification-bell .notify_count,
.notify_count.notification_tag {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  border: 2px solid #fff;
  background: var(--plgz-notif-red);
  color: #fff;
  font-family: var(--plgz-notif-font-body);
  font-size: 11px;
  font-weight: 800;
  line-height: 14px;
  text-align: center;
  display: grid;
  place-items: center;
}

/* ---- Scrim / backdrop (mobile sheet only) ---- */
.plgz-notification-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1045;
  background: rgba(16, 24, 40, 0.45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  transition: opacity 0.28s;
}

@media (min-width: 561px) {
  .plgz-notification-backdrop {
    display: none !important;
  }
}

/* ---- Desktop popover panel (>560px) ---- */
.plgz-notification-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1050;
  width: var(--plgz-notif-panel-width);
  max-width: calc(100vw - 24px);
  background: var(--plgz-notif-card);
  border: 1px solid var(--plgz-notif-line);
  border-radius: 20px;
  box-shadow: var(--plgz-notif-shadow-lg);
  overflow: hidden;
  font-family: var(--plgz-notif-font-body);
  color: var(--plgz-notif-ink);
}

.plgz-notification-panel .plgz-notification-panel-inner,
.plgz-notification-panel .card,
.plgz-notification-panel .card-header,
.plgz-notification-panel .card-body,
.plgz-notification-panel .card-footer {
  background: var(--plgz-notif-card);
  border-color: var(--plgz-notif-line);
}

.plgz-notification-panel .notify-title,
.plgz-notification-panel .card-notify-box h4 {
  font-family: var(--plgz-notif-font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--plgz-notif-ink);
  text-align: left;
}

.plgz-notification-panel .card-notify-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px 8px;
}

.plgz-notification-panel .card-notify-box .notification_count.notification_tag,
.plgz-notification-panel .badge.notification_count {
  position: static;
  float: none;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  border: 0;
  background: var(--plgz-notif-red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 20px;
}

.plgz-notification-panel .read-notify-box {
  padding: 0 18px 8px;
}

.plgz-notification-panel .read-notify-box h6,
.plgz-notification-panel .read-notify-box .notification_count {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--plgz-notif-ink-2);
}

.plgz-notification-panel .notifyList,
.plgz-notification-panel .read-notify-box button {
  font-family: var(--plgz-notif-font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--plgz-notif-red) !important;
  text-decoration: none !important;
  padding: 6px 10px !important;
  border-radius: 8px;
  margin-left: 8px;
}

.plgz-notification-panel .notifyList:hover,
.plgz-notification-panel .read-notify-box button:hover {
  background: var(--plgz-notif-red-soft);
}

.plgz-notification-scroll {
  max-height: min(52vh, 420px);
  overflow-y: auto;
}

.plgz-notification-scroll::-webkit-scrollbar {
  width: 4px;
}

.plgz-notification-scroll::-webkit-scrollbar-thumb {
  background: var(--plgz-notif-line);
  border-radius: 2px;
}

/* Mobile bottom sheet ≤560px (mock authority); full-page cards stay at <768 */
.plgz-notification-bottom-sheet {
  /* Gesture handlers intentionally unused (Phase 6 locked behaviour) */
}

@media (max-width: 560px) {
  .plgz-notification-panel.plgz-notification-bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: auto;
    max-width: none;
    border: none;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -16px 48px rgba(16, 24, 40, 0.25);
    max-height: 82vh;
    padding-bottom: env(safe-area-inset-bottom);
    display: flex;
    flex-direction: column;
    transition: transform 0.34s cubic-bezier(0.32, 0.72, 0.24, 1);
  }

  .plgz-notification-panel.plgz-notification-bottom-sheet::before {
    content: "";
    display: block;
    width: 44px;
    height: 5px;
    border-radius: 3px;
    background: var(--plgz-notif-line);
    margin: 10px auto 2px;
    flex: none;
  }

  .plgz-notification-panel.plgz-notification-bottom-sheet .plgz-notification-scroll {
    flex: 1;
    max-height: none;
    overscroll-behavior: contain;
  }
}

/* ---- Tabs ---- */
.plgz-notification-tabs {
  display: flex;
  gap: 6px;
  padding: 0 18px 12px;
  border-bottom: 0;
}

.plgz-notification-tabs [data-plgz-tab] {
  border: 0;
  background: var(--plgz-notif-bg);
  color: var(--plgz-notif-ink-2);
  font-family: var(--plgz-notif-font-body);
  font-weight: 700;
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.plgz-notification-tabs [data-plgz-tab].is-active,
.plgz-notification-tabs [data-plgz-tab][aria-selected="true"] {
  background: var(--plgz-notif-ink);
  color: #fff;
}

/* ---- Skeleton ---- */
.plgz-notification-skeleton-row {
  height: 64px;
  margin: 10px 18px;
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    var(--plgz-notif-bg) 0%,
    var(--plgz-notif-line) 50%,
    var(--plgz-notif-bg) 100%
  );
  background-size: 200% 100%;
  animation: plgz-notif-shimmer 1.2s linear infinite;
}

@keyframes plgz-notif-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.plgz-notification-empty,
.plgz-notification-error {
  padding: 40px 20px;
  text-align: center;
  color: var(--plgz-notif-ink-3);
  font-family: var(--plgz-notif-font-body);
}

.plgz-notification-empty h6,
.plgz-notification-error h6 {
  font-family: var(--plgz-notif-font-display);
  color: var(--plgz-notif-ink-2);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}

.plgz-notification-empty p,
.plgz-notification-error p {
  font-size: 13px;
}

.plgz-notification-retry {
  margin-top: 12px;
  border-radius: 10px;
  font-weight: 700;
}

/* Decorate FCM-injected bell-panel rows only — never the fixed page banner. */
.plgz-notification-panel .pluggerzz-notif-enable-push,
.plgz-notif-dropdown .pluggerzz-notif-enable-push {
  margin: 12px 18px;
  padding: 14px 16px;
  border: 1px solid #F9D2D6;
  border-radius: var(--plgz-notif-radius);
  background: linear-gradient(120deg, #FFF6F6, #FFEFEF);
}

.plgz-notification-panel .pluggerzz-notif-enable-push > button:first-of-type,
.plgz-notif-dropdown .pluggerzz-notif-enable-push > button:first-of-type {
  width: 100%;
  background: var(--plgz-notif-red);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  font-family: var(--plgz-notif-font-display);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}

.plgz-notification-panel .pluggerzz-notif-enable-push > button:first-of-type:hover,
.plgz-notif-dropdown .pluggerzz-notif-enable-push > button:first-of-type:hover {
  background: var(--plgz-notif-red-dark);
}

.plgz-notification-panel .pluggerzz-notif-enable-push .plgz-notification-push-dismiss,
.plgz-notif-dropdown .pluggerzz-notif-enable-push .plgz-notification-push-dismiss {
  display: block;
  width: 100%;
  margin-top: 6px;
  text-align: center;
  font-family: var(--plgz-notif-font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--plgz-notif-ink-2);
}

.plgz-notification-role-notice {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--plgz-notif-ink-2);
}

.plgz-notification-panel .plgz-notification-role-notice {
  margin: 0 18px 8px;
  padding: 9px 12px !important;
  border-radius: 12px;
  background: var(--plgz-notif-blue-soft);
  color: var(--plgz-notif-blue);
  font-weight: 700;
}

/* ---- Notification rows (panel + mobile cards) ---- */
.plgz-notification-item {
  position: relative;
  padding: 13px 18px !important;
  border-top: 1px solid var(--plgz-notif-line);
  background: var(--plgz-notif-card);
  transition: background 0.15s;
  cursor: pointer;
}

.plgz-notification-item:hover {
  background: var(--plgz-notif-bg);
}

.plgz-notification-item--unread,
.plgz-notification-item.notify-list-bg {
  background: #FFF9F9;
}

.plgz-notification-item--unread:hover,
.plgz-notification-item.notify-list-bg:hover {
  background: var(--plgz-notif-red-soft);
}

.plgz-notification-item .plgz-notification-link,
.plgz-notification-item .plgz-notification-destinationless {
  color: inherit;
  text-decoration: none;
  display: block;
}

.plgz-notification-item h6 {
  font-family: var(--plgz-notif-font-display);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--plgz-notif-ink);
  margin-bottom: 2px !important;
}

.plgz-notification-item .text-secondary,
.plgz-notification-item small {
  font-size: 12.5px;
  color: var(--plgz-notif-ink-2) !important;
  line-height: 1.45;
}

.plgz-notification-item p.m-0 small {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--plgz-notif-ink-3) !important;
}

.plgz-notification-chevron::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--plgz-notif-ink-3);
  border-bottom: 2px solid var(--plgz-notif-ink-3);
  transform: rotate(-45deg);
  margin-top: 8px;
}

.plgz-notification-unread {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--plgz-notif-red);
  margin-left: 6px;
  vertical-align: middle;
}

.plgz-notification-panel .plgz-notification-item--unread::before,
.plgz-notification-panel .plgz-notification-item.notify-list-bg::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--plgz-notif-red);
}

/* View-all footer: light link, not giant primary button (mock authority) */
.plgz-notification-panel .card-footer,
.plgz-notification-panel-inner > .card-footer {
  background: var(--plgz-notif-card) !important;
  border-top: 1px solid var(--plgz-notif-line) !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.plgz-notification-panel .card-footer .view-all-btn,
.plgz-notification-panel-inner .view-all-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 13px;
  font-family: var(--plgz-notif-font-display);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--plgz-notif-red) !important;
  text-decoration: none !important;
  transition: background 0.15s;
}

.plgz-notification-panel .card-footer .view-all-btn:hover,
.plgz-notification-panel-inner .view-all-btn:hover {
  background: var(--plgz-notif-red-soft);
}

@media (max-width: 560px) {
  .plgz-notification-panel .card-footer .view-all-btn,
  .plgz-notification-panel-inner .view-all-btn {
    padding: 15px;
  }
}

/* DataTables sort icon neutralization (full-page table).
   Keep .plgz-notification-table selectors; raise specificity vs shared DT CSS. */
.plgz-notification-table th.sorting:before {
  content: none !important;
}
.plgz-notification-table th.sorting:after {
  content: none !important;
}
.plgz-notification-table th.sorting_asc:before {
  content: none !important;
}
.plgz-notification-table th.sorting_asc:after {
  content: none !important;
}
.plgz-notification-table th.sorting_desc:before {
  content: none !important;
}
.plgz-notification-table th.sorting_desc:after {
  content: none !important;
}
.plgz-notification-table th.sorting_asc_disabled:before {
  content: none !important;
}
.plgz-notification-table th.sorting_asc_disabled:after {
  content: none !important;
}
.plgz-notification-table th.sorting_desc_disabled:before {
  content: none !important;
}
.plgz-notification-table th.sorting_desc_disabled:after {
  content: none !important;
}

table.dataTable.plgz-notification-table thead th.sorting:before,
table.dataTable.plgz-notification-table thead th.sorting:after,
table.dataTable.plgz-notification-table thead th.sorting_asc:before,
table.dataTable.plgz-notification-table thead th.sorting_asc:after,
table.dataTable.plgz-notification-table thead th.sorting_desc:before,
table.dataTable.plgz-notification-table thead th.sorting_desc:after,
table.dataTable.plgz-notification-table thead th.sorting_asc_disabled:before,
table.dataTable.plgz-notification-table thead th.sorting_asc_disabled:after,
table.dataTable.plgz-notification-table thead th.sorting_desc_disabled:before,
table.dataTable.plgz-notification-table thead th.sorting_desc_disabled:after {
  content: none !important;
}

.plgz-notification-table th.sorting,
.plgz-notification-table th.sorting_asc,
.plgz-notification-table th.sorting_desc,
.plgz-notification-table th.sorting_asc_disabled,
.plgz-notification-table th.sorting_desc_disabled,
table.dataTable.plgz-notification-table thead th.sorting,
table.dataTable.plgz-notification-table thead th.sorting_asc,
table.dataTable.plgz-notification-table thead th.sorting_desc,
table.dataTable.plgz-notification-table thead th.sorting_asc_disabled,
table.dataTable.plgz-notification-table thead th.sorting_desc_disabled {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239CA3AF' d='M6 2l3 3H3zM6 10L3 7h6z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.5rem center !important;
}

/* Full-page Notifications (Gate 6) */
.plgz-notification-page-error {
  margin: 12px 16px 0;
  padding: 20px;
  text-align: center;
  border: 1px solid var(--plgz-notif-line);
  border-radius: var(--plgz-notif-radius);
  color: var(--plgz-notif-ink-3);
  font-family: var(--plgz-notif-font-body);
}

.plgz-notification-page-error h6 {
  font-family: var(--plgz-notif-font-display);
  color: var(--plgz-notif-ink-2);
  font-weight: 800;
  margin-bottom: 6px;
}

.plgz-notification-page-error[hidden] {
  display: none !important;
}

.plgz-notification-page-type {
  color: inherit;
  text-decoration: none;
}

.plgz-notification-table a.plgz-notification-link {
  color: inherit;
  text-decoration: none;
}

.plgz-notification-table .plgz-notification-destinationless {
  cursor: pointer;
}

/* Full-page chrome typography — scoped to notification index only */
.plgz-notification-page .fw-bold,
.plgz-notification-page .plgz-notification-page-mark-all {
  font-family: var(--plgz-notif-font-display);
}

.plgz-notification-page-mark-all {
  font-size: 13px;
  font-weight: 800;
  color: var(--plgz-notif-red) !important;
  text-decoration: none !important;
}

.plgz-notification-table thead th {
  font-family: var(--plgz-notif-font-display);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--plgz-notif-ink-3);
  background: var(--plgz-notif-bg);
  border-bottom: 1px solid var(--plgz-notif-line);
  padding: 13px 16px;
}

.plgz-notification-table tbody td {
  font-family: var(--plgz-notif-font-body);
  font-size: 13.5px;
  color: var(--plgz-notif-ink);
  padding: 14px 16px;
  vertical-align: middle;
  border-color: var(--plgz-notif-line);
}

.plgz-notification-table tbody tr.plgz-notification-page-row {
  transition: background 0.12s;
  cursor: pointer;
}

.plgz-notification-table tbody tr.plgz-notification-page-row:hover {
  background: var(--plgz-notif-bg);
}

.plgz-notification-table tbody tr.plgz-notification-page-row.notify-list-bg,
.plgz-notification-table tbody tr.plgz-notification-page-row.plgz-notification-item--unread {
  background: #FFF9F9;
}

.plgz-notification-table tbody tr.plgz-notification-page-row.notify-list-bg td:first-child,
.plgz-notification-table tbody tr.plgz-notification-page-row.plgz-notification-item--unread td:first-child {
  box-shadow: inset 3px 0 0 var(--plgz-notif-red);
}

/* Category icons — size/radius match mock; tones follow mock type palette */
.plgz-notification-icon {
  display: inline-flex;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--plgz-notif-bg);
  position: relative;
  align-items: center;
  justify-content: center;
  color: var(--plgz-notif-ink-2);
}

/* Distinct decorative glyphs via encoding-safe local SVG (aria-hidden on host). */
.plgz-notification-icon::before {
  content: "";
  display: block;
  width: 19px;
  height: 19px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  opacity: 0.95;
}

.plgz-notification-icon[data-plgz-icon="briefcase"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M10 2h4a2 2 0 0 1 2 2v2h4a2 2 0 0 1 2 2v3H2V8a2 2 0 0 1 2-2h4V4a2 2 0 0 1 2-2zm2 2h-2v2h2V4zM2 13h9v2h2v-2h9v7a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-7z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M10 2h4a2 2 0 0 1 2 2v2h4a2 2 0 0 1 2 2v3H2V8a2 2 0 0 1 2-2h4V4a2 2 0 0 1 2-2zm2 2h-2v2h2V4zM2 13h9v2h2v-2h9v7a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-7z'/%3E%3C/svg%3E");
}

.plgz-notification-icon[data-plgz-icon="chat"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 3h16a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H9l-5 4v-4H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm3 5v2h10V8H7zm0 4v2h7v-2H7z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 3h16a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H9l-5 4v-4H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm3 5v2h10V8H7zm0 4v2h7v-2H7z'/%3E%3C/svg%3E");
}

.plgz-notification-icon[data-plgz-icon="calendar"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 2h2v2h6V2h2v2h3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h3V2zm13 8H4v10h16V10zM4 8h16V6H4v2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 2h2v2h6V2h2v2h3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h3V2zm13 8H4v10h16V10zM4 8h16V6H4v2z'/%3E%3C/svg%3E");
}

.plgz-notification-icon[data-plgz-icon="card"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M2 5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5zm2 0v3h16V5H4zm0 7v7h16v-7H4zm2 2h6v2H6v-2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M2 5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5zm2 0v3h16V5H4zm0 7v7h16v-7H4zm2 2h6v2H6v-2z'/%3E%3C/svg%3E");
}

.plgz-notification-icon[data-plgz-icon="life-ring"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20zm0 4a6 6 0 1 0 0 12 6 6 0 0 0 0-12zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7zM4.2 5.6l2.1 2.1 1.4-1.4-2.1-2.1-1.4 1.4zm13.1 0 1.4-1.4-2.1-2.1-1.4 1.4 2.1 2.1zM5.6 19.8l1.4-1.4-2.1-2.1-1.4 1.4 2.1 2.1zm12.8-3.5-2.1 2.1 1.4 1.4 2.1-2.1-1.4-1.4z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20zm0 4a6 6 0 1 0 0 12 6 6 0 0 0 0-12zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7zM4.2 5.6l2.1 2.1 1.4-1.4-2.1-2.1-1.4 1.4zm13.1 0 1.4-1.4-2.1-2.1-1.4 1.4 2.1 2.1zM5.6 19.8l1.4-1.4-2.1-2.1-1.4 1.4 2.1 2.1zm12.8-3.5-2.1 2.1 1.4 1.4 2.1-2.1-1.4-1.4z'/%3E%3C/svg%3E");
}

.plgz-notification-icon[data-plgz-icon="shield"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2 4 5v6c0 5 3.4 9.4 8 11 4.6-1.6 8-6 8-11V5l-8-3zm0 2.2 6 2.25V11c0 3.9-2.5 7.4-6 8.9-3.5-1.5-6-5-6-8.9V6.45l6-2.25z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2 4 5v6c0 5 3.4 9.4 8 11 4.6-1.6 8-6 8-11V5l-8-3zm0 2.2 6 2.25V11c0 3.9-2.5 7.4-6 8.9-3.5-1.5-6-5-6-8.9V6.45l6-2.25z'/%3E%3C/svg%3E");
}

.plgz-notification-icon[data-plgz-icon="bell"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 22a2.5 2.5 0 0 0 2.45-2h-4.9A2.5 2.5 0 0 0 12 22zm8-6V11a8 8 0 1 0-16 0v5l-2 2v1h20v-1l-2-2zm-2 1H6v-6a6 6 0 1 1 12 0v6z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 22a2.5 2.5 0 0 0 2.45-2h-4.9A2.5 2.5 0 0 0 12 22zm8-6V11a8 8 0 1 0-16 0v5l-2 2v1h20v-1l-2-2zm-2 1H6v-6a6 6 0 1 1 12 0v6z'/%3E%3C/svg%3E");
}

/* Mock type palette: Payment=green, Booking=purple, Status=blue, Reminder=amber */
.plgz-notification-icon--jobs {
  color: var(--plgz-notif-blue);
  background: var(--plgz-notif-blue-soft);
}
.plgz-notification-icon--messages {
  color: var(--plgz-notif-purple);
  background: var(--plgz-notif-purple-soft);
}
.plgz-notification-icon--bookings {
  color: var(--plgz-notif-purple);
  background: var(--plgz-notif-purple-soft);
}
.plgz-notification-icon--payments {
  color: var(--plgz-notif-green);
  background: var(--plgz-notif-green-soft);
}
.plgz-notification-icon--support {
  color: var(--plgz-notif-amber);
  background: var(--plgz-notif-amber-soft);
}
.plgz-notification-icon--admin {
  color: var(--plgz-notif-ink-2);
  background: var(--plgz-notif-bg);
}
.plgz-notification-icon--neutral {
  color: var(--plgz-notif-ink-3);
  background: var(--plgz-notif-bg);
}

/* Full-page mobile cards (<768) — separate from panel sheet breakpoint */
.plgz-notification-mobile-feed {
  display: none;
  padding: 0 8px 16px;
  font-family: var(--plgz-notif-font-body);
}

.plgz-notification-mobile-feed .plgz-notification-item {
  border: 1px solid var(--plgz-notif-line);
  border-radius: var(--plgz-notif-radius);
  margin: 8px 4px;
  padding: 14px !important;
  background: var(--plgz-notif-card);
  box-shadow: var(--plgz-notif-shadow-sm);
  border-top: 1px solid var(--plgz-notif-line);
  transition: transform 0.12s, box-shadow 0.12s;
}

.plgz-notification-mobile-feed .plgz-notification-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--plgz-notif-shadow-lg);
  background: var(--plgz-notif-card);
}

.plgz-notification-mobile-feed .plgz-notification-item--unread,
.plgz-notification-mobile-feed .plgz-notification-item.notify-list-bg {
  border-left: 3px solid var(--plgz-notif-red);
  background: var(--plgz-notif-card);
}

.plgz-notification-mobile-feed .plgz-notification-item--unread::before,
.plgz-notification-mobile-feed .plgz-notification-item.notify-list-bg::before {
  display: none;
}

.plgz-notification-mobile-feed .plgz-notification-item--unread h6,
.plgz-notification-mobile-feed .plgz-notification-item.notify-list-bg h6 {
  font-weight: 800;
}

.plgz-notification-mobile-feed .plgz-notification-icon {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
}

@media (max-width: 767.98px) {
  /* Hide desktop table chrome; keep search/info/pagination. Hide length only. */
  .plgz-notification-page-table-wrap table.plgz-notification-table,
  .plgz-notification-page-table-wrap .dataTables_wrapper > .table-responsive {
    display: none !important;
  }

  .plgz-notification-page-table-wrap .dataTables_length {
    display: none !important;
  }

  .plgz-notification-page-table-wrap .dataTables_paginate,
  .plgz-notification-page-table-wrap .dataTables_info {
    display: block !important;
  }

  .plgz-notification-mobile-feed {
    display: block;
  }

  .plgz-notification-mobile-feed[hidden] {
    display: none !important;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .plgz-notification-bell,
  .plgz-notification-backdrop,
  .plgz-notification-panel,
  .plgz-notification-panel.plgz-notification-bottom-sheet,
  .plgz-notification-tabs [data-plgz-tab],
  .plgz-notification-item,
  .plgz-notification-mobile-feed .plgz-notification-item,
  .plgz-notification-table tbody tr.plgz-notification-page-row,
  .plgz-notification-panel .pluggerzz-notif-enable-push > button:first-of-type,
  .plgz-notif-dropdown .pluggerzz-notif-enable-push > button:first-of-type,
  .plgz-notification-panel .card-footer .view-all-btn,
  .plgz-notification-panel-inner .view-all-btn {
    transition: none !important;
    animation: none !important;
  }

  .plgz-notification-skeleton-row {
    animation: none !important;
    background: var(--plgz-notif-line);
  }

  .plgz-notification-mobile-feed .plgz-notification-item:hover {
    transform: none;
  }
}

/* Host-theme font override — backend.css forces Red Hat Display on all body
   descendants via !important. Re-assert Inter (body) / Red Hat Display (chrome)
   only inside notification surfaces, matching the same :not(icon) exclusions.
   Display selectors include the same :not() chain so they out-specify the body rule. */
body .plgz-notification-panel :not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not([class^="ri-"]):not([class*=" ri-"]),
body .plgz-notif-dropdown :not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not([class^="ri-"]):not([class*=" ri-"]),
body .plgz-notification-page :not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not([class^="ri-"]):not([class*=" ri-"]) {
  font-family: var(--plgz-notif-font-body) !important;
}

body .plgz-notification-panel .notify-title:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not([class^="ri-"]):not([class*=" ri-"]),
body .plgz-notification-panel .card-notify-box h4:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not([class^="ri-"]):not([class*=" ri-"]),
body .plgz-notification-panel .plgz-notification-item h6:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not([class^="ri-"]):not([class*=" ri-"]),
body .plgz-notification-panel .notifyList:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not([class^="ri-"]):not([class*=" ri-"]),
body .plgz-notification-panel .view-all-btn:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not([class^="ri-"]):not([class*=" ri-"]),
body .plgz-notification-panel .plgz-notification-empty h6:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not([class^="ri-"]):not([class*=" ri-"]),
body .plgz-notification-panel .plgz-notification-error h6:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not([class^="ri-"]):not([class*=" ri-"]),
body .plgz-notification-panel .plgz-notification-tabs [data-plgz-tab]:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not([class^="ri-"]):not([class*=" ri-"]),
body .plgz-notif-dropdown .notify-title:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not([class^="ri-"]):not([class*=" ri-"]),
body .plgz-notif-dropdown .plgz-notification-item h6:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not([class^="ri-"]):not([class*=" ri-"]),
body .plgz-notif-dropdown .view-all-btn:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not([class^="ri-"]):not([class*=" ri-"]),
body .plgz-notif-dropdown .plgz-notification-tabs [data-plgz-tab]:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not([class^="ri-"]):not([class*=" ri-"]),
body .plgz-notification-page .fw-bold:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not([class^="ri-"]):not([class*=" ri-"]),
body .plgz-notification-page h5:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not([class^="ri-"]):not([class*=" ri-"]),
body .plgz-notification-page .plgz-notification-page-mark-all:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not([class^="ri-"]):not([class*=" ri-"]),
body .plgz-notification-page .plgz-notification-table thead th:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not([class^="ri-"]):not([class*=" ri-"]),
body .plgz-notification-page .plgz-notification-item h6:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not([class^="ri-"]):not([class*=" ri-"]) {
  font-family: var(--plgz-notif-font-display) !important;
}
