/* The Claims page: one Needs your attention queue (owner 11/20). Our own colors and fonts, one column on narrow screens. */
.cq-bar { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cq-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; margin: 2px 0 0; }
.cq-back { font-size: 13px; color: var(--accent); text-decoration: none; }
.cq-bar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cq-hero { display: flex; align-items: baseline; gap: 12px; padding: 16px 18px; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 8px; background: var(--bg3, #fff); margin-bottom: 14px; }
.cq-hero.cq-clear { border-left-color: #166534; }
.cq-big { font-size: 28px; font-weight: 600; }
.cq-sub, .cq-help { font-size: 13px; color: var(--mid); }
.cq-buckets { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.cq-bucket { width: 100%; display: grid; grid-template-columns: minmax(150px, 220px) 1fr auto; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg3, #fff); cursor: pointer; font: inherit; color: inherit; }
.cq-bucket:hover { border-color: var(--accent); }
.cq-name { font-weight: 600; }
.cq-count { min-width: 44px; text-align: center; padding: 3px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; }
.cq-ready { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px dashed var(--border); border-radius: 8px; margin-top: 18px; }
.cq-foot { margin-top: 14px; }
.cq-link { background: none; border: none; padding: 0; color: var(--accent); cursor: pointer; font-size: 13px; text-decoration: underline; }
.cq-table td, .cq-table th { vertical-align: top; }
.cq-chart { font-weight: 600; white-space: nowrap; }
.cq-why { min-width: 220px; max-width: 420px; }
.cq-act { white-space: nowrap; }
.cq-back-note { font-size: 12px; color: #b45309; margin-top: 2px; }
.cq-handled-note { font-size: 12px; color: var(--mid); margin-top: 2px; }
.cq-group { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; background: var(--bg3, #fff); }
.cq-group > summary { cursor: pointer; padding: 10px 14px; font-weight: 600; }
.cq-gcount { display: inline-block; min-width: 30px; text-align: center; padding: 1px 9px; border-radius: 999px; background: var(--accent); color: #fff; margin-right: 6px; }
.cq-gbar { padding: 0 14px 8px; }
.cq-bulk { position: sticky; top: 0; z-index: 3; padding: 8px 12px; background: var(--bg2, #f6f6f6); border: 1px solid var(--border); border-radius: 6px; margin-bottom: 8px; }
.cq-links { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
@media (max-width: 720px) { .cq-bucket { grid-template-columns: 1fr auto; } .cq-bucket .cq-help { grid-column: 1 / -1; order: 3; } }

/* Columns, sticky header, sort, hover text (owner 11/20). Display only. */
.cq-scroll { max-height: 70vh; overflow: auto; padding: 0; }
.cq-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: auto; }
.cq-table thead th { position: sticky; top: 0; z-index: 2; background: var(--bg2, #f6f6f6); border-bottom: 1px solid var(--border); white-space: nowrap; font-size: 12px; }
.cq-table th[data-cq-sort] { cursor: pointer; user-select: none; }
.cq-table th[data-cq-sort]:hover { color: var(--accent); }
.cq-table th[aria-sort="ascending"]::after { content: ' \25B2'; font-size: 9px; }
.cq-table th[aria-sort="descending"]::after { content: ' \25BC'; font-size: 9px; }
.cq-table td { font-size: 13px; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.cq-table tbody tr:hover { background: var(--bg2, #f6f6f6); }
.cq-trunc { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cq-wide { min-width: 220px; max-width: 420px; }
.cq-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cq-table tr:hover .cq-clamp { -webkit-line-clamp: unset; }
.cq-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cq-chart-cell { font-size: 11px; color: var(--mid); white-space: nowrap; }
.cq-act-h { width: 1%; }
.cq-elig { display: inline-block; min-width: 16px; text-align: center; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 0 3px; margin-left: 4px; background: #e5e7eb; color: #374151; }
.cq-elig-ok { background: #dcfce7; color: #166534; }
.cq-elig-warn { background: #fef3c7; color: #b45309; }
.cq-elig-bad { background: #fee2e2; color: #b91c1c; }
.cq-cols-wrap { position: relative; display: inline-block; }
.cq-cols { position: absolute; right: 0; top: 100%; z-index: 5; min-width: 220px; max-height: 60vh; overflow: auto; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg3, #fff); box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.cq-cols label { display: block; font-size: 13px; padding: 2px 0; }

/* Working lists at the top level of the Claims page (owner 11/20): closed tiles with count badges. */
.cq-working-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.cq-work { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; text-align: left; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg3, #fff); cursor: pointer; font: inherit; color: inherit; min-height: 24px; }
.cq-work:hover { border-color: var(--accent); }
.cq-work .cq-help { grid-column: 1 / -1; }
.cq-count-soft { background: var(--bg2); color: var(--text); border: 1px solid var(--border); }
