/* overview tab: Shield Command styles for this tab only (shared pieces live in practice.css). */

/* TabsContent space-y-6 */
.ov-tab { display: grid; gap: 1.5rem; }
.ov-tab > * { min-width: 0; }

.ov-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; margin-bottom: .25rem; }
.ov-title { display: flex; align-items: center; gap: .5rem; }
.ov-empty { margin: 0; padding: 2rem 0; text-align: center; font-size: .875rem; line-height: 1.25rem; font-style: italic; color: var(--muted); }

/* Active Patients by Month: a Recharts BarChart (h-64, margin 8/8/0/0, Y axis 44 wide, X axis 30 tall). */
.ov-chart-wrap { container-type: inline-size; }
.ov-chart {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 30px;
  height: 16rem;
  padding: 8px 8px 0 0;
  font-size: 11px;
}
.ov-chart svg { display: block; overflow: visible; }
.ov-chart text { fill: #666; font-size: 11px; }
.ov-axis-line { stroke: #666; }
.ov-grid-line { stroke: #ccc; stroke-dasharray: 3 3; }
.ov-chart-y { grid-row: 1; grid-column: 1; }
.ov-chart-y svg { width: 44px; height: 100%; }
.ov-chart-plot { position: relative; grid-row: 1; grid-column: 2; }
.ov-chart-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ov-chart-bars { position: absolute; inset: 0; display: flex; }
.ov-chart-band { flex: 1 1 0; display: flex; align-items: flex-end; justify-content: center; height: 100%; }
/* Tooltip cursor */
.ov-chart-band:hover { background: rgb(10 115 122 / .08); }
.ov-chart-bar { width: 80%; background: #0a737a; border-radius: 3px 3px 0 0; }
.ov-chart-x { grid-row: 2; grid-column: 2; }
.ov-chart-x svg { width: 100%; height: 30px; }
/* minTickGap 24 + preserveStartEnd: Recharts drops month labels that would collide on narrower cards. */
.ov-chart-x .ov-tick:not(.ov-tick-1) { display: none; }
@container (max-width: 964px) { .ov-chart-x .ov-tick:not(.ov-tick-2) { display: none; } }
@container (max-width: 508px) { .ov-chart-x .ov-tick:not(.ov-tick-3) { display: none; } }

/* Engagement Health + Patient Satisfaction, side by side on lg */
.ov-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (min-width: 1024px) { .ov-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card-desc.ov-desc-gap { margin-bottom: .75rem; }
/* A chart or card loading into its frame after the page: the breathing shield, sized like what replaces it. */
turbo-frame#ovActiveChart, turbo-frame#ovEngagement { display: block; }
.ov-frame-loading { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 8rem; color: var(--teal); font-size: .875rem; }
.ov-frame-loading-chart { min-height: 18rem; }
.ov-frame-loading [class*="icon-"] { font-size: 1.5rem; animation: practice-shield-breathe 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .ov-frame-loading [class*="icon-"] { animation: none; }
}
.ov-engagement { font-size: .875rem; line-height: 1.25rem; }
.ov-engagement > * + * { margin-top: .75rem; }
.ov-health-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.ov-health { padding: .75rem; border-radius: .5rem; min-width: 0; }
.ov-health.emerald { background: #ecfdf5; }
.ov-health.violet { background: #f5f3ff; }
.ov-health-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .25rem; }
.ov-health-head > [class*="icon-"] { font-size: 1rem; }
.ov-health.emerald .ov-health-head > [class*="icon-"] { color: #059669; }
.ov-health.violet .ov-health-head > [class*="icon-"] { color: #7c3aed; }
.ov-health-label { font-size: .75rem; line-height: 1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.ov-health-value { font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; }
.ov-health.emerald .ov-health-value { color: #047857; }
.ov-health.violet .ov-health-value { color: #6d28d9; }
.ov-health-note { margin: .25rem 0 0; font-size: 11px; line-height: 1rem; color: var(--muted); }
.ov-footnote { margin: 0; padding-top: .25rem; font-size: .75rem; line-height: 1rem; color: var(--muted); }

/* Retention sparkline (Recharts BarChart h-9, bars 0-100%, 2px category gap) */
.ov-spark-button {
  display: block;
  width: 100%;
  margin: .5rem -.25rem 0;
  padding: 0 .25rem;
  border: 0;
  border-radius: .25rem;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ov-spark-button:hover { background: rgb(236 253 245 / .6); }
.ov-spark-button:focus-visible { outline: none; box-shadow: 0 0 0 2px #34d399; }
.ov-spark { display: flex; height: 2.25rem; padding: 2px 2px 0; }
.ov-spark-col { flex: 1 1 0; display: flex; align-items: flex-end; height: 100%; padding: 0 2px; }
.ov-spark-col:hover { background: rgb(16 185 129 / .08); }
.ov-spark-bar { display: block; width: 100%; background: #10b981; border-radius: 2px 2px 0 0; }
.ov-spark-labels { display: grid; gap: 2px; margin-top: .125rem; padding: 0 2px; }
.ov-spark-label { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.ov-spark-label.year { margin-left: -1px; padding-left: 1px; border-left: 1px solid rgb(4 120 87 / .3); }
.ov-spark-pct { font-size: 10px; color: #047857; font-weight: 500; font-variant-numeric: tabular-nums; }
.ov-spark-month { margin-top: 1px; font-size: 9px; color: rgb(4 120 87 / .6); }
.ov-spark-year { height: 9px; font-size: 9px; line-height: 1; color: rgb(4 120 87 / .7); font-weight: 600; font-variant-numeric: tabular-nums; }
.ov-spark-empty { margin: .5rem 0 0; font-size: 11px; line-height: 1rem; font-style: italic; color: var(--muted); }

/* RetentionDeltaBadge */
.ov-delta {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  margin-top: .5rem;
  padding: .125rem .5rem;
  border: 1px solid;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 11px;
  line-height: 1rem;
  font-weight: 500;
  cursor: pointer;
}
.ov-delta:hover { filter: brightness(.95); }
.ov-delta:focus-visible { outline: none; box-shadow: 0 0 0 2px #34d399; }
.ov-delta [class*="icon-"] { font-size: .75rem; }
.ov-delta-period { font-size: 10px; font-weight: 400; opacity: .8; }
.ov-delta.up { color: #047857; background: #d1fae5; border-color: #a7f3d0; }
.ov-delta.down { color: #be123c; background: #ffe4e6; border-color: #fecdd3; }
.ov-delta.flat { color: #475569; background: #f1f5f9; border-color: #e2e8f0; }

/* Retention by month dialog (shadcn Dialog, sm:max-w-md) */
.ov-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 32rem;
  max-height: none;
  height: fit-content;
  margin: auto;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  font-family: Montserrat, sans-serif;
}
.ov-dialog[open] { display: grid; gap: 1rem; animation: ov-dialog-in .2s; }
.ov-dialog::backdrop { background: rgb(0 0 0 / .8); animation: ov-fade-in .2s; }
@media (min-width: 640px) { .ov-dialog { max-width: 28rem; border-radius: .5rem; } }
@keyframes ov-dialog-in { from { opacity: 0; transform: scale(.95); } }
@keyframes ov-fade-in { from { opacity: 0; } }
.ov-dialog-header { display: flex; flex-direction: column; gap: .375rem; text-align: center; }
@media (min-width: 640px) { .ov-dialog-header { text-align: left; } }
.ov-dialog-title { margin: 0; font-size: 1.125rem; line-height: 1; font-weight: 600; letter-spacing: -.025em; }
.ov-dialog-desc { margin: 0; font-size: .875rem; line-height: 1.25rem; color: var(--muted); }
.ov-dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  padding: 0;
  border: 0;
  border-radius: calc(.5rem - 4px);
  background: none;
  color: inherit;
  opacity: .7;
  cursor: pointer;
  transition: opacity .15s;
}
.ov-dialog-close:hover { opacity: 1; }
.ov-dialog-close:focus-visible { outline: none; opacity: 1; box-shadow: var(--ring); }
.ov-dialog-close [class*="icon-"] { font-size: 1rem; }
.ov-dialog-table-wrap { max-height: 60vh; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
.ov-dialog-table { width: 100%; border-collapse: collapse; font-size: .875rem; line-height: 1.25rem; }
.ov-dialog-table tr { border-bottom: 1px solid var(--line); transition: background-color .15s; }
.ov-dialog-table tbody tr:last-child { border-bottom: 0; }
.ov-dialog-table tbody tr:hover { background: rgb(241 245 249 / .5); }
.ov-dialog-table th { height: 3rem; padding: 0 1rem; text-align: left; vertical-align: middle; font-weight: 500; color: var(--muted); }
.ov-dialog-table td { padding: 1rem; vertical-align: middle; }
.ov-dialog-table .num { text-align: right; }
.ov-dialog-table .strong { font-weight: 500; }
.ov-no-data { font-style: italic; color: var(--muted); }
.ov-dialog-empty { padding: 1rem 0; }
.ov-dialog-foot { margin-top: .25rem; padding-top: .75rem; border-top: 1px solid var(--line); font-size: .75rem; line-height: 1rem; color: var(--muted); }
.ov-dialog-foot strong { font-weight: 600; color: var(--ink); }
.ov-dialog-foot em { margin-left: .25rem; }
.ov-dialog-foot.italic { font-style: italic; }

/* Patient Satisfaction */
.ov-sat-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.ov-sat-head > [class*="icon-"] { font-size: 1rem; color: var(--primary); }
.ov-sat-count { margin-left: auto; font-size: .75rem; line-height: 1rem; color: var(--muted); }
.ov-sat-sub { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .75rem; font-size: .875rem; line-height: 1.25rem; font-weight: 600; }
.card.ov-sat-empty { display: flex; align-items: center; justify-content: center; min-height: 200px; }
.ov-sat-empty p { margin: 0; font-size: .875rem; line-height: 1.25rem; font-style: italic; color: var(--muted); }

/* Carousel (shadcn/Embla: -ml-4 track, pl-4 slides, 2 per view from md) */
.ov-carousel { overflow: hidden; }
.ov-carousel-track { --ov-step: 100%; display: flex; margin-left: -1rem; }
.ov-carousel-track.animating { transition: transform .3s ease-out; }
@media (prefers-reduced-motion: reduce) { .ov-carousel-track.animating { transition: none; } }
.ov-carousel-item { flex: 0 0 100%; min-width: 0; padding-left: 1rem; }
@media (min-width: 768px) {
  .ov-carousel-track { --ov-step: 50%; }
  .ov-carousel-item { flex-basis: 50%; }
}
.ov-carousel-nav { display: flex; align-items: center; justify-content: space-between; margin-top: .75rem; }
.ov-dots { display: flex; align-items: center; gap: .375rem; }
.ov-dot {
  width: .375rem;
  height: .375rem;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: rgb(100 116 139 / .3);
  cursor: pointer;
  transition: all .15s cubic-bezier(.4, 0, .2, 1);
}
.ov-dot:hover { background: rgb(100 116 139 / .5); }
.ov-dot.active { width: 1.25rem; background: var(--primary); }
.ov-arrows { display: flex; align-items: center; gap: .5rem; }
.practice-button.ov-arrow { width: 2rem; height: 2rem; padding: 0; }

/* TestimonialCard */
.ov-testimonial {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(to bottom right, rgb(10 115 123 / .05), rgb(10 115 123 / 0));
  box-shadow: 0 0 0 1px rgb(10 115 123 / .1);
}
.ov-testimonial .icon-quote { display: block; margin-bottom: .5rem; font-size: 1.5rem; color: rgb(10 115 123 / .3); }
.ov-testimonial-text {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  font-size: 15px;
  line-height: 1.625;
  color: rgb(2 8 23 / .9);
}
.ov-testimonial-foot { margin-top: 1rem; min-width: 0; }
.ov-testimonial-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; line-height: 1.25rem; font-weight: 600; }
.ov-testimonial-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; line-height: 1rem; color: var(--muted); }

/* Shield Command's "No consented responses to display." */
.ov-sat-none { margin: 0; font-size: .875rem; line-height: 1.25rem; font-style: italic; color: var(--muted); }
