/* ui/summary.css — THE SUMMARY. The free window. Owned by W27.
   Loop IQ chrome: card #FFF / 0.67px #E5E7EB / 12px / 24px. Pills 9999px.
   Brand: electric indigo #4330F5. Depth #271257 / #1A0B3D. Onest display, Poppins body.

   Built for someone who will give it FIFTEEN SECONDS. Big numbers, few words, one verdict,
   and every panel says how current it is. */

.sm { font-family: Poppins, system-ui, sans-serif; color: #1A0B3D; }
.sm * { box-sizing: border-box; }

/* ---- the as-at strip. EVERYTHING IN THIS WINDOW IS CURRENT — and it says how current. ---- */
.sm-asat {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.sm-asat b { font-family: var(--font-head, 'Sansation', 'Poppins', sans-serif); font-size: 13px; letter-spacing: .02em; }
.sm-pill {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 9999px; padding: 4px 11px; font-size: 11.5px; font-weight: 600;
  border: 0.67px solid #E5E7EB; background: #fff; color: #4A4A55; white-space: nowrap;
}
.sm-pill.live   { background: #F0FDF4; border-color: #BBF7D0; color: #166534; }
.sm-pill.illus  { background: #FFF7ED; border-color: #FED7AA; color: #9A3412; }
.sm-pill.pub    { background: #EDEAFE; border-color: #C9BFEA; color: #4330F5; }
.sm-pill.warn   { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.sm-pill.locked { background: #F5F3FF; border-color: #DDD6FE; color: #271257; }
.sm-pill .dot { width: 6px; height: 6px; border-radius: 9999px; background: currentColor; }

/* ---- cards ---- */
.sm-card {
  background: #FFF; border: 0.67px solid #E5E7EB; border-radius: 12px; padding: 24px;
  margin-bottom: 16px;
}
.sm-card h3 {
  font-family: var(--font-head, 'Sansation', 'Poppins', sans-serif); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: #6B7280;
  margin: 0 0 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.sm-card .sm-sub { font-size: 12px; color: #6B7280; margin: 0 0 16px; line-height: 1.5; }

/* ---- THE VERDICT. One paragraph a CEO repeats to a board. ---- */
.sm-verdict { background: #FFF; }
.sm-verdict p {
  font-family: var(--font-head, 'Sansation', 'Poppins', sans-serif);
  font-size: 17px; line-height: 1.62; color: #1A0B3D; margin: 0 0 10px; font-weight: 500;
}
.sm-verdict p:last-child { margin-bottom: 0; }
.sm-verdict em { font-style: normal; font-weight: 700; color: #271257; }

/* THE BREACH BAND. A statutory breach does not average away, and it does not sit below the fold. */
.sm-breach {
  border: 0.67px solid #FECACA; background: #FEF2F2; border-radius: 12px;
  padding: 16px 18px; margin-bottom: 16px;
}
.sm-breach .hd {
  font-family: var(--font-head, 'Sansation', 'Poppins', sans-serif); font-weight: 800; color: #991B1B;
  font-size: 14px; display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.sm-breach .bd { font-size: 13px; color: #7F1D1D; line-height: 1.55; }
.sm-breach .np { font-size: 12px; color: #9F5A5A; margin-top: 8px; font-style: italic; }
.sm-breach .homes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sm-breach .bhome {
  border: 0.67px solid #FCA5A5; background: #fff; border-radius: 9999px;
  padding: 5px 12px; font-size: 12px; font-weight: 600; color: #991B1B; cursor: pointer;
}
.sm-breach .bhome:hover { background: #991B1B; color: #fff; border-color: #991B1B; }

/* ---- the 2x2 panel grid ---- */
.sm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1080px) { .sm-grid { grid-template-columns: 1fr; } }
/* min-width:0 — a grid item's default min-width:auto tracks its content, and a responsive
   Chart.js canvas GROWS the content it is sized against: measured as a frozen renderer in a
   resize loop the first time the occupancy line mounted. This one line is load-bearing. */
.sm-grid > .sm-card { min-width: 0; }

/* ---- big numbers ---- */
.sm-big {
  font-family: var(--font-head, 'Sansation', 'Poppins', sans-serif); font-weight: 800;
  font-size: 44px; line-height: 1; color: #271257; letter-spacing: -.02em;
}
.sm-big .u { font-size: 18px; font-weight: 600; color: #6B7280; margin-left: 2px; }
.sm-big.na { font-size: 20px; color: #9A9AA6; font-weight: 600; letter-spacing: 0; }
.sm-axis { font-size: 11.5px; color: #6B7280; margin-top: 6px; line-height: 1.45; }

.sm-kpis { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.sm-kpi .k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
             color: #9A9AA6; font-weight: 700; margin-bottom: 6px; }
.sm-kpi .v { font-family: var(--font-head, 'Sansation', 'Poppins', sans-serif); font-size: 26px; font-weight: 700;
             color: #271257; line-height: 1; }
.sm-kpi .v.na { font-size: 14px; color: #9A9AA6; font-weight: 600; }

/* ---- disclosure. A mocked figure that can leave the building looking real is a legal problem. */
.sm-disc {
  border-left: 3px solid #F59E0B; background: #FFFBEB; border-radius: 0 8px 8px 0;
  padding: 10px 12px; font-size: 11.5px; line-height: 1.5; color: #78350F; margin-top: 14px;
}
.sm-disc.grey { border-left-color: #CBD5E1; background: #F8FAFC; color: #475569; }
.sm-disc.violet { border-left-color: #4330F5; background: #F5F3FF; color: #271257; }

/* ---- tables ---- */
.sm-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sm-tbl th {
  text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em;
  color: #9A9AA6; font-weight: 700; padding: 7px 8px; border-bottom: 0.67px solid #E5E7EB;
}
.sm-tbl td { padding: 7px 8px; border-bottom: 0.67px solid #F1F0F6; color: #374151; }
.sm-tbl tr:last-child td { border-bottom: 0; }
.sm-tbl tr.clickable { cursor: pointer; }
.sm-tbl tr.clickable:hover td { background: #F5F3FF; }
.sm-tbl td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.sm-tbl td.na { color: #9A9AA6; font-style: italic; font-weight: 500; }
.sm-tbl .heavy { background: #FAF9FF; }

.sm-inp {
  width: 66px; border: 0.67px solid #E5E7EB; border-radius: 8px; padding: 4px 7px;
  font-size: 12.5px; font-family: inherit; text-align: right; color: #271257; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.sm-inp:focus { outline: 2px solid #4330F5; outline-offset: 1px; border-color: #4330F5; }

/* ---- scroll bodies, so a 72-home portfolio cannot push the page to a mile long ---- */
.sm-scroll { max-height: 260px; overflow-y: auto; margin: 0 -8px; padding: 0 8px; }

/* ---- compliance ---- */
.sm-obl { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0;
          border-bottom: 0.67px solid #F1F0F6; }
.sm-obl:last-child { border-bottom: 0; }
.sm-obl .tick {
  width: 22px; height: 22px; border-radius: 9999px; flex: 0 0 22px;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff;
}
.sm-obl .tick.ok { background: #1B7A44; }
.sm-obl .tick.gap { background: #F59E0B; }
.sm-obl .nm { font-weight: 700; font-size: 13px; color: #271257; }
.sm-obl .dt { font-size: 11.5px; color: #6B7280; margin-top: 2px; line-height: 1.5; }
.sm-obl .miss { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.sm-obl .mhome {
  border: 0.67px solid #FED7AA; background: #FFF7ED; border-radius: 9999px;
  padding: 3px 10px; font-size: 11px; font-weight: 600; color: #9A3412; cursor: pointer;
}
.sm-obl .mhome:hover { background: #9A3412; color: #fff; }

.sm-next {
  border: 0.67px solid #DDD6FE; background: #F5F3FF; border-radius: 12px;
  padding: 14px 16px; margin-top: 14px; cursor: pointer;
}
.sm-next:hover { border-color: #4330F5; }
.sm-next .lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em;
                color: #4330F5; font-weight: 700; margin-bottom: 5px; }
.sm-next .ttl { font-family: var(--font-head, 'Sansation', 'Poppins', sans-serif); font-weight: 700; font-size: 14px;
                color: #271257; line-height: 1.4; }
.sm-next .cd { font-size: 12px; color: #4330F5; margin-top: 4px; font-weight: 600; }

/* ---- the lock. The sharpest fact on the page. ---- */
.sm-lock {
  border: 0.67px solid #DDD6FE;
  background: #F5F3FF;
  border-radius: 12px; padding: 15px 16px; margin: 14px 0;
}
.sm-lock .hd { font-family: var(--font-head, 'Sansation', 'Poppins', sans-serif); font-weight: 800; font-size: 13px;
               color: #271257; margin-bottom: 5px; display: flex; align-items: center; gap: 7px; }
.sm-lock .bd { font-size: 12px; line-height: 1.55; color: #271257; }
.sm-lock + .sm-lock { margin-top: -4px; }

/* =================================================================================================
   THE LOCK. The biggest thing on the AN-ACC panel, because it is the biggest thing in the product.
   Nobody else in this market can tell a provider what their CURRENT quarter's target is. We can:
   it locked before the quarter opened (s176-20(6),(7)). This is the block that says so.
   ================================================================================================= */
.sm-hero {
  border-radius: 12px; padding: 18px 20px; margin-bottom: 12px;
  background: #271257;
  border: 0.67px solid #271257; color: #fff;
}
.sm-hero-k {
  font-family: var(--font-head, 'Sansation', 'Poppins', sans-serif); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: #C4B5FD; margin-bottom: 6px;
}
.sm-hero-v {
  font-family: var(--font-head, 'Sansation', 'Poppins', sans-serif); font-size: 30px; font-weight: 800;
  line-height: 1.1; letter-spacing: -.02em; color: #fff; margin-bottom: 8px;
}
.sm-hero-b { font-size: 12.5px; line-height: 1.6; color: #DDD6FE; }
.sm-hero-b b { color: #fff; font-weight: 700; }

/* THE STEER. A countdown on the only window in the regulatory year they can still move. */
.sm-steer {
  display: flex; gap: 16px; align-items: center;
  border: 0.67px solid #DDD6FE; background: #F5F3FF; border-radius: 12px;
  padding: 15px 18px; margin-bottom: 12px;
}
.sm-steer-n {
  font-family: var(--font-head, 'Sansation', 'Poppins', sans-serif); font-size: 38px; font-weight: 800;
  line-height: 1; color: #4330F5; letter-spacing: -.02em; white-space: nowrap;
}
.sm-steer-n .u { font-size: 14px; font-weight: 600; color: #6B7280; }
.sm-steer-b { font-size: 12px; line-height: 1.55; color: #271257; }
.sm-steer-b b { color: #271257; font-weight: 700; }

/* ---- home chips. Every named home is a door into that home. ---- */
.sm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sm-chip {
  border: 0.67px solid #E5E7EB; background: #fff; border-radius: 9999px;
  padding: 4px 11px; font-size: 11.5px; font-weight: 600; color: #271257;
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.sm-chip:hover { background: #271257; color: #fff; border-color: #271257; }
.sm-chip.warn { border-color: #FED7AA; color: #9A3412; background: #FFF7ED; }
.sm-chip.warn:hover { background: #9A3412; color: #fff; border-color: #9A3412; }

/* ---- stars ---- */
.sm-stars { display: flex; gap: 3px; }
.sm-star { color: #E5E7EB; font-size: 13px; line-height: 1; }
.sm-star.on { color: #F59E0B; }
.sm-nodata { font-size: 11px; color: #9A9AA6; font-style: italic; font-weight: 500;
             border-bottom: 1px dotted #C8C8D0; cursor: help; }

.sm-bars { display: flex; flex-direction: column; gap: 9px; margin: 4px 0 0; }
.sm-bar { display: grid; grid-template-columns: 54px 1fr 62px; align-items: center; gap: 10px; }
.sm-bar .lb { font-size: 11.5px; font-weight: 700; color: #6B7280; white-space: nowrap; }
.sm-bar .tr { position: relative; height: 20px; background: #F4F2F9; border-radius: 9999px; }
.sm-bar .fl { position: absolute; inset: 0 auto 0 0; border-radius: 9999px;
              background: #4330F5; min-width: 2px; }
.sm-bar .sec {
  position: absolute; top: -3px; bottom: -3px; width: 2px; background: #1A0B3D; opacity: .45;
}
.sm-bar .vl { font-size: 11.5px; font-weight: 700; color: #271257; text-align: right;
              font-variant-numeric: tabular-nums; }
.sm-legend { font-size: 11px; color: #6B7280; margin-top: 10px; display: flex; gap: 14px;
             flex-wrap: wrap; align-items: center; }
.sm-legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px;
                 background: #4330F5; margin-right: 5px; }
.sm-legend .swl { display: inline-block; width: 2px; height: 12px; background: #1A0B3D;
                  opacity: .45; margin-right: 5px; vertical-align: -2px; }

.sm-subs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
@media (max-width: 640px) { .sm-subs { grid-template-columns: repeat(2, 1fr); } }
.sm-sub-c { border: 0.67px solid #E5E7EB; border-radius: 12px; padding: 11px 12px; }
.sm-sub-c .k { font-size: 10px; text-transform: uppercase; letter-spacing: .04em;
               color: #9A9AA6; font-weight: 700; line-height: 1.3; min-height: 26px; }
.sm-sub-c .v { font-family: var(--font-head, 'Sansation', 'Poppins', sans-serif); font-size: 21px; font-weight: 800;
               color: #271257; margin-top: 5px; line-height: 1; }
.sm-sub-c .v.na { font-size: 12px; color: #9A9AA6; font-weight: 600; }
.sm-sub-c .w { font-size: 10px; color: #9A9AA6; margin-top: 3px; }

/* THE CAP. Missing either target by any amount caps Staffing at 2 — and the lever is in
   Care Minutes, so the whole strip is a door into it. */
.sm-cap {
  border: 0.67px solid #FED7AA; background: #FFF7ED; border-radius: 12px;
  padding: 14px 16px; margin-top: 14px; cursor: pointer;
}
.sm-cap:hover { border-color: #EA580C; }
.sm-cap .hd { font-family: var(--font-head, 'Sansation', 'Poppins', sans-serif); font-weight: 800; font-size: 13px;
              color: #9A3412; margin-bottom: 4px; }
.sm-cap .bd { font-size: 11.5px; color: #B45309; line-height: 1.5; }
.sm-cap .go { font-size: 11.5px; font-weight: 700; color: #271257; margin-top: 7px; }

.sm-err { border: 0.67px solid #FECACA; background: #FEF2F2; border-radius: 12px;
          padding: 16px; color: #991B1B; font-size: 13px; }

/* ---- occupancy: the moveable line, tracked by date — permanent vs respite ---- */
.sm-occ-ctl { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.sm-occ-or { font-size: 11.5px; color: #6B7280; white-space: nowrap; }
/* touch-action none: dragging the line must move the LINE, not scroll the page under a thumb. */
.sm-occ-chart { position: relative; height: 220px; margin-top: 12px; touch-action: none; }
.sm-occ-chart canvas { cursor: ns-resize; }
/* the perm/respite/benchmark legend swatches. .swn is dashed like the 90% line it stands for. */
.sm-occ-legend .swp { display: inline-block; width: 10px; height: 10px; border-radius: 3px;
                      background: #4330F5; opacity: .85; margin-right: 5px; }
.sm-occ-legend .swr { display: inline-block; width: 10px; height: 10px; border-radius: 3px;
                      background: #7C3AED; opacity: .5; margin-right: 5px; }
.sm-occ-legend .swn { display: inline-block; width: 14px; height: 0;
                      border-top: 2px dashed #9A9AA6; margin-right: 5px; vertical-align: 3px; }
.sm-fold { margin-top: 14px; }
.sm-fold > summary {
  cursor: pointer; font-size: 11.5px; font-weight: 700; color: #6B7280;
  text-transform: uppercase; letter-spacing: .06em;
}
