/* Campaign Manager dashboard — color coding + compact table styling. */

.cm-kpi-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.cm-team-table,
.cm-attempts-table,
.cm-disposition-table {
    font-size: 0.85rem;
}

.cm-team-table th,
.cm-team-table td,
.cm-attempts-table th,
.cm-attempts-table td {
    padding: 0.35rem 0.5rem;
    white-space: nowrap;
}

.cm-team-table thead th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 1;
}

.cm-summary-row td {
    background-color: rgba(0, 0, 0, 0.04);
    border-top: 2px solid rgba(0, 0, 0, 0.15);
}

/* Tertile / threshold coloring. Backgrounds are tinted so the cell text stays
   legible without forcing contrasting foreground colors. */
.cm-cell-red {
    background-color: rgba(220, 53, 69, 0.16);
    color: #842029;
}
.cm-cell-yellow {
    background-color: rgba(255, 193, 7, 0.16);
    color: #5c4400;
}
.cm-cell-green {
    background-color: rgba(25, 135, 84, 0.16);
    color: #0a3622;
}

/* Disposition pivot columns. */
.cm-disposition-col {
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0.75rem;
}
.cm-disposition-col:last-child {
    border-right: none;
}
.cm-disposition-header {
    font-weight: 600;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 0.25rem;
}

.cm-disposition-table td {
    padding: 0.2rem 0.25rem;
    font-size: 0.8rem;
}

.section-card {
    margin-bottom: 1rem;
}

.section-card .card-header {
    padding: 0.5rem 1rem;
}

@media print {
    .cm-team-table thead th {
        position: static;
    }
    .card {
        break-inside: avoid;
    }
}
