/* Compliance › Onboarding Checklist (#onboarding). Colours come from styles.css's tokens, so light and dark both work. */
.ob-kpis { margin-bottom: 14px; }
.ob-chaselink { margin: 0 0 12px; }
.ob-chase { margin-bottom: 16px; }
.ob-chase .cl-rows small { display: block; font-size: 11.5px; color: var(--muted); }
.ob-regs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.ob-reg { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.ob-reg.amber { background: var(--amber-soft); color: var(--amber); }
.ob-reg.red { background: var(--red-soft); color: var(--red); }
.ob-filters { margin: 4px 0 12px; }
.ob-filters select { max-width: 15rem; }
#ob-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }

/* List */
.ob-list td small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ob-row { cursor: pointer; }
.ob-row:hover > td { background: var(--line-2); }
.ob-row.open > td { background: var(--line-2); border-bottom-color: transparent; }
.ob-row:focus-visible { outline: 2px solid var(--pma-blue); outline-offset: -2px; }
.ob-caret { display: inline-block; width: 1em; color: var(--muted); }
.ob-dots { display: inline-flex; gap: 4px; }
.ob-dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--green); display: inline-block; }
.ob-dot.full { background: var(--green); }
.ob-dot.partial { background: linear-gradient(90deg, var(--green) 50%, transparent 50%); }
.ob-dot.nil { border-color: var(--muted); }
.ob-dot.none { border-style: dashed; border-color: var(--line); }
.ob-detail > td { background: var(--line-2); padding-top: 4px; padding-bottom: 16px; }
.ob-detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ob-check, .ob-side { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.ob-side .pz-acts { margin-top: 10px; }

/* Matrix: the client column stays put, the table scrolls sideways, the headings stay at the top. */
.ob-matrix-wrap { overflow: auto; max-height: 72vh; margin: 0 -20px; border-top: 1px solid var(--line); }
.ob-matrix { border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.ob-matrix th, .ob-matrix td { border-bottom: 1px solid var(--line-2); border-right: 1px solid var(--line-2); background: var(--panel); }
.ob-matrix thead th { position: sticky; z-index: 2; color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.ob-matrix thead tr:first-child th { top: 0; height: 28px; }
.ob-matrix thead tr:nth-child(2) th { top: 28px; }
.ob-gh { text-align: center; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.ob-ih { padding: 0; vertical-align: bottom; }
.ob-ih button { border: 0; background: none; font: inherit; color: inherit; letter-spacing: normal; text-transform: none; font-size: 11px; font-weight: 600; padding: 6px 4px; width: 100%; min-width: 4.6rem; cursor: pointer; line-height: 1.2; }
.ob-ih button:hover { color: var(--ink); }
.ob-ih button[aria-pressed="true"] { background: var(--ink); color: var(--panel); }
.ob-mc { position: sticky; left: 0; z-index: 1; text-align: left; padding: 6px 12px 6px 20px; min-width: 12rem; max-width: 16rem; font-weight: 600; box-shadow: 1px 0 0 var(--line); }
.ob-mc small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.ob-matrix thead .ob-corner { left: 0; z-index: 3; vertical-align: bottom; }
.ob-c { position: relative; text-align: center; padding: 0; }
.ob-cb { width: 100%; min-width: 2.6rem; height: 34px; border: 0; background: none; font: 700 13px var(--font); color: var(--muted); cursor: pointer; }
.ob-cb:disabled { cursor: default; }
.ob-cb:focus-visible { outline: 2px solid var(--pma-blue); outline-offset: -2px; }
.ob-c.auto .ob-cb { color: var(--panel); background: radial-gradient(circle, var(--green) 0 10px, transparent 10.5px); }
.ob-c.manual .ob-cb, .ob-c.done .ob-cb { color: var(--green); background: radial-gradient(circle, transparent 0 8.5px, var(--green) 9px 10px, transparent 10.5px); }
.ob-c.missing .ob-cb { color: var(--red); }
.ob-c.unknown .ob-cb { color: var(--amber); }
.ob-c.na .ob-cb { color: var(--line); }
.ob-c.busy .ob-cb { opacity: .45; }
.ob-c:not(.na):hover { background: var(--line-2); }
.ob-menu { position: absolute; z-index: 4; top: 100%; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 20px rgba(16,24,40,.16); }
.ob-menu button { font: 600 12px var(--font); padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; }
.ob-menu button:hover { border-color: var(--muted); }
.ob-key { margin-top: 14px; }
.ob-k { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-weight: 700; font-size: 11px; }
.ob-k.auto { background: var(--green); color: var(--panel); }
.ob-k.manual { border: 1.5px solid var(--green); color: var(--green); }
.ob-k.missing { color: var(--red); }
.ob-k.unknown { color: var(--amber); }
.ob-k.na { color: var(--muted); }

.wk-oblink { margin: 0 0 10px; }

@media (max-width: 900px) {
  .ob-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ob-detail-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ob-filters select, .ob-filters .search { width: 100%; max-width: none; }
  .ob-filters .search input { min-width: 0; width: 100%; }
  .ob-mc { min-width: 8.5rem; max-width: 10rem; padding-left: 12px; }
  .ob-regs { justify-content: flex-start; }
  .ob-detail > td { padding-left: 8px; padding-right: 8px; }
}
