/*
 * facility-2026-06-17.css
 * Facility dashboard body styles. Reuses .kpi / .dash-grid / .v2card from
 * partner-2026-06-17.css. Adds status banner, 4-state status pill (per README:
 * green=fully op, yellow=limited NOT green, red=closed, pink=evacuated),
 * facility requests table, responders sitrep, facility quick-actions grid.
 */

/* Status banner */
.appshell .status-banner { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--warning); border-radius: var(--r-lg); padding: 16px 18px; display: flex; gap: 16px; align-items: center; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.appshell .status-banner.ok { border-left-color: var(--success); }
.appshell .status-banner.warn { border-left-color: var(--warning); }
.appshell .status-banner.crit { border-left-color: var(--critical); }
.appshell .status-banner .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--warning-bg); color: var(--warning); display: grid; place-items: center; flex-shrink: 0; }
.appshell .status-banner.ok .ico { background: var(--success-bg); color: var(--success); }
.appshell .status-banner.crit .ico { background: var(--critical-bg); color: var(--critical); }
.appshell .status-banner .body { flex: 1; min-width: 0; }
.appshell .status-banner h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.appshell .status-banner .vitals { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 12px; }
.appshell .status-banner .vitals b { color: var(--text); font-weight: 600; }
.appshell .status-banner .quote { font-size: 12px; color: var(--muted); font-style: italic; margin-top: 6px; }

/* 4-state status pill - README rule: green=fully op, yellow=limited NOT green, red=closed, pink=evacuated */
.appshell .status-pill-4 { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }
.appshell .status-pill-4::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.appshell .status-pill-4.fully-operational { background: var(--status-green-bg); color: var(--status-green); }
.appshell .status-pill-4.limited-operations { background: var(--status-yellow-bg); color: var(--status-yellow); }
.appshell .status-pill-4.temporarily-closed { background: var(--status-red-bg); color: var(--status-red); }
.appshell .status-pill-4.evacuated { background: var(--status-pink-bg); color: var(--status-pink); }

/* Request-status pill variants (used in requests table) */
.appshell .req-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.appshell .req-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.appshell .req-status.submitted { background: var(--hra-lavender-bg); color: var(--hra-purple); }
.appshell .req-status.under-review { background: var(--warning-bg); color: var(--warning); }
.appshell .req-status.partially-matched { background: #FFEDD5; color: #C2410C; }
.appshell .req-status.claimed { background: var(--info-bg); color: var(--info); }
.appshell .req-status.fulfilled { background: var(--success-bg); color: var(--success); }

/* Facility requests table */
.appshell .ftable { width: 100%; border-collapse: collapse; font-size: 13px; }
.appshell .ftable thead th { text-align: left; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); background: var(--surface-2); padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.appshell .ftable tbody td { padding: 14px; border-bottom: 1px solid var(--border-2); vertical-align: top; }
.appshell .ftable tbody tr:last-child td { border-bottom: none; }
.appshell .ftable tbody tr:hover { background: var(--surface-2); }
.appshell .ftable .req-num { font-weight: 600; color: var(--hra-purple); font-size: 12px; }
.appshell .ftable .title { color: var(--ink); font-weight: 500; margin-bottom: 2px; display: block; }
.appshell .ftable .descr { color: var(--muted); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.appshell .ftable .when { color: var(--muted); font-size: 12px; white-space: nowrap; }
.appshell .ftable .claims-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--success); color: #fff; font-size: 11px; font-weight: 600; }
.appshell .ftable .claims-pill.none { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.appshell .ftable .row-actions { display: flex; gap: 4px; opacity: 0; transition: opacity .15s ease; }
.appshell .ftable tbody tr:hover .row-actions { opacity: 1; }
.appshell .ftable .row-actions button { width: 28px; height: 28px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.appshell .ftable .row-actions button:hover { color: var(--hra-purple); border-color: var(--hra-lavender); }
.appshell .ftable .row-actions svg { width: 14px; height: 14px; }
.appshell .ftable .pri { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.appshell .ftable .pri::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.appshell .ftable .pri.critical { background: var(--critical-bg); color: var(--critical); }
.appshell .ftable .pri.high { background: var(--warning-bg); color: var(--warning); }
.appshell .ftable .pri.medium { background: var(--hra-lavender-bg); color: var(--hra-purple); }

/* Facility quick actions: 2-col grid */
.appshell .fac-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.appshell .fac-quick a { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border: 1px solid var(--border); border-radius: var(--r-md); text-decoration: none; color: var(--text); background: var(--surface); }
.appshell .fac-quick a:hover { border-color: var(--hra-lavender); background: var(--hra-lavender-bg); }
.appshell .fac-quick .ico { width: 30px; height: 30px; border-radius: 8px; background: var(--hra-lavender-bg); color: var(--hra-purple); display: grid; place-items: center; }
.appshell .fac-quick strong { font-size: 13px; font-weight: 600; color: var(--ink); }
.appshell .fac-quick span { font-size: 11.5px; color: var(--muted); line-height: 1.35; }

/* Responders sitrep */
.appshell .responders { list-style: none; padding: 0; margin: 0; }
.appshell .responders li { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border-2); }
.appshell .responders li:last-child { border-bottom: none; }
.appshell .responders .org-mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.appshell .responders .body { flex: 1; min-width: 0; }
.appshell .responders .row1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.appshell .responders .org-name { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appshell .resp-stat { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.appshell .resp-stat::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.appshell .resp-stat.onsite { background: var(--success-bg); color: var(--success); }
.appshell .resp-stat.enroute { background: var(--info-bg); color: var(--info); }
.appshell .resp-stat.standby { background: var(--warning-bg); color: var(--warning); }
.appshell .responders .capa { margin: 0 0 6px; font-size: 12px; color: var(--text); line-height: 1.4; }
.appshell .responders .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--muted); }
.appshell .responders .meta span { display: inline-flex; align-items: center; gap: 4px; }

/* Page-header actions on the right */
.appshell .ph-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
