.crm-directory .list-title { align-items: center; }
.crm-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 14px; margin: 12px 0 18px; }
.crm-filters .field { flex: 1 1 125px; margin: 0; min-width: 0; font-size: 13px; }
.crm-filters .field:first-child { flex: 2 1 185px; }
.crm-table-wrap { overflow-x: auto; }
.crm-table { font-variant-numeric: tabular-nums; }
.crm-table td, .crm-table th { vertical-align: middle; padding: 12px 8px; }
.crm-table thead th { font-weight: 600; white-space: nowrap; background: var(--bg); }
.crm-table tbody th { text-align: left; min-width: 110px; max-width: 260px; }
.crm-table small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.crm-table .crm-plan-cell { max-width: 200px; overflow-wrap: anywhere; }
.crm-table td:last-child { white-space: nowrap; }
.crm-directory .crm-name { display: inline-block; padding: 2px 0; border: none; background: transparent; text-align: left; font-size: 15px; line-height: 1.45; color: var(--ink); white-space: normal; overflow-wrap: anywhere; }
.crm-directory .crm-name:hover { color: var(--purple); text-decoration: underline; }
.crm-due { display: inline-block; font-size: 13px; white-space: nowrap; }
.crm-due-overdue { color: #9d3330; font-weight: 650; }
.crm-due-today { color: #945516; font-weight: 650; }
.crm-due-closed, .crm-due-unscheduled { color: var(--muted); }
.crm-pager, .crm-pager > div, .crm-detail-top, .crm-event-heading { display: flex; align-items: center; gap: 9px; }
.crm-pager, .crm-event-heading { justify-content: space-between; }
.crm-pager { padding-top: 12px; color: var(--muted); font-size: 13px; }
.crm-sr { position: absolute; height: 1px; width: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.crm-detail { min-width: 0; }
.crm-bound { font-weight: 650; padding: 8px 0; overflow-wrap: anywhere; }
.crm-detail h3 { margin-top: 22px; }
.crm-detail h3 small, .crm-meta, .crm-detail-top small, .crm-event-heading time { color: var(--muted); font-size: 12px; font-weight: 400; }
.crm-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 15px 0; }
.crm-facts > div:last-child { grid-column: 1 / -1; }
.crm-facts dt { font-size: 12px; color: var(--muted); }
.crm-facts dd { margin: 0; overflow-wrap: anywhere; }
.crm-inquiry { padding: 10px 0; border-bottom: 1px solid var(--line); }
.crm-inquiry .btn { margin-top: 5px; }
.crm-free { white-space: pre-wrap; overflow-wrap: anywhere; }
.crm-timeline { list-style: none; margin: 10px 0 0 4px; padding: 0 0 0 13px; border-left: 2px solid var(--line); }
.crm-timeline li { position: relative; padding: 0 0 13px; }
.crm-timeline li:last-child { padding-bottom: 0; }
.crm-timeline li::before { content: ''; position: absolute; left: -18px; top: 7px; height: 8px; width: 8px; border-radius: 50%; background: var(--purple); }
.crm-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 16px; }
.crm-plan { margin: 12px 0; }
.crm-plan summary { cursor: pointer; font-weight: 600; }
[data-crm-group][hidden] { display: none; }
@media (max-width: 760px) {
  .crm-table-wrap { overflow: visible; }
  .crm-table, .crm-table tbody, .crm-table tr { display: block; }
  .crm-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .crm-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 13px; border-top: 1px solid var(--line); padding: 12px 0; }
  .crm-table td, .crm-table th { border: 0; padding: 0; min-width: 0; }
  .crm-table tbody th { display: block; grid-column: 1 / -1; max-width: none; }
  .crm-table tbody th small { display: inline; margin-left: 8px; }
  .crm-table td::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted); }
  .crm-table .crm-plan-cell { max-width: none; }
  .crm-table td:last-child { align-self: end; }
  .crm-table td:last-child::before { display: none; }
}
@media (max-width: 420px) {
  .crm-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-filters .field:first-child { grid-column: 1 / -1; }
  .crm-form-grid { grid-template-columns: 1fr; }
}
.crm-sign { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-weight: 650; }
.crm-sign input { width: 18px; height: 18px; }
