/* ============================================================
   Notification history + send detail — scoped styles
   (fx-nhist- for the list, fx-ndetail- for the detail page)
   ============================================================ */

.fx-nhist-page {
    padding: 1.25rem 1.5rem 2.5rem;
    max-width: 1300px;
    margin: 0 auto;
}

.fx-nhist-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.fx-nhist-kicker {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #2d7bff;
}

.fx-nhist-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2d7bff;
    display: inline-block;
}

.fx-nhist-title-block h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1b1b2f;
    margin: .25rem 0 .15rem;
}

.fx-nhist-title-block h1 em {
    font-style: normal;
    color: #2d7bff;
}

.fx-nhist-title-block p {
    font-size: .85rem;
    color: #6b6b80;
    margin: 0;
}

.fx-nhist-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.fx-nhist-search {
    min-width: 260px;
}

.fx-nhist-card {
    background: #fff;
    border: 1px solid #ececf3;
    border-radius: 16px;
    padding: 1rem 1.1rem;
    box-shadow: 0 10px 30px -22px rgba(20, 20, 60, .35);
}

.fx-nhist-table {
    cursor: pointer;
}

.fx-nhist-row-title {
    font-weight: 600;
    color: #1b1b2f;
}

/* ---- status pills ---- */
.fx-nhist-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .6rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
}

.fx-nhist-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}

.fx-nhist-pill-queued { background: #fff5e0; color: #9a6b1c; }
.fx-nhist-pill-proc   { background: #e6f0ff; color: #2d5bb9; }
.fx-nhist-pill-done   { background: #e3f7ec; color: #1c7c54; }
.fx-nhist-pill-fail   { background: #fdeaea; color: #9a3b3b; }

/* ---- delivery cell ---- */
.fx-nhist-bar {
    height: 8px;
}

.fx-nhist-bar-label {
    font-size: .72rem;
    color: #6b6b80;
    margin-top: .25rem;
}

.fx-nhist-delivery {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    font-size: .75rem;
}

.fx-nhist-stat {
    padding: .2rem .5rem;
    border-radius: 6px;
    font-weight: 600;
}

.fx-nhist-stat-sent    { background: #e3f7ec; color: #1c7c54; }
.fx-nhist-stat-failed  { background: #fdeaea; color: #9a3b3b; }
.fx-nhist-stat-skipped { background: #f1f1f6; color: #6b6b80; }

.fx-nhist-empty {
    text-align: center;
    padding: 36px 12px;
    color: #6b6b80;
}

.fx-nhist-empty .mud-icon-root {
    font-size: 2.4rem;
    color: #c8c8d6;
}

.fx-nhist-empty-title {
    font-weight: 700;
    color: #1b1b2f;
    margin: .4rem 0 .2rem;
}

.fx-nhist-meta {
    margin-top: 1rem;
    font-size: .82rem;
    color: #6b6b80;
    display: grid;
    gap: .25rem;
}

/* ============================================================
   Detail page
   ============================================================ */

.fx-ndetail-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1rem;
    align-items: start;
}

@media (max-width: 900px) {
    .fx-ndetail-grid { grid-template-columns: 1fr; }
}

.fx-ndetail-status-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1rem;
}

.fx-ndetail-progress {
    margin-bottom: 1.1rem;
}

.fx-ndetail-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .6rem;
}

.fx-ndetail-stat {
    border-radius: 12px;
    padding: .7rem;
    text-align: center;
    font-size: .75rem;
    color: #6b6b80;
}

.fx-ndetail-num {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1b1b2f;
}

.fx-ndetail-stat-targeted { background: #f1f4ff; }
.fx-ndetail-stat-sent     { background: #e3f7ec; }
.fx-ndetail-stat-failed   { background: #fdeaea; }
.fx-ndetail-stat-skipped  { background: #f1f1f6; }

.fx-ndetail-body {
    font-size: .9rem;
    color: #3a3a4d;
    white-space: pre-wrap;
    line-height: 1.5;
}

.fx-ndetail-image {
    margin-top: .9rem;
    width: 100%;
    border-radius: 12px;
    border: 1px solid #ececf3;
}
