/* Shared styles for the healthcare operations demos (supply chain, nurse scheduling, price transparency). */
.ops-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.ops-table { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.ops-table th, .ops-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.ops-table th:first-child, .ops-table td:first-child { text-align: left; }
.ops-table th { font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); font-weight: 700; }
.ops-table tr.is-selected td { background: #e6f4f9; }
.ops-table .linkish { background: none; border: 0; padding: 6px 0; font: inherit; font-weight: 700; color: var(--sci-blue); cursor: pointer; text-align: left; min-height: 36px; }
.ops-table .linkish:hover { text-decoration: underline; }
.ops-controls { display: grid; gap: 4px 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .ops-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ops-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.ops-actions .btn { min-height: 44px; }
.ops-status { font-size: .85rem; color: var(--text-2); min-height: 1.4em; }

/* Nurse roster grid */
.roster { border-collapse: separate; border-spacing: 3px; font-size: .78rem; }
.roster th { font-weight: 700; color: var(--text-3); text-align: center; padding: 2px; white-space: nowrap; }
.roster th.r-name { text-align: left; color: var(--sci-navy); padding-right: 8px; position: sticky; left: 0; background: #fff; z-index: 1; }
.roster th.r-name small { display: block; font-weight: 500; color: var(--text-3); }
.roster th.wkend { color: var(--sci-blue); }
.roster .cell { width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 800; color: var(--text-3); cursor: pointer; padding: 0; }
.roster .cell.s-D { background: #e6f4f9; color: var(--sci-blue-dark); border-color: #b9e2f0; }
.roster .cell.s-N { background: var(--sci-navy); color: #fff; border-color: var(--sci-navy); }
.roster .cell.timeoff { background-image: repeating-linear-gradient(45deg, transparent 0 4px, rgba(100,116,139,.22) 4px 6px); }
.roster .cell.pref { box-shadow: inset 0 0 0 2px #d97706; }
.roster .cell.viol { box-shadow: inset 0 0 0 3px #dc2626; }
.roster td.cov { text-align: center; font-weight: 700; border-radius: 6px; padding: 4px 0; min-width: 34px; }
.roster td.cov.ok { background: var(--ok-bg); color: var(--ok); }
.roster td.cov.short { background: var(--risk-bg); color: var(--risk); }
.roster td.cov.over { background: var(--warn-bg); color: var(--warn); }
.roster-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .78rem; color: var(--text-2); margin-top: 10px; }
.roster-legend span { display: inline-flex; align-items: center; gap: 6px; }
.roster-legend b { display: inline-block; width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--line); }
.roster-legend b.l-D { background: #e6f4f9; }
.roster-legend b.l-N { background: var(--sci-navy); }
.roster-legend b.l-to { background-image: repeating-linear-gradient(45deg, transparent 0 4px, rgba(100,116,139,.3) 4px 6px); }
.roster-legend b.l-v { box-shadow: inset 0 0 0 3px #dc2626; }
.roster-legend b.l-p { box-shadow: inset 0 0 0 2px #d97706; }
.viol-list li { font-size: .88rem; }

/* Price spread */
.spread-row text.plan { font-weight: 700; fill: var(--sci-navy); }
.code-desc { font-size: .9rem; color: var(--text-2); margin: -6px 0 12px; }
.json-view { background: var(--sci-onyx); color: #e2e8f0; border-radius: var(--radius-sm); padding: 14px; font-size: .78rem; line-height: 1.5; overflow-x: auto; max-width: 100%; white-space: pre; }
