/* AML register (#aml) and the AML card on the client page. */
.aml-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .aml-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .aml-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.aml-tbl td { vertical-align: top; }
.aml-tbl td:nth-child(6) { max-width: 420px; }
.aml-flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.aml-flag { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--amber) 14%, transparent); color: var(--ink); }
.aml-people { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.aml-people li { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; }
.aml-people[hidden] { display: none; }
.aml-tbl td:last-child a { white-space: nowrap; }
.aml-tbl [data-amlopen] { display: block; margin-top: 4px; }
/* Phones: each client becomes a small card instead of a wide table. */
@media (max-width: 640px) {
  .aml-tbl thead { display: none; }
  .aml-tbl, .aml-tbl tbody, .aml-tbl tr { display: block; width: 100%; }
  .aml-tbl tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
  .aml-tbl td { display: block; padding: 0 !important; border: 0; max-width: none !important; }
  .aml-tbl td:nth-child(1) { grid-column: 1 / -1; }
  .aml-tbl td:nth-child(2) { grid-column: 1; }
  .aml-tbl td:nth-child(5) { grid-column: 2; text-align: right; }
  .aml-tbl td:nth-child(5)::before { content: "Review "; color: var(--muted); font-size: 12px; }
  .aml-tbl td:nth-child(6) { grid-column: 1 / -1; }
  .aml-tbl td:nth-child(7) { grid-column: 1 / -1; }
  .aml-tbl td.empty { grid-column: 1 / -1; text-align: center; }
  .aml-tbl td.hide-sm { display: none; }
  .page-actions { flex-wrap: wrap; }
}
/* "Needs your attention" and the two charts */
.aml-board { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; margin: 22px 0; align-items: start; }
.aml-board[hidden] { display: none; }
.aml-h { font-family: var(--display); font-size: 18px; margin: 0 0 10px; }
.aml-charts .aml-h:not(:first-child) { margin-top: 18px; }
.aml-needs { display: grid; gap: 10px; align-content: start; }
.aml-needs .aml-h { margin-bottom: 0; }
.aml-need { text-align: left; font: inherit; color: inherit; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent, var(--line)); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 16px; cursor: pointer; display: grid; gap: 4px; }
.aml-need:hover { border-color: var(--accent); }
.aml-need.on { box-shadow: 0 0 0 2px var(--accent) inset; }
.aml-need b { font-size: 14.5px; }
.aml-need span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.aml-need.red { --accent: var(--red); } .aml-need.amber { --accent: var(--amber); } .aml-need.blue { --accent: var(--pma-blue); }
.aml-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; gap: 2px; background: var(--line-2); }
.aml-bar span { min-width: 4px; }
.aml-key { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 13px; }
.aml-key span { display: inline-flex; align-items: center; gap: 7px; }
.aml-key i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.aml-bar .g, .aml-key .g { background: var(--green); }
.aml-bar .a, .aml-key .a { background: #e0892f; }
.aml-bar .r, .aml-key .r { background: var(--red); }
.aml-bar .s, .aml-key .s { background: #5b6672; }
.aml-bar .w, .aml-key .w { background: #d3dbe4; }
@media (max-width: 900px) { .aml-board { grid-template-columns: 1fr; } }
