/*
  Area "claims-list": the claims register, the claim reports page and the adjusters directory
  (boards canvas-claims: Claims, OpenClaim, Reports, LossRunSheet, Adjusters, AdjusterSheet).
  Scope: .pui-cl (the page body) and .pui-cl-list (the list card). Prefix pui-cl-.
*/
.pui-page.pui-cl { padding: 24px 28px 40px; gap: 20px; }

/* ── Cards: the board measures ────────────────────────────────────────────────────────────── */
.pui-cl .cn-card { gap: 0; padding: 0; border-radius: 12px; box-shadow: none; }
.pui-cl .cn-card-header { padding: 16px 20px 0; gap: 2px 12px; align-items: flex-start; }
.pui-cl .cn-card-title { font-size: 15px; font-weight: 600; line-height: 1.3; }
.pui-cl .cn-card-description { font-size: 13px; margin-top: 2px; line-height: 1.4; }
.pui-cl .cn-card-content { padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.pui-cl .cn-card-action { align-self: flex-start; }

/* ── List card: tabs, incident notice, table, pager ──────────────────────────────────────── */
.pui-cl-list.cn-card { overflow: hidden; }
.pui-cl-list .pui-list-toolbar { padding: 14px 16px; border-bottom: 1px solid var(--border); gap: 12px; }
.pui-cl-list .cn-tabs-list {
    display: flex; gap: 2px; padding: 3px; background: var(--muted); border-radius: 9px; width: max-content;
    max-width: 100%; height: auto;
}
.pui-cl-list .cn-tabs-trigger {
    height: 30px; padding: 0 12px; border-radius: 7px; font-size: 13px; font-weight: 500; gap: 6px; box-shadow: none;
    border: 0; color: var(--muted-foreground);
}
.pui-cl-list .cn-tabs-trigger[aria-selected="true"] {
    background: var(--card); color: var(--foreground); box-shadow: 0 1px 2px oklch(0.2 0.02 258 / .08);
}
.pui-cl-count { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--muted-foreground); }
.pui-cl-incident { align-items: center; }

.pui-cl-list .pui-list-table { padding: 0; }
.pui-cl-list table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 1000px; }
.pui-cl-list thead th {
    height: 40px; padding: 0 12px; font-size: 12px; font-weight: 500; color: var(--muted-foreground);
    border-bottom: 1px solid var(--border); white-space: nowrap; text-align: left; background: var(--card);
}
.pui-cl-list tbody td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 13px; }
.pui-cl-list tbody tr:last-child td { border-bottom: 0; }
.pui-cl-list tbody tr { cursor: pointer; }
.pui-cl-list tbody tr:hover td { background: oklch(0.98 0.004 250); }
.pui-cl-list .pui-list-footer { padding: 0; border-top: 0; }
.pui-cl-list .pui-list-footer .pui-pager { width: 100%; }
.pui-cl-list .cn-empty { gap: 16px; padding: 40px 16px; }

/* Badges without the status dot (the "Driver at fault" column). */
.cn-badge.pui-cl-plain::before { display: none; }

/* ── Sheets: three columns on the 720px sheet; a section hint sits on the right of its heading ─ */
.pui-cl-sheet .pui-fields.pui-cl-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pui-cl-sheet .pui-sheet-section > .sc-vstack:first-child {
    flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px;
}
.pui-cl-sheet .cn-textarea { min-height: 72px; }
.pui-cl-sheet .cn-input.pui-num::placeholder { font-family: var(--font-sans); }

/* ── Tables that live inside a card (the report, the loss runs, the adjusters) ───────────── */
.pui-cl-table { width: 100%; overflow-x: auto; }
.pui-cl-table table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 820px; }
.pui-cl-table thead th {
    height: 40px; padding: 0 12px; font-size: 12px; font-weight: 500; color: var(--muted-foreground);
    border-bottom: 1px solid var(--border); white-space: nowrap; text-align: left; background: var(--card);
}
.pui-cl-table tbody td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 13px; }
.pui-cl-table tbody tr:last-child td { border-bottom: 0; }
.pui-cl-table tbody tr:hover td { background: oklch(0.98 0.004 250); }
.pui-cl-list .pui-cl-table tbody tr { cursor: default; }

/* ── Claim reports ────────────────────────────────────────────────────────────────────────── */
.pui-cl-filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; width: 100%; }
.pui-cl-filters > .cn-field { min-width: 0; }
.pui-cl-switch { align-items: center; height: 36px; }
.pui-cl-totals {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 16px 24px;
    padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.pui-cl-fig-label { font-size: 12px; color: var(--muted-foreground); }
.pui-cl-fig-value { font-size: 22px; font-weight: 600; line-height: 1.2; }
.pui-cl-note { font-size: 12px; color: var(--muted-foreground); }

/* ── Sheets: the 560px ones ───────────────────────────────────────────────────────────────── */
.pui-cl-sheet .cn-input-group { max-width: none; }
.pui-cl-hint { font-size: 12px; color: var(--muted-foreground); }

/* Page-level fields (the report filters): the board's label and control measures. */
.pui-cl .cn-field { gap: 6px; min-width: 0; }
.pui-cl .cn-label { font-size: 13px; font-weight: 500; line-height: 1.45; }
.pui-cl .pui-cl-filters .cn-input, .pui-cl .pui-cl-filters .cn-select {
    height: 36px; border-radius: 8px; font-size: 14px; border: 1px solid var(--input); background: var(--card);
}
/* A section without a heading (the loss run notes) keeps only its own padding. */
.pui-cl-sheet .pui-sheet-section > .sc-vstack:first-child:has(.pui-sheet-section-title:empty) { display: none; }
.pui-cl-sheet .pui-sheet-section:has(.pui-sheet-section-title:empty) { gap: 0; }
