/* NuzLabs v6.40.7 — Delivery Reliability, History & Diagnostics */
.delivery-history-section{overflow:hidden}
.delivery-history-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
.delivery-history-summary>div{min-width:0;border:1px solid var(--line,#dbe3ea);border-radius:14px;padding:14px 16px;background:var(--panel,#fff);display:flex;flex-direction:column;gap:3px}
.delivery-history-summary b{font-size:1.55rem;line-height:1;color:var(--text,#12263a)}
.delivery-history-summary span{font-size:.78rem;color:var(--muted,#66788a);font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.delivery-history-summary .pending{border-color:#d6b24c}.delivery-history-summary .issue{border-color:#c85d5d}
.delivery-history-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:10px 0 14px}
.delivery-history-toolbar label{display:grid;gap:5px;font-size:.75rem;font-weight:800;color:var(--muted,#66788a);text-transform:uppercase;letter-spacing:.04em}
.delivery-history-toolbar select{min-width:165px}
.delivery-history-toolbar>span{margin-left:auto;color:var(--muted,#66788a);font-size:.82rem;padding-bottom:10px}
.delivery-history-list{display:grid;gap:10px}
.delivery-history-row{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--line,#dbe3ea);border-radius:14px;padding:14px 16px;background:var(--panel,#fff);min-width:0}
.delivery-history-row.issue{border-color:#c85d5d}.delivery-history-row.pending{border-color:#d6b24c}
.delivery-history-row-main{min-width:0;flex:1}.delivery-history-row-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.delivery-history-channel,.delivery-history-state{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:.67rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;background:var(--soft,#eef3f6);color:var(--text,#173247)}
.delivery-history-channel.push{background:#e9f3ff}.delivery-history-state.complete{background:#e8f6ed;color:#216239}.delivery-history-state.pending{background:#fff5d7;color:#765b08}.delivery-history-state.issue{background:#fdeaea;color:#8b2d2d}.delivery-history-state.suppressed{background:#eef1f4;color:#526170}
.delivery-history-row h3{font-size:1rem;margin:7px 0 3px;color:var(--text,#12263a)}
.delivery-history-row p{margin:0;color:var(--muted,#66788a);font-size:.86rem}
.delivery-history-row-meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:7px;color:var(--muted,#66788a);font-size:.74rem}.delivery-history-row-meta small{font-size:inherit}
.delivery-history-row-action{flex:0 0 auto}.delivery-history-row-action .button{white-space:nowrap}
.delivery-history-empty{border:1px dashed var(--line,#dbe3ea);border-radius:14px;padding:18px;display:grid;gap:4px;color:var(--muted,#66788a)}
.delivery-history-note{margin-top:14px;padding:12px 14px;border-radius:12px;background:var(--soft,#f3f6f8);display:grid;gap:3px;font-size:.82rem;color:var(--muted,#66788a)}.delivery-history-note b{color:var(--text,#12263a)}
.system-admin-delivery-diagnostics{display:grid;gap:14px;margin:18px 0}
.system-admin-delivery-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.system-admin-delivery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.system-admin-push-device-health{grid-column:1/-1}
.system-admin-delivery-card-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:10px}.system-admin-delivery-card-head h3{margin:2px 0 0}
.system-admin-delivery-worker-list,.system-admin-delivery-channel-list{display:grid;gap:8px}
.system-admin-delivery-worker,.system-admin-delivery-channel{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--line,#dbe3ea);min-width:0}.system-admin-delivery-worker:first-child,.system-admin-delivery-channel:first-child{border-top:0}
.system-admin-delivery-worker>div,.system-admin-delivery-channel>div:first-child{display:grid;gap:2px;min-width:0}.system-admin-delivery-worker small,.system-admin-delivery-channel small{color:var(--muted,#66788a)}
.system-admin-delivery-worker>span{border-radius:999px;padding:5px 9px;font-size:.72rem;font-weight:800}.system-admin-delivery-worker.healthy>span{background:#e8f6ed;color:#216239}.system-admin-delivery-worker.attention>span{background:#fdeaea;color:#8b2d2d}
.system-admin-delivery-channel>div:last-child{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end;font-size:.75rem;color:var(--muted,#66788a)}.system-admin-delivery-channel .attention{color:#a93636}
.system-admin-push-device-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:8px 0 10px}.system-admin-push-device-metrics span{padding:10px;border-radius:10px;background:var(--soft,#f3f6f8);display:grid;gap:2px;font-size:.75rem}.system-admin-push-device-metrics b{font-size:1.2rem;color:var(--text,#12263a)}
.system-admin-delivery-empty{color:var(--muted,#66788a);padding:12px 0}
@media(max-width:760px){.delivery-history-summary,.system-admin-delivery-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.delivery-history-row{align-items:flex-start;flex-direction:column}.delivery-history-row-action{width:100%}.delivery-history-row-action .button{width:100%;text-align:center}.delivery-history-toolbar{align-items:stretch}.delivery-history-toolbar label{flex:1 1 150px}.delivery-history-toolbar select{min-width:0;width:100%}.delivery-history-toolbar>span{margin-left:0;padding:0;width:100%}.system-admin-delivery-grid{grid-template-columns:1fr}.system-admin-push-device-health{grid-column:auto}.system-admin-push-device-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.system-admin-delivery-worker,.system-admin-delivery-channel{align-items:flex-start;flex-direction:column}.system-admin-delivery-channel>div:last-child{justify-content:flex-start}}
@media(prefers-color-scheme:dark){.delivery-history-channel.push{background:#15304a}.delivery-history-state.complete,.system-admin-delivery-worker.healthy>span{background:#173d27;color:#a6e1b8}.delivery-history-state.pending{background:#4a3b12;color:#ffe8a0}.delivery-history-state.issue,.system-admin-delivery-worker.attention>span{background:#4b2020;color:#ffc2c2}.delivery-history-state.suppressed{background:#26313c;color:#cbd5df}}
html[data-theme=dark] .delivery-history-channel.push,body.dark .delivery-history-channel.push{background:#15304a}
html[data-theme=dark] .delivery-history-state.complete,body.dark .delivery-history-state.complete,html[data-theme=dark] .system-admin-delivery-worker.healthy>span,body.dark .system-admin-delivery-worker.healthy>span{background:#173d27;color:#a6e1b8}
html[data-theme=dark] .delivery-history-state.pending,body.dark .delivery-history-state.pending{background:#4a3b12;color:#ffe8a0}
html[data-theme=dark] .delivery-history-state.issue,body.dark .delivery-history-state.issue,html[data-theme=dark] .system-admin-delivery-worker.attention>span,body.dark .system-admin-delivery-worker.attention>span{background:#4b2020;color:#ffc2c2}
html[data-theme=dark] .delivery-history-state.suppressed,body.dark .delivery-history-state.suppressed{background:#26313c;color:#cbd5df}
