.client-history-dialog { width: min(44rem, 94vw); max-height: 88dvh; overflow-y: auto; }
.client-history-header, .client-history-pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.client-history-header { align-items: flex-start; margin-bottom: 18px; }
.client-history-header h2 { color: var(--p); }
.client-history-header p { margin-top: 4px; overflow-wrap: anywhere; }
.client-history-header button { flex-shrink: 0; }
.client-history-filter { max-width: 230px; margin-bottom: 16px; }
.client-history-filter select { margin-top: 5px; }
.client-history-entries { display: grid; gap: 8px; list-style: none; margin: 12px 0; padding: 0; }
.client-history-entry { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; overflow-wrap: anywhere; }
.client-history-kind { display: block; font-size: 12px; color: var(--p); margin-bottom: 4px; }
.client-history-entry time { display: block; }
.client-history-pagination[hidden] { display: none; }
.client-history-pagination button:disabled { opacity: .52; cursor: default; }
@media (max-width: 560px) {
  .client-history-dialog { padding: 16px; }
  .client-history-entry { grid-template-columns: minmax(0, 1fr) auto; }
  .client-history-entry > div { grid-column: 1 / -1; }
}
