/* status tab: Shield Command styles for this tab only (shared pieces live in practice.css). */

/* Patient Status & Drops: cards stacked with space-y-6 */
.st-stack > * + * { margin-top: 1.5rem; }

/* Monthly Growth card */
.st-growth-title { margin-bottom: .75rem; }
.st-empty-note { margin: 0; padding: 2rem 0; text-align: center; font-size: .875rem; line-height: 1.25rem; color: var(--muted); }

/* Monthly Growth chart: Recharts BarChart look (h-56, 5px margins, 60px y-axis, 30px x-axis, legend below).
   Sizes inside the chart are px, as Recharts uses. */
.st-chart {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 30px auto;
  box-sizing: border-box;
  height: 14rem;
  padding: 5px;
  font-size: 10px;
}
.st-chart svg { overflow: visible; }
.st-chart text { fill: #666; }
.st-y-axis { grid-row: 1; grid-column: 1; width: 60px; height: 100%; }
.st-x-axis { grid-row: 2; grid-column: 2; width: 100%; height: 30px; }
.st-y-axis line, .st-x-axis line { stroke: #666; }
.st-plot { position: relative; grid-row: 1; grid-column: 2; min-width: 0; }
.st-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.st-grid line { stroke: #e2e8f0; stroke-dasharray: 3 3; }
.st-net { pointer-events: none; }
.st-net line { stroke: #0a737a; stroke-width: 1; }
.st-net circle { fill: #fff; stroke: #0a737a; stroke-width: 1; }

/* One band per month (barCategoryGap 10%, barGap 4px); hovering shades the band like Recharts' tooltip cursor. */
.st-bands { position: absolute; inset: 0; display: flex; }
.st-band { position: relative; flex: 1 1 0; }
.st-band:hover { background: #ccc; }
.st-bars { position: absolute; inset: 0 10%; display: flex; gap: 4px; }
.st-slot { position: relative; flex: 1 1 0; }
.st-bar { position: absolute; left: 0; right: 0; }
.st-bar.st-enroll { background: #10b981; }
.st-bar.st-drop { background: #ef4444; }

.st-legend { grid-row: 3; grid-column: 1 / -1; margin: 0; padding: 0; list-style: none; text-align: center; font-size: 11px; line-height: 1.5; }
.st-legend li { display: inline-block; margin-right: 10px; }
.st-legend svg { display: inline-block; margin-right: 4px; vertical-align: middle; }
.st-legend .st-enroll { color: #10b981; }
.st-legend .st-drop { color: #ef4444; }
.st-legend .st-net-key { color: #0a737a; }
.st-legend .st-enroll path, .st-legend .st-drop path { fill: currentColor; stroke: none; }
.st-legend .st-net-key path { fill: none; stroke: currentColor; stroke-width: 4; }
@media (max-width: 639px) { .st-tick-alt { display: none; } }

/* Drops & Reasons card */
.st-drops-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.st-drops-title { display: flex; align-items: center; gap: .375rem; margin-bottom: .25rem; }
.st-drops-tip { transform: translateY(1px); }
.st-drops-tip[data-tip]:hover::after, .st-drops-tip[data-tip]:focus::after { white-space: pre-line; }
.st-drops-note { margin-bottom: .75rem; }
.st-big { font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; }
.st-big-label { margin-bottom: .75rem; }
.st-reasons { font-size: .875rem; line-height: 1.25rem; }
.st-reasons > * + * { margin-top: .5rem; }
.st-reason { display: flex; align-items: center; justify-content: space-between; }
.st-count { font-weight: 500; }
.st-none { margin: 0; font-style: italic; color: var(--muted); }

/* By practice: bordered rows that expand to that practice's reasons */
.st-by-practice { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.st-by-practice h4 { margin: 0 0 .5rem; font-size: .875rem; line-height: 1.25rem; font-weight: 600; }
.st-practice { border: 1px solid var(--line); border-radius: var(--radius-md); }
.st-practice + .st-practice { margin-top: .25rem; }
.st-practice > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem .75rem;
  font-size: .875rem;
  line-height: 1.25rem;
  list-style: none;
  cursor: pointer;
}
.st-practice > summary::-webkit-details-marker { display: none; }
.st-practice > summary:hover { background: rgb(241 245 249 / .5); }   /* hover:bg-muted/50 */
.st-practice-name { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.st-practice-name [class*="icon-"] { flex-shrink: 0; font-size: 1rem; color: var(--muted); }
.st-practice-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.st-practice .icon-chevron-down, .st-practice[open] .icon-chevron-right { display: none; }
.st-practice[open] .icon-chevron-down { display: inline-block; }
.st-practice-total { flex-shrink: 0; margin-left: .5rem; }
.st-practice-reasons { padding: 0 .75rem .5rem 2.25rem; font-size: .875rem; line-height: 1.25rem; }
.st-practice-reasons > * + * { margin-top: .25rem; }

/* Providers card */
.st-providers-head { margin-bottom: 1rem; }
.st-providers-desc { max-width: 36rem; }
.st-total { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .75rem; }
.st-total-value { font-size: 1.5rem; line-height: 2rem; font-weight: 600; }
.st-search { margin-bottom: .75rem; }
.st-search .practice-input { max-width: 20rem; }

/* shadcn Table (text-sm, h-12 px-4 headings, p-4 cells, row borders, hover:bg-muted/50) */
.st-table-wrap { position: relative; width: 100%; overflow: auto; }
.st-table { width: 100%; caption-side: bottom; border-collapse: collapse; font-size: .875rem; line-height: 1.25rem; }
.st-table tr { border-bottom: 1px solid var(--line); transition: background-color .15s cubic-bezier(.4, 0, .2, 1); }
.st-table tr:hover { background: rgb(241 245 249 / .5); }
.st-table tbody tr:last-child { border-bottom: 0; }
.st-table th { height: 3rem; padding: 0 1rem; text-align: left; vertical-align: middle; font-weight: 500; color: var(--muted); }
.st-table td { padding: 1rem; vertical-align: middle; }
.st-table .st-right { text-align: right; }
.st-name { font-weight: 500; }
.st-num { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.st-table-empty { text-align: center; font-style: italic; color: var(--muted); }

/* Sort button: ArrowUpDown (faded) until sorted, then ArrowUp / ArrowDown */
.st-sort {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.st-sort:hover { color: var(--ink); }
.st-sort [class*="icon-"] { font-size: .875rem; }
.st-sort .icon-arrow-up-down { opacity: .4; }
.st-sort .icon-arrow-up, .st-sort .icon-arrow-down,
th[data-sorted] .st-sort .icon-arrow-up-down { display: none; }
th[data-sorted="asc"] .st-sort .icon-arrow-up,
th[data-sorted="desc"] .st-sort .icon-arrow-down { display: inline-block; }
