/* V157: compact, actionable notifications and grouped customer follow-up. */
#globalNotificationList .global-notification-main{border:0;background:transparent;text-align:left;min-width:0;display:flex;flex-direction:column;gap:4px;padding:0;color:#334155;cursor:pointer;font:inherit}
#globalNotificationList .global-notification-main:focus-visible{outline:2px solid var(--accent,#00a09d);outline-offset:3px;border-radius:4px}
#globalNotificationList .global-notification-main strong{font-size:13px;color:#0f172a}
#globalNotificationList .global-notification-main span{font-size:12px;line-height:1.4}
#globalNotificationList .global-notification-main small{font-size:11px;color:#64748b}
#globalNotificationList .global-notification-item{padding:12px;gap:9px;border-radius:6px;border:1px solid #e2e8f0;box-shadow:none;grid-template-columns:5px minmax(0,1fr)}
#globalNotificationList .global-notification-actions{grid-column:2;display:flex;flex-direction:row;gap:6px;flex-wrap:wrap;justify-content:flex-start}
#globalNotificationList .global-notification-actions button{border:1px solid #cbd5e1;background:#fff;color:#334155;padding:4px 8px;border-radius:4px;font-size:11px;min-height:28px}
#globalNotificationList .n157-wait-summary{display:flex;align-items:center;gap:12px;width:100%;padding:12px;margin:0 0 10px;text-align:left;background:#fff7ed;border:1px solid #fed7aa;border-radius:6px;color:#0f172a;cursor:pointer}
.n157-wait-summary>strong{font-size:24px;font-variant-numeric:tabular-nums;color:#0f172a}
.n157-wait-summary>span{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:500}
.n157-wait-summary small{color:#64748b;font-weight:400}
#globalNotificationList .n157-wait-summary:hover{background:#ffedd5;border-color:#fdba74}
.n157-wait-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.n157-wait-heading strong{font-size:18px;color:#0f172a}.n157-wait-heading p{font-size:12px;color:#64748b;margin:5px 0 0}
.n157-wait-filters{display:grid;grid-template-columns:minmax(180px,2fr) minmax(160px,1fr) minmax(140px,1fr) auto;align-items:end;gap:12px;background:#fff;border:1px solid #e2e8f0;border-radius:6px;padding:12px;margin-bottom:14px}
.n157-wait-filters label{font-size:12px;font-weight:500;display:flex;flex-direction:column;gap:6px;color:#475569;margin:0}
.n157-wait-filters input,.n157-wait-filters select{width:100%;min-width:0;height:36px;padding:7px 9px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;font:inherit;color:#0f172a}
.n157-wait-table-wrap{border:1px solid #e2e8f0;background:#fff;border-radius:6px;overflow:auto}
.n157-wait-table{width:100%;border-collapse:collapse;font-size:13px;min-width:650px}
.n157-wait-table th{background:#f8fafc;color:#64748b;text-align:left;font-size:11px;font-weight:500;letter-spacing:.03em}
.n157-wait-table td,.n157-wait-table th{padding:10px 12px!important;border-bottom:1px solid #e2e8f0;vertical-align:middle}
.n157-wait-table tr:last-child td{border-bottom:0}.n157-wait-table tr:hover td{background:#f8fafc}
.n157-wait-table strong{display:block;font-size:13px;font-weight:500;color:#0f172a}.n157-wait-table small{display:block;font-size:11px;color:#64748b;margin-top:4px}
.n157-wait-table .n157-number{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.n157-wait-age{color:#b91c1c;background:#fef2f2;border-radius:4px;padding:4px 7px;font-size:12px}
.n157-wait-conversations{display:flex;gap:6px;flex-wrap:wrap}.n157-wait-conversations .btn{font-size:11px;padding:5px 8px;min-height:30px}
.n157-preview{max-width:360px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.n157-wait-pager{display:flex;align-items:center;gap:8px;margin-top:12px}.n157-wait-pager>span{margin-right:auto;font-size:12px;color:#64748b}
#n157WaitingError:not(:empty){color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:6px;padding:10px;margin-bottom:12px}
.n157-payment-alert{width:min(650px,calc(100vw - 24px))!important;max-height:90dvh!important;overflow:auto!important;border-radius:6px!important}
.n157-payment-alert dl{display:grid;grid-template-columns:135px minmax(0,1fr);gap:9px 14px;font-size:13px}.n157-payment-alert dt{color:#64748b}.n157-payment-alert dd{margin:0;color:#0f172a;overflow-wrap:anywhere}
.n157-payment-total{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#f8fafc;border:1px solid #e2e8f0;padding:14px;border-radius:6px}.n157-payment-total strong{font-size:24px;color:#0f172a;font-variant-numeric:tabular-nums}.n157-payment-total span{font-size:12px;color:#475569}
.n157-payment-hint{font-size:12px;color:#475569;background:#fffbeb;padding:10px;border-left:3px solid #f59e0b}
#n157PaymentReceipt img{width:100%;height:auto;max-height:55vh;object-fit:contain}#n157PaymentReceipt iframe{width:100%;height:50vh;border:1px solid #e2e8f0}
@media(max-width:760px){.n157-wait-filters{grid-template-columns:1fr 1fr}.n157-wait-filters label:first-child{grid-column:1/-1}.n157-wait-heading{align-items:flex-start}.n157-wait-heading strong{font-size:16px}.n157-wait-pager .btn{padding:6px 9px}.n157-payment-alert dl{grid-template-columns:110px minmax(0,1fr)}}
/* V187: preserve the last good queue, disclose partial updates and load more explicitly. */
#notificationPopover{display:flex;flex-direction:column}
#globalNotificationList{min-height:0;flex:1 1 auto}
.n187-notification-health{flex:none;margin:10px 12px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:6px;background:#f8fafc;color:#475569;font-size:12px;line-height:1.5;overflow-wrap:anywhere;text-align:left}
.n187-notification-health[data-level="error"]{border-color:#fcd34d;background:#fffbeb;color:#92400e}
#notificationList>.n187-notification-health{margin:0}
.notification-bell[data-sync="error"]::after{content:"";position:absolute;left:4px;bottom:4px;width:7px;height:7px;border-radius:50%;background:#d97706;border:1px solid #fff}
.n187-notification-pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:9px;padding:12px 2px 3px;border-top:1px solid #e2e8f0;margin-top:8px;color:#64748b;font-size:12px}
.n187-notification-pager-actions{display:flex;flex-wrap:wrap;gap:6px}
.n187-notification-pager .btn{font-size:12px;min-height:32px;white-space:nowrap}
#notificationPopover .n187-notification-pager .btn{display:inline-flex;align-items:center;justify-content:center}
.n187-notification-pager .btn:disabled{opacity:.65;cursor:wait}
.n187-notification-pager>small{flex-basis:100%;line-height:1.45;color:#64748b}
#notificationList .notification-item>div:first-child{min-width:0;overflow-wrap:anywhere;display:flex;flex-direction:column;gap:4px}
@media(max-width:480px){.n187-notification-pager>span{flex-basis:100%}.n187-notification-pager-actions{width:100%}.n187-notification-health{padding:8px 10px;margin:8px 10px}}
