/* Notification center and lifecycle history. */
.notification-center { position: relative; }
.notification-button { position: relative; display: grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; color: #475569; cursor: pointer; transition: border-color 150ms ease, background 150ms ease, color 150ms ease; }
.notification-button:hover, .notification-button[aria-expanded="true"] { border-color: #c7d2fe; background: #f5f3ff; color: #4338ca; }
.notification-button:focus-visible { outline: 3px solid rgba(99,102,241,.2); outline-offset: 2px; }
.notification-button > svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notification-badge { position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid #fff; border-radius: 999px; background: #ef4444; color: #fff; font-size: .58rem; font-weight: 750; line-height: 14px; text-align: center; }
.notification-badge[hidden], .notification-panel[hidden] { display: none; }
.notification-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 200; width: min(390px, calc(100vw - 24px)); overflow: hidden; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; box-shadow: 0 18px 45px rgba(15,23,42,.2); }
.notification-panel__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px 12px; border-bottom: 1px solid #eef2f7; }
.notification-panel__header > div { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.notification-panel__header strong { color: #111827; font-size: .94rem; font-weight: 700; }
.notification-panel__header span { color: #94a3b8; font-size: .67rem; }
.notification-panel__bulk-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.notification-panel__header button, .notification-panel__footer button { padding: 0; border: 0; background: transparent; color: #4f46e5; font-size: .69rem; font-weight: 600; cursor: pointer; }
.notification-panel__header button:hover, .notification-panel__footer button:hover { color: #3730a3; text-decoration: underline; }
.notification-list { max-height: min(430px, 60vh); overflow-y: auto; overscroll-behavior: contain; }
.notification-list__empty { margin: 0; padding: 34px 20px; color: #94a3b8; font-size: .78rem; text-align: center; }
.notification-item { position: relative; display: flex; align-items: center; border-bottom: 1px solid #f1f5f9; border-left: 3px solid transparent; background: #fff; }
.notification-item.is-unread { border-left-color: #6366f1; background: #f8f8ff; }
.notification-item__main { display: flex; min-width: 0; flex: 1; align-items: flex-start; gap: 10px; padding: 12px 8px 12px 14px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.notification-item__main:hover .notification-item__copy strong { color: #4338ca; }
.notification-item__type { width: 8px; height: 8px; flex: 0 0 auto; margin-top: 5px; border-radius: 999px; background: #94a3b8; }
.notification-item__type--created { background: #22c55e; }
.notification-item__type--rescheduled { background: #f59e0b; }
.notification-item__type--cancelled { background: #ef4444; }
.notification-item__copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.notification-item__copy strong, .notification-item__copy span, .notification-item__copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-item__copy strong { color: #1f2937; font-size: .85rem; font-weight: 650; }
.notification-item.is-unread .notification-item__copy strong { font-weight: 750; }
.notification-item__copy span { color: #475569; font-size: .78rem; }
.notification-item__copy small { color: #94a3b8; font-size: .7rem; }
.notification-item__actions { display: flex; flex: 0 0 auto; align-items: center; gap: 1px; padding-right: 8px; }
.notification-item__actions button:not(.notification-action--read) { opacity: 0; transition: opacity 120ms ease; }
.notification-item:hover .notification-item__actions button:not(.notification-action--read), .notification-item:focus-within .notification-item__actions button:not(.notification-action--read) { opacity: 1; }
.notification-item__actions button { display: grid; width: 26px; height: 26px; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #64748b; cursor: pointer; }
.notification-item__actions button:hover { background: #eef2ff; color: #4338ca; }
.notification-item__actions button:nth-child(2):hover { background: #fef2f2; color: #dc2626; }
.notification-item__actions .notification-action--confirm { width: auto; padding: 0 6px; color: #dc2626; font-size: .66rem; font-weight: 650; }
.notification-item__actions svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.notification-panel__footer { padding: 10px 16px 12px; background: #fafbfc; text-align: center; }

