﻿.mi-section-spacing > * + * {
    margin-top: 1rem;
}

/* Phase chip strip (overview) */
.phase-chip-strip {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.phase-chip {
    flex: 1 1 0;
    min-width: 140px;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background: white;
    text-align: center;
}

.phase-chip-count {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.phase-chip-label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.phase-chip--zero {
    opacity: 0.55;
}

.phase-chip--reportingnormally {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #065f46;
}

.phase-chip--late {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.phase-chip--atrisk {
    border-color: #fdba74;
    background: #fff7ed;
    color: #9a3412;
}

.phase-chip--critical {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #991b1b;
}

.phase-chip--stale {
    border-color: #d1d5db;
    background: #f9fafb;
    color: #374151;
}

/* Needs Attention table (overview) */
.needs-attention-table {
    width: 100%;
    border-collapse: collapse;
}

    .needs-attention-table th,
    .needs-attention-table td {
        padding: 0.6rem 0.85rem;
        border-bottom: 1px solid #f3f4f6;
        text-align: left;
        font-size: 0.9rem;
    }

    .needs-attention-table th {
        background: #f9fafb;
        font-weight: 600;
        color: #4b5563;
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .needs-attention-table tr:hover td {
        background: #f9fafb;
    }

    .needs-attention-table a {
        color: #1f2937;
        font-weight: 600;
        text-decoration: none;
    }

        .needs-attention-table a:hover {
            text-decoration: underline;
        }

/* Phase badges (used by Needs Attention table + single-account header) */
.phase-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid;
}

.phase-badge--reportingnormally {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #065f46;
}

.phase-badge--late {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.phase-badge--atrisk {
    border-color: #fdba74;
    background: #fff7ed;
    color: #9a3412;
}

.phase-badge--critical {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #991b1b;
}

.phase-badge--stale {
    border-color: #d1d5db;
    background: #f3f4f6;
    color: #374151;
}

.na-days-cell {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.na-region-cell, .na-last-cell {
    color: #6b7280;
}

/* Single-account header (step 9) */
.single-account-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.single-account-identity {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

    .single-account-identity h2 {
        margin: 0;
        font-size: 1.15rem;
        color: #1f2937;
    }

.single-account-region {
    color: #6b7280;
    font-size: 0.82rem;
}

.single-account-phase {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.single-account-last-received {
    color: #6b7280;
    font-size: 0.82rem;
}

.single-account-back {
    color: #2563eb;
    font-size: 0.85rem;
    text-decoration: none;
    margin-right: auto;
}

    .single-account-back:hover {
        text-decoration: underline;
    }

/* Gap chips (step 9) */
.gap-chip-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
}

.gap-chip {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 0.35rem;
    color: #92400e;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
    transition: background-color 0.15s, border-color 0.15s;
}

    .gap-chip:hover {
        background: #fde68a;
        border-color: #fbbf24;
        text-decoration: none;
    }
