/* Shared report styles */
.report-data-table td {
    padding: 1rem;
}

.report-count-cell {
    width: var(--report-count-cell-width, 140px);
}

.report-count-cell--small {
    --report-count-cell-width: 120px;
}

.report-count-cell--medium {
    --report-count-cell-width: 140px;
}

.report-count-cell--large {
    --report-count-cell-width: 150px;
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(var(--report-summary-columns, 4), minmax(0, 1fr));
    min-height: 82px;
}

.report-summary--four-columns {
    --report-summary-columns: 4;
    --report-summary-tablet-columns: 2;
}

.report-summary--five-columns {
    --report-summary-columns: 5;
    --report-summary-tablet-columns: 3;
}

.report-summary--six-columns {
    --report-summary-columns: 6;
    --report-summary-tablet-columns: 3;
}

.report-summary__item {
    align-items: center;
    border-right: 1px solid var(--bs-border-color);
    display: flex;
    gap: .85rem;
    padding: 1rem 1.25rem;
}

.report-summary__item:last-child {
    border-right: 0;
}

.report-summary__icon {
    align-items: center;
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 42px;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.report-summary__label {
    color: var(--bs-secondary);
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: .25rem;
}

.report-summary__value {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.report-summary__value .badge,
.report-summary__value .font-small-2 {
    font-size: .65rem;
    font-weight: 600;
    padding: .25rem .35rem;
}

.report-summary__value .font-small-2 {
    border-radius: .25rem;
    display: inline-flex;
}

.report-summary__value .text-danger {
    background-color: rgba(var(--bs-danger-rgb), .12);
}

.report-summary__value .text-primary {
    background-color: rgba(var(--bs-primary-rgb), .12);
}

.report-summary__value .text-success {
    background-color: rgba(var(--bs-success-rgb), .12);
}

.report-summary__value .text-warning {
    background-color: rgba(var(--bs-warning-rgb), .12);
}

@media (max-width: 1199.98px) {
    .report-summary {
        grid-template-columns: repeat(var(--report-summary-tablet-columns, 2), minmax(0, 1fr));
    }

    .report-summary--four-columns .report-summary__item:nth-child(2n),
    .report-summary--five-columns .report-summary__item:nth-child(3n),
    .report-summary--six-columns .report-summary__item:nth-child(3n) {
        border-right: 0;
    }
}

@media (max-width: 767.98px) {
    .report-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-summary__item {
        border-bottom: 1px solid var(--bs-border-color);
        border-right: 0;
    }

    .report-summary--four-columns .report-summary__item:nth-last-child(-n + 2),
    .report-summary--six-columns .report-summary__item:nth-last-child(-n + 2),
    .report-summary--five-columns .report-summary__item:last-child {
        border-bottom: 0;
    }
}

/* Source-agent report */
.source-agent-report__source-row {
    background-color: var(--bs-default) !important;
}

.source-agent-report__source-name {
    line-height: 1.2;
    text-decoration: none;
    vertical-align: middle;
}

.source-agent-collapse,
.source-agent-collapse.collapsing {
    transition: none !important;
}

.source-agent-collapse.collapsing {
    height: auto !important;
}

.source-agent-report-table tr.source-agent-report__agent-detail-row > td {
    background-color: var(--bs-light);
}

.source-agent-detail-table {
    width: 100%;
}

.source-agent-detail-table th,
.source-agent-detail-table td {
    background-color: transparent;
    padding: .75rem 1rem;
}

.source-agent-toggle .fa-chevron-down {
    display: none;
}

.source-agent-toggle:not(.collapsed) .fa-chevron-right {
    display: none;
}

.source-agent-toggle:not(.collapsed) .fa-chevron-down {
    display: inline-block;
}

.source-agent-report__agent-name {
    padding-left: 3.25rem !important;
}

.source-agent-report__agent-avatar-placeholder {
    align-items: center;
    background-color: var(--bs-light-secondary);
    border-radius: 50%;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    width: 32px;
}