/* Small additions on top of the vendored HSO UI design system — just the
   mechanics Tailwind utility classes don't cover (chart canvas sizing,
   native <dialog> backdrop). Colors/spacing/typography all come from
   hso-ui.css. */

.chart-canvas-wrap { position: relative; height: 260px; }
.chart-canvas-wrap canvas { width: 100% !important; height: 100% !important; }

/* Hand-rolled inline-SVG charts (charts.js) — the hover tooltip is
   positioned absolutely against this wrapper. */
.chart-hover-area { min-height: 1px; }

dialog::backdrop { background: rgba(0, 0, 0, 0.5); }
dialog {
  margin: auto;
  /* Belt-and-braces: some browsers' dialog UA stylesheet (and the
     top-layer promotion showModal() does) can win over bg-surface's
     var(--color-surface) chain, leaving the panel see-through onto the
     page behind it. Force an explicit opaque panel here, using the raw
     token (not the -color- alias) plus a hard fallback. */
  background-color: var(--surface, #ffffff) !important;
  color: var(--ink, #15151a) !important;
}

/* hso-ui.css is Tailwind JIT output purged to only the classes its own
   source page used — these utility classes are used in our templates but
   weren't present there, so they're supplied here by hand. */
.mb-6 { margin-bottom: calc(var(--spacing) * 6); }
.pb-4 { padding-bottom: calc(var(--spacing) * 4); }
.p-8 { padding: calc(var(--spacing) * 8); }
.h-44 { height: calc(var(--spacing) * 44); }
.min-h-\[16px\] { min-height: 16px; }
.max-w-\[220px\] { max-width: 220px; }
.text-\[16px\] { font-size: 16px; }
.text-\[17px\] { font-size: 17px; }
.inline-block { display: inline-block; }
.mb-1\.5 { margin-bottom: calc(var(--spacing) * 1.5); }
.w-28 { width: calc(var(--spacing) * 28); }
.max-h-\[70vh\] { max-height: 70vh; }
.max-h-\[85vh\] { max-height: 85vh; }
.h-\[min\(85vh\,720px\)\] { height: min(85vh, 720px); }
.min-h-0 { min-height: 0px; }
.break-all { word-break: break-all; }
.select-all { user-select: all; }
.hidden { display: none; }
.max-w-\[420px\] { max-width: 420px; }
.min-w-\[420px\] { min-width: 420px; }
@media (min-width: 48rem) {
  .md\:col-span-3 { grid-column: span 3 / span 3; }
}
