/* Logs d'activitats */
.lact { --lact-border: #e2e4e7; --lact-head: #f6f7f7; --lact-hl: #fff4cc; margin: 1.5em 0; }
.lact *, .lact *::before, .lact *::after { box-sizing: border-box; }

.lact-summary { margin: 0 0 1em; }

.lact-search { margin: 0 0 1em; }
.lact-search label { display: block; font-weight: 600; margin-bottom: 4px; }
.lact-search input[type="search"] {
	width: 100%;
	max-width: 320px;
	padding: 10px 12px;
	font: inherit;
	text-transform: uppercase;
	border: 1px solid #8c8f94;
	border-radius: 6px;
	background: #fff;
}
.lact-search-row { display: flex; gap: 8px; flex-wrap: wrap; }
.lact-search button {
	padding: 10px 18px;
	font: inherit;
	font-weight: 600;
	border: 0;
	border-radius: 6px;
	background: #1f5f8b;
	color: #fff;
	cursor: pointer;
}
.lact-count { margin: 6px 0 0; font-size: .9em; min-height: 1.4em; }

.lact-wrap { overflow-x: auto; }
.lact-table { width: 100%; border-collapse: collapse; margin: 0; }
.lact-table th, .lact-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--lact-border); }
.lact-table thead th { background: var(--lact-head); font-weight: 700; border-bottom-width: 2px; white-space: nowrap; }
.lact-table tbody tr:hover { background: #fafafa; }
.lact-table tr.lact-match { background: var(--lact-hl); }
.lact-table .lact-call { font-weight: 600; letter-spacing: .02em; }
.lact-empty, .lact-none { padding: 12px 0; }
.lact-activity { margin: 1.5em 0 .5em; }

/* Mòbil: cada contacte es mostra com una fitxa */
@media (max-width: 640px) {
	.lact-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.lact-table, .lact-table tbody, .lact-table tr, .lact-table td { display: block; width: 100%; }
	.lact-table tr { border: 1px solid var(--lact-border); border-radius: 8px; margin-bottom: 10px; padding: 6px 0; }
	.lact-table tr[hidden] { display: none; }
	.lact-table td { border: 0; padding: 4px 14px; display: flex; justify-content: space-between; gap: 12px; }
	.lact-table td::before { content: attr(data-label); font-weight: 600; color: #50575e; }
	.lact-table td.lact-call { font-size: 1.1em; }
	.lact-search input[type="search"] { max-width: none; }
}
.lact-time-note { margin: -.5em 0 1em; font-size: .9em; color: #50575e; }
