/* Workbench + data-dense UI (teal palette; mirrors demo patterns without importing demo CSS) */

.hero-cta-wrap {
  margin: 0 0 1.25rem;
}

.btn-workbench {
  display: inline-block;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--nv-teal, #1e4a52);
  text-decoration: none;
  border-radius: 999px;
  padding: 0.55rem 1.35rem;
}

.btn-workbench:hover {
  background: var(--nv-teal-hover, #163942);
}

.workbench {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
  min-width: 0;
  box-sizing: border-box;
}

/* Tables wrapped by demo HTML inline overflow */
.page-main div[style*="overflow"] {
  max-width: 100%;
}

.workbench-heading {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  color: var(--nv-teal, #1e4a52);
}

.workbench-intro {
  margin: 0 0 1.25rem;
  color: var(--text-muted, #4a5565);
  max-width: 46rem;
}

.workbench-inner {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  min-width: 0;
  max-width: 100%;
  min-height: calc(100vh - 16rem);
}

@media (max-width: 900px) {
  .workbench-inner {
    grid-template-columns: 1fr;
  }
}

.cms-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  background: linear-gradient(180deg, #faf9fc 0%, #f3f0f8 100%);
  border: 1px solid var(--border, #dcd7e5);
  border-radius: 12px;
  padding: 1rem;
}

.cms-nav-mount {
  flex-shrink: 0;
}

.steward-rail {
  flex: 1 1 auto;
  min-height: 8rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.steward-rail:empty {
  display: none;
}

.steward-rail .steward-aside {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.cms-nav-section + .cms-nav-section {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border, #dcd7e5);
}

.cms-nav-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #4a5565);
  margin-bottom: 0.5rem;
}

.cms-nav-btn {
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.25rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text, #1a1d21);
  cursor: pointer;
}

.cms-nav-btn:hover {
  background: rgba(30, 74, 82, 0.08);
}

.cms-nav-btn.active {
  font-weight: 700;
  background: #fff;
  color: var(--nv-teal, #1e4a52);
  box-shadow: 0 1px 4px rgba(30, 74, 82, 0.12);
}

.workbench-main-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.workbench-main-wrap .page-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.workbench-main-wrap .page-main > .stack {
  flex: 1 1 auto;
  min-height: 0;
}

.heading-inline-mark {
  display: inline;
}

.workbench-persona {
  font-size: 0.875rem;
  color: var(--text-muted, #4a5565);
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(30, 74, 82, 0.06);
  border-radius: 8px;
}

.page-main {
  min-height: 200px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

/* --- Shared layout (demo-equivalent) --- */
.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  max-width: 100%;
}

.hero .lead {
  margin: 0.5rem 0 0;
  color: var(--text-muted, #4a5565);
  font-size: 1.05rem;
}

.hero h1 {
  margin: 0;
  font-size: 1.65rem;
  color: var(--nv-teal, #1e4a52);
}

.card {
  background: #fff;
  border: 1px solid var(--border, #dcd7e5);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 2px 12px rgba(30, 74, 82, 0.06);
  min-width: 0;
  max-width: 100%;
}

.card h2 {
  margin-top: 0;
  font-size: 1.15rem;
  color: var(--nv-teal, #1e4a52);
}

.section-heading {
  font-size: 1rem;
  margin: 1rem 0 0.5rem;
}

.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  min-width: 0;
}

@media (max-width: 720px) {
  .grid2 {
    grid-template-columns: 1fr;
  }
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.muted {
  color: var(--text-muted, #4a5565);
}

.scenario-hint {
  margin: 0.5rem 0 0;
  padding: 0.65rem 0.85rem;
  background: rgba(30, 74, 82, 0.06);
  border-left: 3px solid var(--nv-teal, #1e4a52);
  border-radius: 4px;
  font-size: 0.9rem;
}

table.data {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  table-layout: fixed;
}

table.data th,
table.data td {
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid var(--border, #e8e4ef);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

table.data thead th {
  font-weight: 600;
  background: rgba(30, 74, 82, 0.05);
}

.tag {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
}

.tag.ok {
  background: rgba(22, 101, 112, 0.15);
  color: #0d5c52;
}

.tag.warn {
  background: rgba(180, 120, 40, 0.18);
  color: #7a4a10;
}

.tag.lite {
  background: rgba(30, 74, 82, 0.08);
  font-weight: 500;
}

.primary,
button.primary {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  border: none;
  background: var(--nv-teal, #1e4a52);
  color: #fff;
  cursor: pointer;
}

.primary:hover,
button.primary:hover {
  background: var(--nv-teal-hover, #163942);
}

.ghost,
button.ghost {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--nv-teal, #1e4a52);
  background: #fff;
  color: var(--nv-teal, #1e4a52);
  cursor: pointer;
}

.ghost:hover {
  background: rgba(30, 74, 82, 0.06);
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.pagination-bar-meta {
  font-size: 0.82rem;
}

.diff-page-list {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}

.steward-aside {
  min-width: 0;
  max-width: 100%;
}

/* Integrity & attestations */
table.data tr.integrity-row--high {
  background: rgba(180, 35, 35, 0.12);
  box-shadow: inset 4px 0 0 #b42323;
}

table.data tr.integrity-row--high td {
  color: #3d0f0f;
}

.integrity-sev--high {
  font-weight: 700;
  color: #b42323;
}

.npi-link-btn {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: var(--nv-teal, #1e4a52);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  text-align: left;
}

.npi-link-btn:hover {
  color: var(--nv-teal-hover, #163942);
}

.integrity-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 30, 0.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.integrity-modal-dialog {
  box-sizing: border-box;
  background: #fff;
  border-radius: 12px;
  width: min(560px, calc(100vw - 2rem));
  max-width: min(560px, calc(100vw - 2rem));
  max-height: 90vh;
  overflow: auto;
  overflow-x: hidden;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}

.integrity-modal-dialog h2 {
  margin-top: 0;
}

.integrity-modal-lead {
  margin: 0.35rem 0 1rem;
  font-size: 0.88rem;
  color: var(--text-muted, #4a5565);
}

.integrity-detail-table {
  margin-bottom: 0.5rem;
}

.integrity-modal-body {
  margin: 0;
  line-height: 1.45;
  white-space: pre-wrap;
}

.integrity-modal-actions {
  margin-top: 1.25rem;
}

.steward-aside-title {
  margin-top: 0;
  font-size: 1rem;
}

.steward-aside-btn {
  margin-top: 0.75rem;
}

.steward-flash {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: #0d5c52;
}

/* VC cards */
.vc-card {
  border: 1px solid var(--border, #dcd7e5);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  background: #fafbfc;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

.vc-card-head {
  margin-bottom: 0.5rem;
}

.vc-card-type {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--nv-teal, #1e4a52);
}

.vc-card-issuer {
  font-size: 0.82rem;
  color: var(--text-muted, #4a5565);
}

.vc-claim-pill {
  display: inline-block;
  font-size: 0.75rem;
  margin: 0.15rem 0.35rem 0 0;
  padding: 0.12rem 0.4rem;
  background: rgba(30, 74, 82, 0.07);
  border-radius: 4px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.vc-card-claims {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.vc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 30, 0.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.vc-modal-dialog {
  box-sizing: border-box;
  background: #fff;
  border-radius: 12px;
  width: min(720px, calc(100vw - 2rem));
  max-width: min(720px, calc(100vw - 2rem));
  max-height: 90vh;
  overflow: auto;
  overflow-x: hidden;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}

.vc-modal-dialog h2 {
  margin-top: 0;
}

.vc-modal-meta {
  font-size: 0.85rem;
  color: var(--text-muted, #4a5565);
}

.vc-modal-pre {
  font-size: 0.72rem;
  overflow: auto;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-height: 220px;
  max-width: 100%;
  padding: 0.65rem;
  background: #f4f2f8;
  border-radius: 8px;
  border: 1px solid var(--border, #dcd7e5);
}

.vc-modal-actions {
  margin-top: 1rem;
}

input.patient-search-input,
#cmsRegistryFilter {
  width: 100%;
  max-width: 420px;
  padding: 0.45rem 0.65rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--border, #dcd7e5);
  border-radius: 8px;
}

.code-block {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.72rem;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 0.75rem;
  background: #f4f2f8;
  border-radius: 8px;
  border: 1px solid var(--border, #dcd7e5);
  max-height: 280px;
  overflow: auto;
}

/* System topology */
.sys-arch-card {
  border: 1px solid var(--border, #dcd7e5);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  background: #fff;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.sys-arch-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.sys-arch-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.sys-arch-canvas {
  position: relative;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}

.sys-arch-svg {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  max-height: 220px;
}

.sys-arch-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 768px) {
  .sys-arch-columns {
    grid-template-columns: 1fr;
  }
}

.sys-arch-column-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #4a5565);
  margin-bottom: 0.5rem;
}

.sys-arch-node {
  border: 1px solid var(--border, #e8e4ef);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.45rem;
  background: #fafbfc;
  min-width: 0;
  max-width: 100%;
}

.sys-arch-node-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.sys-arch-node-title {
  font-weight: 600;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sys-arch-node-sub {
  font-size: 0.72rem;
  color: var(--text-muted, #4a5565);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sys-arch-lat {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--nv-teal-soft, #2a6570);
}

.sys-arch-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.sys-arch-dot--ok {
  background: #1a8f7a;
}

.sys-arch-dot--warn {
  background: #c9a227;
}

.sys-arch-dot--down {
  background: #c44;
}

.sys-arch-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.78rem;
  margin-top: 0.65rem;
  color: var(--text-muted, #4a5565);
}

.sys-arch-legend-line {
  display: inline-block;
  width: 28px;
  height: 3px;
  vertical-align: middle;
  margin-right: 0.35rem;
  border-radius: 2px;
}

.sys-arch-legend-line--solid {
  background: #4f8ff7;
}

.sys-arch-legend-line--dash {
  background: repeating-linear-gradient(90deg, #4f8ff7 0 6px, transparent 6px 10px);
}

.sys-arch-legend-line--gold {
  background: #e9b949;
}

.sys-arch-footer {
  font-size: 0.72rem;
  margin-top: 0.65rem;
  line-height: 1.5;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sys-arch-foot-sep {
  margin: 0 0.35rem;
}

/* --- NPI Registry search (federal-style panel; demo roster only) --- */
.npi-registry-search {
  background: #f3f6f9;
  border-top: 1px solid rgba(30, 74, 82, 0.12);
  border-bottom: 1px solid rgba(30, 74, 82, 0.12);
  padding: 2rem 1.25rem 2.5rem;
}

.npi-registry-inner {
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}

.npi-registry-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 700;
  color: var(--nv-teal, #1e4a52);
}

.npi-registry-note {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted, #4a5565);
  max-width: 52rem;
}

.npi-registry-note a {
  color: var(--nv-teal, #1e4a52);
  font-weight: 600;
}

.npi-registry-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.npi-registry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
}

@media (max-width: 720px) {
  .npi-registry-grid {
    grid-template-columns: 1fr;
  }

  .npi-field-span2 {
    grid-column: auto;
  }
}

.npi-field-span2 {
  grid-column: 1 / -1;
}

.npi-registry-field {
  margin: 0;
}

.npi-registry-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted, #4a5565);
  margin-bottom: 0.35rem;
}

.npi-registry-field input,
.npi-registry-field select {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(30, 74, 82, 0.35);
  border-radius: 4px;
  background: #fff;
}

.npi-registry-field input:focus,
.npi-registry-field select:focus {
  outline: 2px solid rgba(79, 143, 247, 0.55);
  outline-offset: 1px;
}

.npi-registry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.npi-registry-submit {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 1.35rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  color: #fff;
  background: var(--nv-teal, #1e4a52);
}

.npi-registry-submit:hover {
  background: var(--nv-teal-hover, #163942);
}

.npi-registry-reset {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 1.15rem;
  border-radius: 4px;
  border: 1px solid rgba(30, 74, 82, 0.45);
  background: #fff;
  cursor: pointer;
  color: var(--nv-teal, #1e4a52);
}

.npi-registry-reset:hover {
  background: rgba(30, 74, 82, 0.06);
}

.npi-registry-summary {
  margin-top: 1rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.npi-registry-results-wrap {
  margin-top: 0.85rem;
}

.npi-registry-table-scroll {
  overflow: auto;
  max-width: 100%;
  border: 1px solid rgba(30, 74, 82, 0.18);
  border-radius: 6px;
  background: #fff;
}

table.npi-registry-table {
  min-width: 640px;
}

table.npi-registry-table th {
  white-space: nowrap;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.npi-registry-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 0.85rem;
}

.npi-registry-empty {
  margin: 0;
}

/* --- NPPES-style registry detail (verification & issuance) --- */
.nppes-record-card > h2 {
  margin-bottom: 0.35rem;
}

.nppes-variant-note {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.nppes-record {
  font-size: 0.92rem;
}

.nppes-record-header {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(30, 74, 82, 0.15);
}

.nppes-record-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-strong, #1a2332);
}

.nppes-record-dl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.35rem 1.25rem;
  margin: 0;
}

.nppes-record-dl div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.5rem;
  align-items: baseline;
}

.nppes-record-dl dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted, #4a5565);
}

.nppes-record-dl dd {
  margin: 0;
  font-weight: 600;
}

.nppes-details-heading {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--nv-teal, #1e4a52);
}

.nppes-table-scroll {
  overflow: auto;
  max-width: 100%;
  border: 1px solid rgba(30, 74, 82, 0.2);
  border-radius: 6px;
}

table.nppes-detail-table tbody tr:nth-child(even) {
  background: rgba(243, 246, 249, 0.85);
}

table.nppes-detail-table tbody tr:nth-child(odd) {
  background: #fff;
}

table.nppes-detail-table th[scope="row"] {
  width: 14rem;
  max-width: 34%;
  vertical-align: top;
  font-weight: 600;
  font-size: 0.82rem;
}

.nppes-detail-value {
  vertical-align: top;
}

.nppes-subtable {
  margin: 0;
  font-size: 0.82rem;
}

.nppes-subtable th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.nppes-addr {
  font-weight: 500;
}

.nppes-addr-contact {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted, #4a5565);
}

.nppes-addr-map {
  margin-top: 0.25rem;
}

.nppes-map-link {
  font-weight: 600;
  color: #1565c0;
  text-decoration: none;
}

.nppes-map-link:hover {
  text-decoration: underline;
}
