/* ═══════════════════════════════════════════════════════════════════
   Activity Overview — Card styles
   Scope: .aoc-* prefix to avoid collision with other card views.
   The action buttons (.slc-split-btn-group, .slc-action-btn, etc.)
   are reused from salesLeadStageCards.css which is globally available.
═══════════════════════════════════════════════════════════════════ */

/* ── CardViewMixin outer wrapper ──────────────────────────────── */
.aoc-card-container {
    padding: 4px 6px;
}

.aoc-card-container .card {
    height: auto !important;
    overflow: visible !important;
    margin-bottom: 0 !important;
}
/* ── Main card ────────────────────────────────────────────────── */
.aoc-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e2e6ea;
    border-left: 4px solid #4a90d9;
    border-radius: 6px;
    padding: 11px 14px;
    gap: 14px;
    cursor: default;
    transition: box-shadow 0.15s ease, border-left-color 0.15s ease;
}

.aoc-card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-left-color: #2167b8;
}

/* ── Left: icon column (click → opens activity dialog) ────────── */
.aoc-icon-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2px;
    flex-shrink: 0;
    user-select: none;
}

.aoc-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #eaf2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a90d9;
    font-size: 15px;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.aoc-icon-col:hover .aoc-icon-circle {
    background: #4a90d9;
    color: #fff;
}

/* ── Centre: body ─────────────────────────────────────────────── */
.aoc-body {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.aoc-subject {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* ── Meta row: company link · activity type ──────────────────── */
.aoc-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    flex-wrap: wrap;
}

.aoc-company-link {
    color: #2167b8;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.12s;
}

.aoc-company-link:hover {
    color: #184e90;
    text-decoration: underline;
}

.aoc-type {
    color: #888;
    font-style: italic;
    font-size: 12px;
}

.aoc-sep {
    color: #ccc;
    font-size: 11px;
}

/* ── "Logged by" row ─────────────────────────────────────────── */
.aoc-logged-by {
    font-size: 12px;
    color: #999;
    line-height: 1.3;
}

/* ── Stage-move badge ────────────────────────────────────────── */
.aoc-stage-move {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f5ff;
    border: 1px solid #b8cef5;
    border-radius: 4px;
    padding: 3px 9px;
    font-size: 12px;
    color: #3a5fa0;
    width: fit-content;
    margin-top: 1px;
}

.aoc-stage-move i {
    color: #5b85cc;
    font-size: 11px;
}

/* ── Description excerpt (max 2 lines) ───────────────────────── */
.aoc-description {
    font-size: 12px;
    color: #666;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 1px;
}

/* ── Footer: duration · outcome ──────────────────────────────── */
.aoc-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.aoc-duration,
.aoc-outcome {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* ── Right column: date + actions ────────────────────────────── */
.aoc-right-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    flex-shrink: 0;
    min-width: 95px;
    gap: 8px;
}

.aoc-date {
    font-size: 12px;
    font-weight: 500;
    color: #999;
    white-space: nowrap;
}

.aoc-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

/* ── Responsive: collapse right col to bottom on small screens ─ */
@media (max-width: 600px) {
    .aoc-card {
        flex-wrap: wrap;
    }

    .aoc-right-col {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-width: 0;
        border-top: 1px solid #f0f0f0;
        padding-top: 8px;
        margin-top: 4px;
    }
}
