/* ---------------------------------------------------------------------------
 *  Calls page (QA #344, design calls.php). Our list-page.css differs from the
 *  13 Nov design's, so only the design rules it lacks are added here, scoped
 *  to the Calls list (.lp--calls). Source: design list-page.css:1517-1539.
 *  TNE: the Tasks list (.lp--tasks) shares the design's preview-icon and
 *  no-match rules, which the design applies to every list.
 * ------------------------------------------------------------------------- */

/* activity lists: HubSpot's small round preview icon beside the name, shown on row hover */
.lp--calls .lp-name__preview.lp-name__preview--icon,
.lp--tasks .lp-name__preview.lp-name__preview--icon { width: 26px; height: 26px; margin-left: 6px; padding: 0; justify-content: center; border-radius: 50%; color: var(--text-muted); }
.lp--calls .lp-name__preview--icon .lp-i,
.lp--tasks .lp-name__preview--icon .lp-i { width: 15px; height: 15px; }
.lp--calls .lp-name__preview--icon:hover,
.lp--tasks .lp-name__preview--icon:hover { color: var(--text); }
.lp--calls .lp-name:has(.lp-name__preview--icon) .lp-name__link,
.lp--tasks .lp-name:has(.lp-name__preview--icon) .lp-name__link { flex: 0 1 auto; }

/* empty result (HubSpot "No Calls match the current filters.") */
.lp--calls .lp-table.is-empty thead { display: none; }
.lp--calls .lp-table.is-empty .lp-td--empty { border: 0; }
.lp--calls .lp-empty--nomatch,
.lp--tasks .lp-empty--nomatch { flex-direction: row; justify-content: center; align-items: center; gap: 44px; min-height: 360px; padding: 80px 24px; text-align: left; }
.lp--calls .lp-empty__art,
.lp--tasks .lp-empty__art { flex: 0 0 auto; width: 170px; height: 150px; }
.lp--calls .lp-empty__txt,
.lp--tasks .lp-empty__txt { max-width: 560px; }
.lp--calls .lp-empty--nomatch strong,
.lp--tasks .lp-empty--nomatch strong { display: block; margin-bottom: 12px; color: var(--text); font-size: 22px; font-weight: 700; }
.lp--calls .lp-empty--nomatch p,
.lp--tasks .lp-empty--nomatch p { margin: 0; color: var(--text-muted); font-size: 16px; line-height: 1.6; }
@media (max-width: 640px) {
    .lp--calls .lp-empty--nomatch,
    .lp--tasks .lp-empty--nomatch { flex-direction: column; gap: 16px; padding: 40px 16px; text-align: center; }
    .lp--calls .lp-empty__art,
    .lp--tasks .lp-empty__art { width: 88px; height: 88px; }
}

/* Not in the design: controls with no backend yet look and say so ("coming soon"). */
.lp--calls [aria-disabled="true"], .lp--calls button:disabled { cursor: not-allowed; }
.lp--calls .lp-tab.is-soon .lp-tab__btn { opacity: .55; }
.lp--calls .lp-chip.is-soon .lp-chip__btn { opacity: .55; }

/* CGL7 (not in the design): the Call recording column's player, kept to the row's height. */
.lp--calls .lp-audio { display: block; width: 220px; max-width: 100%; height: 28px; }
