/* Shared admin/company notification popup, enhanced only when its script loads. */
.notifications-panel[hidden],.notifications-panel [hidden] { display: none !important; }
.notifications-panel { position: fixed; top: 76px; right: max(24px, env(safe-area-inset-right)); z-index: 160; display: flex; flex-direction: column; width: 420px; max-width: calc(100% - 32px); max-height: calc(100dvh - 100px); border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--ink); box-shadow: 0 12px 40px #0b2a4a30; overflow: hidden; }
.notifications-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.notifications-panel-heading > div { min-width: 0; }
.notifications-panel-heading h2 { margin: 0 0 4px; font-size: 20px; line-height: 26px; }
.notifications-panel-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 19px; }
.notifications-panel-mark-all { min-height: 36px; padding: 6px 10px; flex: 0 0 auto; max-width: 164px; font-size: 12px; line-height: 18px; text-align: center; white-space: normal; }
.notifications-panel-mark-all[aria-disabled=true] { opacity: .65; cursor: default; }
.notifications-panel-mark-all[aria-busy=true] { cursor: wait; }
.notifications-panel-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.notifications-panel-feedback { margin: 16px 20px; color: var(--muted); font-size: 14px; line-height: 20px; }
.notifications-panel-feedback:empty { display: none; }
.notifications-panel-feedback.is-error { color: var(--danger); }
.notifications-panel-retry { margin: 0 20px 16px; }
.notifications-panel-list { list-style: none; margin: 0; padding: 0; }
.notifications-panel-row { padding: 14px 20px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; }
.notifications-panel-row:last-child { border-bottom: 0; }
.notifications-panel-row.is-unread { background: var(--info-bg, #edf5fb); border-left-color: var(--primary); }
.notifications-panel-title { margin: 0 0 8px; font-size: 14px; line-height: 20px; font-weight: 600; overflow-wrap: anywhere; }
.notifications-panel-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0; color: var(--muted); font-size: 12px; line-height: 18px; }
.notifications-panel-read-state { font-weight: 600; }
.notifications-panel-row.is-unread .notifications-panel-read-state { color: var(--info, var(--navy)); }
.notifications-panel-open { margin-left: auto; min-height: 36px; padding: 6px 12px; font-size: 13px; }
.notifications-panel-open[aria-disabled=true] { opacity: .65; cursor: wait; }
.notifications-panel-empty { display: flex; gap: 12px; align-items: flex-start; padding: 24px 20px; color: var(--muted); }
.notifications-panel-empty .ui-icon { flex: 0 0 auto; margin-top: 2px; }
.notifications-panel-empty p { margin: 0; font-size: 14px; line-height: 22px; }
.notifications-panel-empty span { font-size: 13px; }
.notifications-panel-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; background: var(--bg); border-top: 1px solid var(--line); flex: 0 0 auto; font-size: 13px; }
.notifications-panel-footer span { color: var(--muted); }
.notifications-panel-footer a { display: inline-flex; align-items: center; min-height: 36px; }
.notifications-panel:focus-visible { outline: 3px solid var(--accent-dark, #14769a); outline-offset: 3px; }
@media (max-width: 575px) {
  .notifications-panel { left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); width: auto; max-width: none; top: 76px; max-height: calc(100dvh - 92px); }
  .notifications-panel-heading,.notifications-panel-footer { padding-left: 16px; padding-right: 16px; }
  .notifications-panel-heading { gap: 8px; }
  .notifications-panel-mark-all { max-width: 130px; }
  .notifications-panel-row { padding: 12px 16px; }
}
@media print { .notifications-panel { display: none !important; } }
