/*
 * partner-claim-detail-2026-06-17.css
 * Claim-detail body styles: claim header, 3-stage stepper, line-items table (footer),
 * updates+notes timeline, facility side card (compact), pledging-partner card.
 * NO route map. NO BOL/tracking. NO FEMA reimbursement. Per README.
 */

/* ===== Claim header ===== */
.appshell .claim-header { background: linear-gradient(135deg, var(--surface), var(--hra-lavender-bg)); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px 24px; margin-bottom: 16px; box-shadow: var(--shadow-sm); display: grid; grid-template-columns: 1fr auto; gap: 20px; }
@media (max-width: 1024px) { .appshell .claim-header { grid-template-columns: 1fr; } }
.appshell .claim-header .lhs { min-width: 0; }
.appshell .claim-header .topline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.appshell .claim-header .clm { font-size: 12px; font-weight: 700; color: var(--hra-purple); }
.appshell .claim-header h1 { margin: 0 0 6px; font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; line-height: 1.3; }
.appshell .claim-header .sub { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.appshell .claim-header .actions { display: flex; gap: 8px; flex-wrap: wrap; }

.appshell .pri-h { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.appshell .pri-h::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.appshell .pri-h.critical { background: var(--critical-bg); color: var(--critical); }
.appshell .pri-h.high { background: var(--warning-bg); color: var(--warning); }
.appshell .pri-h.medium { background: var(--hra-lavender-bg); color: var(--hra-purple); }

.appshell .stage-pill-lg { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.appshell .stage-pill-lg .led { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pp 1.8s infinite; }
.appshell .stage-pill-lg.anticipated { background: var(--hra-lavender-bg); color: var(--hra-purple); }
.appshell .stage-pill-lg.inprogress { background: var(--info-bg); color: var(--info); }
.appshell .stage-pill-lg.completed { background: var(--success-bg); color: var(--success); }
@keyframes pp { 0% { box-shadow: 0 0 0 0 rgba(29,78,216,0.5);} 70% { box-shadow: 0 0 0 6px rgba(29,78,216,0);} 100% { box-shadow: 0 0 0 0 rgba(29,78,216,0);} }

.appshell .claim-header .rhs { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; text-align: right; min-width: 200px; }
.appshell .claim-header .when-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 2px; }
.appshell .claim-header .when-val { font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
.appshell .claim-header .when-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ===== 3-stage stepper (3 stages only) ===== */
.appshell .stepper-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px 24px 18px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.appshell .stepper-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.appshell .stepper-head h2 { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.appshell .stepper-head h2 svg { width: 16px; height: 16px; color: var(--hra-purple); }
.appshell .stepper-head .meta { font-size: 12px; color: var(--muted); }
.appshell .stepper-head .meta b { color: var(--ink); font-weight: 600; }

.appshell .steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; padding: 0 60px; }
.appshell .steps3::before { content: ""; position: absolute; left: 60px; right: 60px; top: 20px; height: 2px; background: var(--border-2); z-index: 0; }
.appshell .steps3::after { content: ""; position: absolute; left: 60px; width: calc((100% - 120px) * 0.5); top: 20px; height: 2px; background: linear-gradient(90deg, var(--success) 0%, var(--info) 60%, var(--info) 100%); z-index: 1; }
.appshell .step { position: relative; text-align: center; z-index: 2; padding: 0 4px; }
.appshell .step .dot { width: 42px; height: 42px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border); margin: 0 auto 8px; display: grid; place-items: center; color: var(--muted-2); position: relative; }
.appshell .step .dot svg { width: 18px; height: 18px; }
.appshell .step.done .dot { background: var(--success); border-color: var(--success); color: #fff; }
.appshell .step.active .dot { background: var(--surface); border-color: var(--info); color: var(--info); box-shadow: 0 0 0 5px rgba(29,78,216,0.15), 0 4px 12px rgba(29,78,216,0.3); }
.appshell .step.active .dot::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--info); animation: ping-claim 1.6s ease-out infinite; }
@keyframes ping-claim { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.5); opacity: 0; } }
.appshell .step .name { font-size: 12.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.appshell .step.active .name { color: var(--info); }
.appshell .step:not(.done):not(.active) .name { color: var(--muted); }
.appshell .step .when { font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.3; }
.appshell .step .when b { color: var(--text); font-weight: 600; display: block; }
.appshell .step.active .when b { color: var(--info); }
@media (max-width: 768px) { .appshell .steps3 { padding: 0 20px; } .appshell .steps3::before, .appshell .steps3::after { left: 20px; right: 20px; } .appshell .step .when { display: none; } }

/* ===== Detail grid (2-column) ===== */
.appshell .detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: flex-start; }
@media (max-width: 1100px) { .appshell .detail-grid { grid-template-columns: 1fr; } }

/* ===== Line items table footer addition ===== */
.appshell .lines tfoot td { font-weight: 600; color: var(--ink); font-size: 13.5px; background: var(--surface-2); padding: 12px 18px; border-top: 1px solid var(--border-2); }
.appshell .lines tfoot .qty { text-align: right; }

/* ===== Updates timeline note variant ===== */
.appshell .tli.info::before { background: var(--info); box-shadow: 0 0 0 3px var(--info-bg); }
.appshell .tli .note { font-size: 12.5px; color: var(--text); background: var(--surface-2); padding: 8px 10px; border-radius: 8px; margin-top: 6px; line-height: 1.5; border-left: 2px solid var(--hra-lavender); }

/* ===== Facility side card (compact) ===== */
.appshell .fc-head { padding: 14px 18px; background: linear-gradient(180deg, var(--hra-lavender-bg), var(--surface)); border-bottom: 1px solid var(--border-2); display: flex; align-items: center; gap: 12px; }
.appshell .fc-head .mark { width: 40px; height: 40px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--hra-purple); flex-shrink: 0; }
.appshell .fc-head .n { font-size: 14.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; line-height: 1.2; }
.appshell .fc-head .l { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.appshell .msg-quick { padding: 14px 18px; border-top: 1px solid var(--border-2); display: flex; align-items: stretch; gap: 10px; }
.appshell .msg-quick textarea { flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 12.5px; color: var(--text); resize: none; min-height: 60px; background: var(--surface); }
.appshell .msg-quick textarea:focus { outline: 2px solid var(--hra-lavender); outline-offset: 0; border-color: var(--hra-purple-light); }
.appshell .msg-quick button { width: 36px; height: 36px; border-radius: 8px; border: none; background: var(--hra-purple); color: #fff; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; align-self: flex-end; }
.appshell .msg-quick button:hover { background: var(--hra-purple-dark); }
.appshell .msg-quick button svg { width: 15px; height: 15px; }

/* breadcrumb */
.appshell .breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.appshell .breadcrumb a { color: var(--muted); text-decoration: none; }
.appshell .breadcrumb a:hover { color: var(--hra-purple); text-decoration: underline; }
.appshell .breadcrumb .sep { opacity: 0.4; }
