/* AC7 CRM — Smart Notifications Center (نظام التنبيهات الذكية) */

/* Bell Trigger Button in Header */
.topbar-right .ac7-unified-bell {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 42px;
  min-width: 62px;
  padding: 0 12px;
  background: linear-gradient(
    145deg,
    rgba(55, 125, 234, .22),
    rgba(76, 123, 207, .08)
  );
  border: 1px solid rgba(92, 154, 244, .36);
  border-radius: 13px;
  cursor: pointer;
  color: inherit;
  box-shadow: 0 4px 16px rgba(2, 24, 63, .12);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
  box-sizing: border-box;
}

.ac7-unified-bell:hover {
  transform: translateY(-1px);
  border-color: #649efa;
  background: linear-gradient(
    145deg,
    rgba(55, 125, 234, .32),
    rgba(76, 123, 207, .16)
  );
}

.ac7-bell-symbol {
  font-size: 19px;
  line-height: 1;
}

.ac7-unified-count {
  display: inline-grid;
  place-items: center;
  height: 22px;
  min-width: 22px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: #ec475e;
  color: white;
  box-shadow: 0 2px 6px rgba(236, 71, 94, .45);
  box-sizing: border-box;
}

.ac7-unified-count.is-empty {
  background: #62748e;
  box-shadow: none;
  opacity: .75;
}

/* Popover Modal Container */
.ac7-notification-popover {
  position: fixed;
  z-index: 100010;
  width: min(560px, calc(100vw - 20px));
  max-height: min(86vh, 740px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(135, 160, 202, .32);
  background: var(--ac7-calendar-base, #121d33);
  color: var(--ac7-calendar-text, #edf2fc);
  box-shadow: 0 24px 80px rgba(0, 8, 26, .52);
  direction: rtl;
  font-family: inherit;
  box-sizing: border-box;
}

.ac7-notification-popover *,
.ac7-notification-popover *::before,
.ac7-notification-popover *::after {
  box-sizing: border-box;
}

/* Header */
.ac7-notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 18px;
  background: linear-gradient(125deg, #153255, #1259ab);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  flex-shrink: 0;
}

.ac7-notif-head > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ac7-notif-head strong {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -.2px;
}

.ac7-notif-head span {
  font-size: 11.5px;
  color: #d2e4ff;
  opacity: .9;
}

.ac7-notif-close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 9px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .12s ease;
  flex-shrink: 0;
}

.ac7-notif-close:hover {
  background: rgba(255, 255, 255, .28);
}

/* Admin Staff Filter */
.ac7-notif-staff-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(85, 145, 235, .08);
  border-bottom: 1px solid var(--ac7-calendar-line, #2a3c5a);
  font-size: 12px;
  flex-shrink: 0;
}

.ac7-notif-staff-filter label {
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.ac7-notif-staff-filter select {
  flex: 1;
  min-width: 0;
  background: var(--ac7-calendar-surface, #192742);
  color: inherit;
  border: 1px solid rgba(135, 160, 202, .3);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}

/* Category Filter Tabs Grid (Zero Horizontal Scrollbar) */
.ac7-notif-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--ac7-calendar-line, #283a58);
  background: rgba(0, 0, 0, .06);
  flex-shrink: 0;
  overflow: hidden;
}

.ac7-notif-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(135, 160, 202, .15);
  color: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  width: 100%;
  opacity: .85;
  transition: all .14s ease;
}

.ac7-notif-tab span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ac7-notif-tab:hover {
  opacity: 1;
  background: rgba(92, 154, 244, .12);
  border-color: rgba(92, 154, 244, .3);
}

.ac7-notif-tab.is-active {
  opacity: 1;
  background: linear-gradient(135deg, rgba(37, 99, 235, .35), rgba(59, 130, 246, .2));
  border-color: rgba(96, 165, 250, .5);
  color: #60a5fa;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .2);
}

.ac7-tab-count {
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  flex-shrink: 0;
  min-width: 18px;
  text-align: center;
}

.ac7-notif-tab.is-active .ac7-tab-count {
  background: #2563eb;
  color: #fff;
}

/* Toolbar */
.ac7-notif-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-bottom: 1px solid var(--ac7-calendar-line, #283a58);
  font-size: 12px;
  background: rgba(0, 0, 0, .03);
  flex-shrink: 0;
}

.ac7-notif-unread-status {
  min-width: 0;
  flex: 1;
}

.ac7-unread-pill {
  font-weight: 700;
  color: #94a3b8;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.ac7-unread-pill.has-unread {
  color: #f87171;
}

.ac7-notif-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ac7-toolbar-btn {
  background: none;
  border: 0;
  color: #60a5fa;
  font-size: 11.5px;
  font-weight: 750;
  cursor: pointer;
  padding: 4px 7px;
  border-radius: 6px;
  transition: background .12s ease;
  white-space: nowrap;
}

.ac7-toolbar-btn:hover {
  background: rgba(96, 165, 250, .14);
}

/* Scroll Area & List — THE ONLY VERTICAL SCROLL AREA */
.ac7-notif-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 140px;
  max-height: 480px;
  padding: 10px 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(96, 165, 250, .35) transparent;
}

.ac7-notif-scroll::-webkit-scrollbar {
  width: 6px;
}

.ac7-notif-scroll::-webkit-scrollbar-thumb {
  background: rgba(96, 165, 250, .35);
  border-radius: 999px;
}

.ac7-notif-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* Alert Card */
.ac7-notif-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 13px;
  background: var(--ac7-calendar-surface, #18253d);
  border: 1px solid rgba(135, 160, 202, .22);
  border-right: 4px solid #64748b;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.ac7-notif-card:hover {
  background: rgba(85, 145, 235, .12);
  border-color: rgba(135, 160, 202, .38);
}

/* Unread vs Read Visual State */
.ac7-notif-card.is-unread {
  border-right-width: 5px;
  background: linear-gradient(90deg, var(--ac7-calendar-surface, #18253d), rgba(59, 130, 246, .08));
}

.ac7-notif-card.is-read {
  opacity: .82;
  filter: saturate(90%);
}

.ac7-notif-unread-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #3b82f6;
  box-shadow: 0 0 6px rgba(59, 130, 246, .8);
  flex-shrink: 0;
}

.ac7-notif-read-indicator {
  font-size: 11px;
  color: #10b981;
  font-weight: 700;
  white-space: nowrap;
}

/* Category Accent Borders */
.ac7-notif-card.cat-today {
  border-right-color: #3b82f6;
}
.ac7-notif-card.cat-overdue {
  border-right-color: #ef4444;
}
.ac7-notif-card.cat-meetings {
  border-right-color: #8b5cf6;
}
.ac7-notif-card.cat-uncontacted {
  border-right-color: #f59e0b;
}
.ac7-notif-card.cat-personal {
  border-right-color: #ec4899;
}

/* Card Header */
.ac7-notif-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}

.ac7-notif-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1;
}

.ac7-notif-cat-badge {
  font-size: 11px;
  font-weight: 800;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.ac7-notif-card-time {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  font-family: inherit;
  flex-shrink: 0;
}

/* Latency & Status Pills */
.ac7-notif-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.pill-danger {
  background: rgba(239, 68, 68, .2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, .35);
}

.pill-warning {
  background: rgba(245, 158, 11, .2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, .35);
}

.pill-primary {
  background: rgba(59, 130, 246, .2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, .35);
}

.pill-meeting {
  background: rgba(139, 92, 246, .2);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, .35);
}

.pill-purple {
  background: rgba(236, 72, 153, .2);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, .35);
}

.pill-neutral {
  background: rgba(100, 116, 139, .2);
  color: #cbd5e1;
  border: 1px solid rgba(100, 116, 139, .35);
}

@keyframes ac7-pulse-animation {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, .6); }
  70% { transform: scale(1.02); box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.pill-pulse {
  animation: ac7-pulse-animation 2s infinite ease-in-out;
}

/* Card Body */
.ac7-notif-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.ac7-notif-company-name {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.35;
  word-break: break-word;
}

.ac7-notif-gov {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  margin-right: 6px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.ac7-notif-contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 1px;
}

.ac7-notif-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #60a5fa;
  text-decoration: none;
  font-weight: 700;
  direction: ltr;
  unicode-bidi: embed;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(96, 165, 250, .08);
  transition: all .14s ease;
}

.ac7-notif-phone-link:hover {
  color: #93c5fd;
  background: rgba(96, 165, 250, .18);
  text-decoration: none;
}

.ac7-notif-item-title {
  margin: 2px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #e2e8f0;
  word-break: break-word;
}

.ac7-notif-item-title b {
  font-weight: 700;
}

.ac7-notif-item-title span {
  opacity: .85;
}

/* Metadata Row (Assignee & Last Action) */
.ac7-notif-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding-top: 2px;
}

.ac7-notif-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  white-space: nowrap;
  max-width: 100%;
}

.ac7-notif-meta-assignee {
  color: hsl(var(--staff-hue, 210), 85%, 75%);
  border-color: hsla(var(--staff-hue, 210), 70%, 50%, .3);
  background: hsla(var(--staff-hue, 210), 70%, 50%, .1);
}

.ac7-notif-meta-last-action {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, .25);
  background: rgba(148, 163, 184, .08);
}

/* Card Footer & Action Buttons */
.ac7-notif-card-footer {
  width: 100%;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(135, 160, 202, .14);
}

.ac7-notif-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}

/* Buttons */
.ac7-btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  border: 1px solid #3b82f6;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(29, 78, 216, .3);
  transition: transform .12s ease, background .12s ease;
  flex-shrink: 0;
}

.ac7-btn-action:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.ac7-btn-toggle-read {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
  color: inherit;
  border: 1px solid rgba(135, 160, 202, .25);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s ease, border-color .12s ease;
  flex-shrink: 0;
}

.ac7-btn-toggle-read:hover {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(135, 160, 202, .4);
}

.ac7-snooze-wrapper {
  position: relative;
  flex-shrink: 0;
}

.ac7-btn-snooze {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
  color: inherit;
  border: 1px solid rgba(135, 160, 202, .25);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s ease, border-color .12s ease;
}

.ac7-btn-snooze:hover {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(135, 160, 202, .4);
}

/* Snooze Popup Menu */
.ac7-snooze-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  min-width: 170px;
  padding: 6px;
  background: var(--ac7-calendar-base, #0f172a);
  border: 1px solid rgba(135, 160, 202, .4);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  z-index: 100020;
  display: flex;
  flex-direction: column;
  gap: 3px;
  animation: ac7-fade-in .12s ease;
}

@keyframes ac7-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.ac7-snooze-menu-head {
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  border-bottom: 1px solid rgba(135, 160, 202, .18);
  margin-bottom: 2px;
}

.ac7-snooze-menu button {
  padding: 6px 10px;
  text-align: right;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .12s ease;
}

.ac7-snooze-menu button:hover {
  background: rgba(59, 130, 246, .22);
  color: #60a5fa;
}

/* Empty State */
.ac7-notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 42px 16px;
  text-align: center;
  color: #94a3b8;
}

.ac7-empty-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.ac7-notif-empty p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #cbd5e1;
}

.ac7-notif-empty small {
  margin-top: 4px;
  font-size: 12px;
}

/* Loading & Error States */
.ac7-notif-loading,
.ac7-notif-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 45px 16px;
  gap: 12px;
  text-align: center;
}

.ac7-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(59, 130, 246, .2);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: ac7-spin .8s linear infinite;
}

@keyframes ac7-spin {
  to { transform: rotate(360deg); }
}

/* Footer */
.ac7-notif-footer {
  padding: 9px 16px;
  border-top: 1px solid var(--ac7-calendar-line, #283a58);
  font-size: 11px;
  color: #94a3b8;
  background: rgba(0, 0, 0, .05);
  line-height: 1.4;
  flex-shrink: 0;
}

/* Toast */
.ac7-notif-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100030;
  padding: 10px 18px;
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #3b82f6;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
  font-size: 13px;
  font-weight: 750;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}

.ac7-notif-toast.is-hidden {
  opacity: 0;
  transform: translate(-50%, 10px);
}

/* Light Theme Overrides */
body.theme-light .ac7-notification-popover,
html.theme-light .ac7-notification-popover,
[data-theme="light"] .ac7-notification-popover {
  --ac7-calendar-base: #ffffff;
  --ac7-calendar-text: #0f172a;
  --ac7-calendar-surface: #f8fafc;
  --ac7-calendar-line: #e2e8f0;
  box-shadow: 0 20px 65px rgba(15, 23, 42, .18);
  border-color: #cbd5e1;
}

body.theme-light .ac7-notif-head,
html.theme-light .ac7-notif-head,
[data-theme="light"] .ac7-notif-head {
  background: linear-gradient(125deg, #1d4ed8, #2563eb);
}

body.theme-light .ac7-notif-company-name,
html.theme-light .ac7-notif-company-name,
[data-theme="light"] .ac7-notif-company-name {
  color: #0f172a;
}

body.theme-light .ac7-notif-gov,
html.theme-light .ac7-notif-gov,
[data-theme="light"] .ac7-notif-gov {
  color: #64748b;
}

body.theme-light .ac7-notif-item-title,
html.theme-light .ac7-notif-item-title,
[data-theme="light"] .ac7-notif-item-title {
  color: #334155;
}

body.theme-light .ac7-notif-card,
html.theme-light .ac7-notif-card,
[data-theme="light"] .ac7-notif-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}

body.theme-light .ac7-notif-card:hover,
html.theme-light .ac7-notif-card:hover,
[data-theme="light"] .ac7-notif-card:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

body.theme-light .ac7-notif-card.is-unread,
html.theme-light .ac7-notif-card.is-unread,
[data-theme="light"] .ac7-notif-card.is-unread {
  background: linear-gradient(90deg, #ffffff, rgba(59, 130, 246, .05));
  border-color: #bfdbfe;
}

body.theme-light .ac7-notif-tab,
html.theme-light .ac7-notif-tab,
[data-theme="light"] .ac7-notif-tab {
  background: rgba(15, 23, 42, .04);
  border-color: rgba(15, 23, 42, .1);
}

body.theme-light .ac7-notif-tab:hover,
html.theme-light .ac7-notif-tab:hover,
[data-theme="light"] .ac7-notif-tab:hover {
  background: rgba(37, 99, 235, .08);
  border-color: rgba(37, 99, 235, .25);
}

body.theme-light .ac7-notif-tab.is-active,
html.theme-light .ac7-notif-tab.is-active,
[data-theme="light"] .ac7-notif-tab.is-active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  box-shadow: 0 2px 6px rgba(37, 99, 235, .15);
}

body.theme-light .ac7-tab-count,
html.theme-light .ac7-tab-count,
[data-theme="light"] .ac7-tab-count {
  background: rgba(15, 23, 42, .08);
  color: #334155;
}

body.theme-light .ac7-notif-tab.is-active .ac7-tab-count,
html.theme-light .ac7-notif-tab.is-active .ac7-tab-count,
[data-theme="light"] .ac7-notif-tab.is-active .ac7-tab-count {
  background: #2563eb;
  color: #fff;
}

body.theme-light .ac7-btn-toggle-read,
body.theme-light .ac7-btn-snooze,
html.theme-light .ac7-btn-toggle-read,
html.theme-light .ac7-btn-snooze,
[data-theme="light"] .ac7-btn-toggle-read,
[data-theme="light"] .ac7-btn-snooze {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

body.theme-light .ac7-btn-toggle-read:hover,
body.theme-light .ac7-btn-snooze:hover,
html.theme-light .ac7-btn-toggle-read:hover,
html.theme-light .ac7-btn-snooze:hover,
[data-theme="light"] .ac7-btn-toggle-read:hover,
[data-theme="light"] .ac7-btn-snooze:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

body.theme-light .ac7-notif-meta-badge,
html.theme-light .ac7-notif-meta-badge,
[data-theme="light"] .ac7-notif-meta-badge {
  background: rgba(15, 23, 42, .04);
  border-color: rgba(15, 23, 42, .1);
}

body.theme-light .ac7-notif-meta-assignee,
html.theme-light .ac7-notif-meta-assignee,
[data-theme="light"] .ac7-notif-meta-assignee {
  color: hsl(var(--staff-hue, 210), 80%, 35%);
  border-color: hsla(var(--staff-hue, 210), 70%, 45%, .35);
  background: hsla(var(--staff-hue, 210), 70%, 50%, .08);
}

body.theme-light .ac7-notif-meta-last-action,
html.theme-light .ac7-notif-meta-last-action,
[data-theme="light"] .ac7-notif-meta-last-action {
  color: #475569;
  border-color: #cbd5e1;
  background: #f1f5f9;
}

body.theme-light .ac7-snooze-menu,
html.theme-light .ac7-snooze-menu,
[data-theme="light"] .ac7-snooze-menu {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .15);
}

body.theme-light .ac7-snooze-menu-head,
html.theme-light .ac7-snooze-menu-head,
[data-theme="light"] .ac7-snooze-menu-head {
  color: #64748b;
  border-color: #e2e8f0;
}

body.theme-light .ac7-snooze-menu button:hover,
html.theme-light .ac7-snooze-menu button:hover,
[data-theme="light"] .ac7-snooze-menu button:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

/* Tablet & Mobile Responsive */
@media (max-width: 600px) {
  .ac7-notification-popover {
    width: calc(100vw - 16px) !important;
    left: 8px !important;
    right: 8px !important;
    max-height: 88vh;
    border-radius: 14px;
  }
  .ac7-notif-head {
    padding: 11px 14px;
  }
  .ac7-notif-card {
    padding: 10px 12px;
  }
}

/* Small Screens / Mobile View (375px - 480px) */
@media (max-width: 480px) {
  .ac7-notif-tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    padding: 6px 8px;
  }

  .ac7-notif-tab {
    padding: 5px 6px;
    font-size: 11px;
  }

  .ac7-notif-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
  }

  .ac7-btn-action {
    grid-column: 1 / -1;
    width: 100%;
    padding: 7px 12px;
    font-size: 12.5px;
  }

  .ac7-btn-toggle-read {
    width: 100%;
    padding: 6px 6px;
    font-size: 11px;
  }

  .ac7-snooze-wrapper {
    width: 100%;
  }

  .ac7-btn-snooze {
    width: 100%;
    padding: 6px 6px;
    font-size: 11px;
  }

  .ac7-snooze-menu {
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
  }
}
