/* Shared styles for the healthcare operations demos (pre-op risk, surgical workflow, care team productivity). */
.hc-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; max-height: 420px; overflow-y: auto; }
.hc-table { border-collapse: collapse; width: 100%; font-size: .88rem; font-variant-numeric: tabular-nums; }
.hc-table th, .hc-table td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.hc-table th { position: sticky; top: 0; background: var(--sci-subtle); color: var(--sci-navy); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; z-index: 1; }
.hc-table td.num, .hc-table th.num { text-align: right; }
.hc-table tr.is-selected td { background: #e6f4f9; }
.hc-link { background: none; border: 0; padding: 4px 0; font: inherit; color: var(--sci-blue); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; min-height: 32px; }
.hc-controls { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; margin-bottom: 14px; }
.hc-controls .check { min-height: 44px; }
.hc-scroll { overflow-x: auto; }
.hc-scroll svg.chart { min-width: 620px; }
.hc-chart-clickable { cursor: pointer; }
.hc-chart-clickable:focus { outline: none; }
.hc-chart-clickable:focus-visible rect, .hc-chart-clickable.is-selected rect { stroke: var(--sci-navy); stroke-width: 2.5; }
.hc-details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 8px; }
.hc-details > summary { cursor: pointer; padding: 12px 14px; font-weight: 600; color: var(--sci-navy); min-height: 44px; }
.hc-details > div { padding: 0 14px 14px; }
.hc-details ul { margin: 6px 0 10px; padding-left: 20px; }
.hc-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hc-checklist li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-size: .9rem; }
.hc-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .8rem; color: var(--text-2); margin: 8px 0 0; }
.hc-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; background: var(--sw, #94a3b8); }
.hc-legend .sw-outline::before { background: #fff; border: 2px solid #b91c1c; width: 8px; height: 8px; }
.hc-text { width: 100%; min-height: 44px; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; font: inherit; background: #fff; color: var(--text); }
textarea.hc-text { min-height: 220px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; line-height: 1.5; resize: vertical; }
.hc-codes { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.hc-codes code { font-size: .85rem; padding: 4px 10px; border-radius: 8px; background: var(--sci-surface); border: 1px solid var(--line); color: var(--sci-navy); }
.hc-status { min-height: 1.4em; }
