/* Patient List Size — Financial Impact & List Cleansing.
 * Byte-identical in the monolith and in Haresign Intelligence. Uses only the List Size page's
 * own tokens (--ls-*) and components (.ls-card, .ls-kpi, .ls-table, .ls-modes), so it takes on
 * each application's existing look. No inline styles are needed by the script. */

.lsf-head { justify-content:space-between; margin-bottom:14px; }
.lsf-head .lsf-copy { margin-left:auto; cursor:pointer; }
.lsf-kpis, :is(#lsf-national, #lsf-insights) .lsf-kpis { grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); }
.lsf-kpis .ls-kpi { min-width:0; }
.lsf-kpis .ls-kpi .big { font-size:1.25rem; white-space:nowrap; font-variant-numeric:tabular-nums; }
.lsf-basis { margin:-6px 0 18px; max-width:900px; }
.lsf-note { margin:12px 0 0; max-width:900px; }
.lsf-neg { color:var(--ls-bad); }
.lsf-pos { color:var(--ls-good); }
.ls-kpi.accent .lsf-neg, .ls-kpi.accent .lsf-pos { color:#fff; }

.lsf-chart { min-height:320px; }

.lsf-scroll { position:relative; overflow-x:auto; max-width:100%; }
.lsf-scroll:focus-visible { outline:2px solid #0d5bb8; outline-offset:2px; }
.lsf-table th.num, .lsf-table td.num { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.lsf-table { min-width:640px; }
table.lsf-table tbody th { text-align:left; font-weight:600; font-size:13px; text-transform:none; letter-spacing:normal; color:var(--ls-ink); padding:9px 10px; border-bottom:1px solid #f1f4f8; }
.lsf-table tr.lsf-group td { font-size:11px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:var(--ls-mut); background:#f6f8fc; padding-top:12px; }
.lsf-table tr.lsf-subtotal td { font-weight:700; border-top:1px solid var(--ls-border); }
.lsf-table tr.lsf-total td { font-weight:800; color:var(--ls-ink); border-top:2px solid var(--ls-border); background:#eef6ff; }
.lsf-table td small, .lsf-table th small { display:block; color:var(--ls-soft); font-weight:500; font-size:11px; }

.lsf-details { margin-top:14px; }
.lsf-details > summary { cursor:pointer; font-weight:700; color:#0d5bb8; font-size:13.5px; padding:6px 0; }
.lsf-details > summary:focus-visible { outline:2px solid #0d5bb8; outline-offset:2px; }

.lsf-scen { display:grid; grid-template-columns:repeat(3,1fr); gap:13px; }
@media (max-width:860px){ .lsf-scen { grid-template-columns:1fr; } }
.lsf-scen-card { border:1px solid var(--ls-border); border-left-width:4px; border-radius:11px; padding:14px 16px; }
.lsf-scen-card .lbl { font-size:10px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:var(--ls-mut); }
.lsf-scen-card .big { font-size:1.45rem; font-weight:800; color:var(--ls-ink); margin:4px 0; }
.lsf-scen-card .sub { font-size:12px; color:var(--ls-mut); margin-top:3px; }
.lsf-scen-current { border-left-color:#b91c1c; }
.lsf-scen-slowing { border-left-color:#b45309; }
.lsf-scen-recovery { border-left-color:#15803d; }

.lsf-form .lsf-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:12px 18px; margin:12px 0; }
.lsf-field { display:flex; flex-direction:column; gap:4px; font-size:12.5px; color:var(--ls-ink); font-weight:600; }
.lsf-field input[type=text] { padding:8px 10px; border:1px solid #d1d9e0; border-radius:8px; font:inherit; font-weight:500; font-variant-numeric:tabular-nums; background:#fff; color:var(--ls-ink); }
.lsf-field input[type=text]:focus-visible { outline:2px solid #0d5bb8; outline-offset:1px; }
.lsf-field small { color:var(--ls-soft); font-weight:500; font-size:11px; }
.lsf-changed span { color:#9a3412; }
.lsf-changed input[type=text] { border-color:#fdba74; background:#fff7ed; }
.lsf-check { display:flex; flex-direction:row; align-items:flex-start; gap:8px; font-size:12.5px; color:var(--ls-ink); font-weight:500; }
.lsf-check input { margin-top:3px; }
.lsf-form .lsf-check { grid-column:1 / -1; }
.lsf-actions { gap:10px; }
.lsf-actions button { cursor:pointer; }
.lsf-actions button:disabled { opacity:.5; cursor:default; }
.lsf-copytext { width:100%; min-height:110px; margin:0 0 14px; font:inherit; font-size:12.5px; padding:8px; border:1px solid var(--ls-border); border-radius:8px; }

.lsf-method p { font-size:13px; color:#374151; max-width:900px; margin:0 0 10px; }
.lsf-sources { font-size:12.5px; padding-left:18px; }
.lsf-sources a { color:#0d5bb8; text-decoration:underline; }

.lsf-sort { border:none; background:none; padding:0; font:inherit; font-weight:700; text-transform:inherit; letter-spacing:inherit; color:inherit; cursor:pointer; text-align:inherit; }
.lsf-sort:focus-visible { outline:2px solid #0d5bb8; outline-offset:2px; }
th[aria-sort=ascending] .lsf-sort::after { content:" \25B2"; }
th[aria-sort=descending] .lsf-sort::after { content:" \25BC"; }
.lsf-rowlink { border:none; background:none; padding:0; font:inherit; font-weight:700; color:#0d5bb8; cursor:pointer; text-align:left; text-decoration:underline; }
.lsf-area { margin-bottom:18px; }
.lsf-rank tbody th { min-width:190px; }
.lsf-area .ls-context { margin-top:0; }

/* Seven dashboard tabs (Financial Impact is the seventh). */
.ls-tabs { grid-template-columns:repeat(7,1fr); }
@media (max-width:1100px){ .ls-tabs { grid-template-columns:repeat(4,1fr); } }
@media (max-width:900px){ .ls-tabs { grid-template-columns:repeat(3,1fr); } }
@media (max-width:600px){ .ls-tabs { grid-template-columns:repeat(2,1fr); } }
.ls-tab { min-width:0; }

/* The national and State of the Nation pages do not load the dashboard's component rules;
 * these repeat the dashboard's own values, scoped to those two sections only. */
:is(#lsf-national, #lsf-insights) { --ls-good:#15803d; --ls-bad:#b91c1c; --ls-border:#e6ebf1; --ls-ink:#0f172a; --ls-mut:#64748b; --ls-soft:#94a3b8; }
:is(#lsf-national, #lsf-insights) .ls-modes { display:inline-flex; flex-wrap:wrap; background:#eef2f7; border-radius:10px; padding:4px; }
:is(#lsf-national, #lsf-insights) .ls-mode { border:none; background:none; padding:9px 16px; font-size:13px; font-weight:700; color:var(--ls-mut); border-radius:8px; cursor:pointer; }
:is(#lsf-national, #lsf-insights) .ls-mode.active { background:#fff; color:var(--ls-ink); box-shadow:0 1px 3px rgba(15,23,42,.12); }
:is(#lsf-national, #lsf-insights) .ls-mode:disabled { opacity:.5; cursor:default; }
:is(#lsf-national, #lsf-insights) .ls-note { background:#fff7ed; border:1px solid #fed7aa; border-radius:8px; padding:12px 15px; font-size:12.5px; color:#9a3412; margin-bottom:14px; }
:is(#lsf-national, #lsf-insights) .ls-msg.err { display:block; background:#fdeaea; color:var(--ls-bad); border-radius:8px; padding:11px 15px; font-size:13.5px; margin:14px 0; }
:is(#lsf-national, #lsf-insights) .ls-context { display:flex; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; gap:10px; border-bottom:1px solid var(--ls-border); padding-bottom:14px; margin:0 0 18px; }
:is(#lsf-national, #lsf-insights) .ls-context h2 { font-size:22px; font-weight:800; color:var(--ls-ink); margin:0; }
:is(#lsf-national, #lsf-insights) .ls-context .meta { color:var(--ls-mut); font-size:13px; margin-top:4px; }
:is(#lsf-national, #lsf-insights) .ls-natlink { display:inline-flex; align-items:center; gap:8px; padding:9px 15px; border-radius:10px; background:#eef6ff; border:1px solid #cfe3fb; color:#0d5bb8; font-weight:700; font-size:13px; white-space:nowrap; }
:is(#lsf-national, #lsf-insights) .ls-kpis { display:grid; grid-template-columns:repeat(6,1fr); gap:13px; margin-bottom:18px; }
@media (max-width:980px){ :is(#lsf-national, #lsf-insights) .ls-kpis { grid-template-columns:repeat(3,1fr); } }
@media (max-width:560px){ :is(#lsf-national, #lsf-insights) .ls-kpis { grid-template-columns:repeat(2,1fr); } }
:is(#lsf-national, #lsf-insights) .ls-kpi { border:1px solid var(--ls-border); border-radius:11px; padding:14px 16px; }
:is(#lsf-national, #lsf-insights) .ls-kpi .lbl { font-size:10px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:var(--ls-mut); line-height:1.3; min-height:26px; }
:is(#lsf-national, #lsf-insights) .ls-kpi .big { font-weight:800; color:var(--ls-ink); line-height:1.1; margin-top:4px; }
:is(#lsf-national, #lsf-insights) .ls-kpi .sub { font-size:11px; color:var(--ls-soft); margin-top:4px; }
:is(#lsf-national, #lsf-insights) .ls-kpi.accent { background:linear-gradient(135deg,#0d3b6e,#0d5bb8); border:none; color:#fff; }
:is(#lsf-national, #lsf-insights) .ls-kpi.accent .lbl, :is(#lsf-national, #lsf-insights) .ls-kpi.accent .sub, :is(#lsf-national, #lsf-insights) .ls-kpi.accent .big { color:#fff; }
:is(#lsf-national, #lsf-insights) .ls-chart-box { position:relative; }
/* The fluid financial KPI grid must win over the six-column rule above (found on real data). */
:is(#lsf-national, #lsf-insights) .ls-kpis.lsf-kpis { grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); }
:is(#lsf-national, #lsf-insights) .lsf-heading { font-size:20px; font-weight:800; color:var(--ls-ink); margin:28px 0 6px; }

/* State of the Nation: national financial impact */
#lsf-insights .lsf-subhead { margin:18px 0 6px; font-size:14px; }
#lsf-insights .lsf-chart-streams { height:300px; min-height:0; }
#lsf-insights .lsf-chart-areas { height:280px; min-height:0; }
#lsf-insights .lsf-chart-tall { height:760px; }
#lsf-insights .ls-controls { gap:12px; margin-bottom:6px; }
#lsf-insights .lsf-inline { display:inline-flex; align-items:center; gap:8px; }
#lsf-insights .ls-sel { padding:8px 10px; font-size:13px; font-weight:700; border:1px solid #d1d9e0; border-radius:9px; background:#fff; color:var(--ls-ink); }
#lsf-insights .lsf-find { padding:8px 10px; border:1px solid #d1d9e0; border-radius:9px; font:inherit; font-size:13px; min-width:220px; flex:1 1 220px; max-width:340px; }
#lsf-insights .lsf-find:focus-visible, #lsf-insights .ls-sel:focus-visible { outline:2px solid #0d5bb8; outline-offset:1px; }
#lsf-insights .lsf-top tbody tr.lsf-flagged { background:#fff7ed; }
#lsf-insights .lsf-top td, #lsf-insights .lsf-top tbody th { vertical-align:top; }
#lsf-insights .lsf-top { min-width:980px; }
