/*
 * partner-claims-2026-06-17.css
 * Claims pipeline + table for /partner/my-claims.
 * 3-stage pipeline only (Anticipated / In-progress / Completed) per README.
 * No money column. No attention banners.
 */

/* Page header (reuse pg-header from partner-needs) */
.appshell .pg-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.appshell .pg-header .pg-title { margin: 0 0 4px; font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.appshell .pg-header .pg-title .tally { font-size: 13px; font-weight: 600; background: var(--hra-lavender-bg); color: var(--hra-purple); padding: 3px 10px; border-radius: 999px; }
.appshell .pg-header .pg-sub { margin: 0; font-size: 13px; color: var(--muted); max-width: 64ch; }
.appshell .pg-header .pg-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ===== 3-stage pipeline ===== */
.appshell .pipeline { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.appshell .pipe-cell { position: relative; padding: 18px 18px 18px 26px; background: var(--surface-2); border-radius: 10px; text-decoration: none; color: inherit; cursor: pointer; transition: background .12s ease, border-color .12s ease; border: 1px solid transparent; }
.appshell .pipe-cell:hover { background: var(--hra-lavender-bg); }
.appshell .pipe-cell.active { background: var(--hra-lavender-bg); border-color: var(--hra-lavender); box-shadow: inset 0 0 0 1px var(--hra-purple-light); }
.appshell .pipe-cell::before { content: ""; position: absolute; left: 8px; top: 14px; bottom: 14px; width: 3px; border-radius: 999px; background: var(--border); }
.appshell .pipe-cell.anticipated::before { background: var(--hra-purple); }
.appshell .pipe-cell.inprogress::before { background: var(--warning); }
.appshell .pipe-cell.completed::before { background: var(--muted-2); }
.appshell .pipe-cell .stage { font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.appshell .pipe-cell .n { font-size: 30px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; line-height: 1; margin-top: 4px; }
.appshell .pipe-cell .n small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.appshell .pipe-cell .delta { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ===== Toolbar ===== */
.appshell .toolbar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom: none; display: flex; align-items: center; gap: 10px; padding: 8px 10px 0; flex-wrap: wrap; }
.appshell .tb-tabs { display: flex; gap: 2px; flex-wrap: wrap; }
.appshell .tb-tabs button { background: transparent; border: none; padding: 10px 14px; font-size: 12.5px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; font-family: inherit; }
.appshell .tb-tabs button:hover { color: var(--text); }
.appshell .tb-tabs button.active { color: var(--hra-purple); border-bottom-color: var(--hra-purple); font-weight: 600; }
.appshell .tb-tabs .count { font-size: 11px; background: var(--surface-2); padding: 1px 7px; border-radius: 999px; font-weight: 600; margin-left: 4px; }
.appshell .tb-tabs .active .count { background: var(--hra-lavender-bg); color: var(--hra-purple); }

.appshell .tb-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; padding: 0 4px 6px; flex-wrap: wrap; }
.appshell .tb-search { position: relative; }
.appshell .tb-search input { width: 220px; height: 30px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); font: inherit; font-size: 12.5px; color: var(--text); padding: 0 10px 0 30px; }
.appshell .tb-search svg { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; color: var(--muted); }
.appshell .tb-tools select { font: inherit; font-size: 12px; font-weight: 500; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 7px; padding: 5px 26px 5px 10px; cursor: pointer; height: 30px; }

/* applied chip bar reuse */
.appshell .applied { background: var(--surface); border: 1px solid var(--border); border-top: none; border-bottom: 1px solid var(--border-2); padding: 8px 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.appshell .applied b { color: var(--text); font-weight: 600; margin-right: 4px; }
.appshell .fchip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 4px 3px 9px; border-radius: 999px; background: var(--hra-lavender-bg); color: var(--hra-purple-dark); border: 1px solid var(--hra-lavender); font-size: 11.5px; font-weight: 500; }
.appshell .fchip button { width: 16px; height: 16px; border-radius: 50%; border: none; background: transparent; color: var(--hra-purple); cursor: pointer; }

/* ===== Claims table ===== */
.appshell .claims-table { background: var(--surface); border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--r-lg) var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.appshell .ct-row { display: grid; grid-template-columns: 32px 130px minmax(0, 1.4fr) minmax(0, 1.6fr) 80px 140px 110px 40px; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border-2); text-decoration: none; color: inherit; font-size: 13px; }
.appshell .ct-row.head { background: var(--surface-2); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); padding: 10px 18px; cursor: default; }
.appshell .ct-row.head:hover { background: var(--surface-2); }
.appshell .ct-row:hover { background: var(--surface-2); }
.appshell .ct-row:last-child { border-bottom: none; }

.appshell .ct-check input { appearance: none; width: 16px; height: 16px; border: 1.5px solid var(--border); border-radius: 4px; background: var(--surface); position: relative; cursor: pointer; margin: 0; }
.appshell .ct-check input:checked { background: var(--hra-purple); border-color: var(--hra-purple); }
.appshell .ct-check input:checked::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.appshell .ct-req { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.appshell .ct-req .num { font-size: 11.5px; font-weight: 700; color: var(--hra-purple); }
.appshell .ct-req .pri-sm { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 600; width: fit-content; }
.appshell .ct-req .pri-sm::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.appshell .ct-req .pri-sm.critical { background: var(--critical-bg); color: var(--critical); }
.appshell .ct-req .pri-sm.high { background: var(--warning-bg); color: var(--warning); }
.appshell .ct-req .pri-sm.medium { background: var(--hra-lavender-bg); color: var(--hra-purple); }

.appshell .ct-fac { min-width: 0; }
.appshell .ct-fac .name { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.appshell .ct-fac .loc { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

.appshell .ct-item { min-width: 0; }
.appshell .ct-item .name { font-size: 13px; color: var(--text); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.appshell .ct-item .cat { font-size: 11px; color: var(--muted); margin-top: 3px; display: inline-flex; align-items: center; gap: 5px; }
.appshell .ct-item .cat .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }

.appshell .ct-qty { font-size: 13px; font-weight: 600; color: var(--ink); text-align: right; line-height: 1.2; }
.appshell .ct-qty small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 1px; }

.appshell .ct-prog { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.appshell .ct-stage-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; width: fit-content; }
.appshell .ct-stage-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.appshell .ct-stage-tag.anticipated { background: var(--hra-lavender-bg); color: var(--hra-purple); }
.appshell .ct-stage-tag.inprogress { background: var(--warning-bg); color: var(--warning); }
.appshell .ct-stage-tag.completed { background: var(--success-bg); color: var(--success); }

.appshell .ct-eta { text-align: left; font-size: 12px; color: var(--text); }
.appshell .ct-eta b { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.appshell .ct-eta small { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }

.appshell .ct-action { display: flex; justify-content: flex-end; align-items: center; }
.appshell .ct-action .ico { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.appshell .ct-action .ico:hover { border-color: var(--hra-lavender); color: var(--hra-purple); background: var(--hra-lavender-bg); }
.appshell .ct-action .ico svg { width: 14px; height: 14px; }

/* Group divider row */
.appshell .group-row { background: linear-gradient(180deg, var(--surface-2), var(--surface)); padding: 10px 18px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border-2); display: flex; align-items: center; gap: 8px; }
.appshell .group-row .ct { margin-left: auto; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }

/* Table footer */
.appshell .ct-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--border-2); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.appshell .ct-foot b { color: var(--ink); font-weight: 600; }

/* Responsive: hide low-priority columns on narrow viewports */
@media (max-width: 1280px) {
  .appshell .ct-row { grid-template-columns: 32px 110px minmax(0, 1fr) minmax(0, 1fr) 140px 100px; gap: 12px; }
  .appshell .ct-row .ct-item { display: none; }
  .appshell .ct-row .ct-action { display: none; }
}

/* Polish: 768px mobile breakpoint */
@media (max-width: 768px) {
  .appshell .pipeline { grid-template-columns: 1fr; gap: 6px; }
  .appshell .toolbar { flex-direction: column; align-items: stretch; }
  .appshell .tb-tools { margin-left: 0; flex-wrap: wrap; }
  .appshell .ct-row { grid-template-columns: 1fr; gap: 8px; padding: 14px; }
  .appshell .ct-row.head { display: none; }
  .appshell .ct-check { display: none; }
  .appshell .ct-action { display: none; }
}
