:root {
    --ink: #17202a;
    --muted: #697386;
    --line: #dce3ea;
    --panel: #ffffff;
    --page: #f6f8fb;
    --accent: #0f766e;
    --accent-strong: #0b5f59;
    --warn: #b45309;
}

body {
    background: var(--page);
    color: var(--ink);
    font-size: 14px;
    letter-spacing: 0;
}

.navbar-brand {
    color: var(--accent-strong);
}

.page-heading h1 {
    font-size: 1.35rem;
    margin: 0;
}

.metric-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.metric,
.panel,
.table-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.metric {
    padding: 1rem;
    min-height: 96px;
}

.metric-label {
    color: var(--muted);
    font-size: .78rem;
    text-transform: uppercase;
}

.metric-value {
    font-size: 1.45rem;
    font-weight: 700;
}

.panel {
    padding: 1rem;
}

.table-panel {
    overflow: hidden;
}

.table-panel .table {
    margin: 0;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-width: 78px;
    justify-content: center;
    border-radius: 999px;
    padding: .25rem .55rem;
    font-size: .78rem;
    font-weight: 600;
    background: #eef2f7;
    color: #334155;
}

.status-sending,
.status-queued,
.status-scheduled {
    background: #e0f2fe;
    color: #075985;
}

.status-delivered,
.status-completed,
.status-subscribed {
    background: #dcfce7;
    color: #166534;
}

.status-failed,
.status-cancelled,
.status-unsubscribed,
.status-blocked {
    background: #fee2e2;
    color: #991b1b;
}

.status-paused,
.status-unknown {
    background: #fef3c7;
    color: #92400e;
}

.icon-btn-text {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    white-space: nowrap;
}

.icon-btn-text svg,
.btn svg {
    width: 16px;
    height: 16px;
}

.message-preview {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.form-control,
.form-select,
.btn {
    border-radius: 6px;
}

.progress {
    height: 12px;
}

.small-table th,
.small-table td {
    font-size: .86rem;
    vertical-align: middle;
}

@media (max-width: 767.98px) {
    main.container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .table-responsive {
        border: 1px solid var(--line);
        border-radius: 8px;
    }
}
