/* nav-consolidation-1 — Supplier hub panels */

.ws-supplier-hub {
  display: flex;
  flex-direction: column;
  gap: var(--ed-space-5);
}

.ws-hub-catalogue {
  display: flex;
  flex-direction: column;
  gap: var(--ed-space-4);
}

.ws-hub-panel {
  padding: var(--ed-space-4);
  background: var(--ed-white);
  border: 1px solid var(--ed-border-light);
  border-radius: var(--ed-radius);
  box-shadow: var(--ed-shadow-sm);
}

.ws-hub-panel-intro {
  margin: 0 0 var(--ed-space-3);
  font-size: var(--ed-text-sm);
  color: var(--ed-text-muted);
  line-height: 1.5;
  max-width: 56ch;
}

.ws-list-row--static {
  cursor: default;
}
.ws-list-row--static:hover {
  background: inherit;
}

.ws-hub-panels-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ed-space-4);
}

@media (max-width: 768px) {
  .ws-hub-panels-row {
    grid-template-columns: 1fr;
  }
}

.ws-hub-panel--properties .ws-list-row {
  width: 100%;
  text-align: left;
}

.ws-recent-activity-list {
  max-height: 280px;
  overflow-y: auto;
}

.ws-recent-more {
  margin-top: var(--ed-space-2);
}

.ws-hub-panel--vault {
  display: flex;
  flex-direction: column;
  gap: var(--ed-space-2);
}

/**
 * Sprint 1 — Supplier Workspace spine and section panels
 */

.ws-supplier-workspace {
  max-width: 920px;
}

.ws-supplier-title {
  margin: 0 0 var(--ed-space-2);
  font-family: var(--ed-font-display, var(--ed-font));
  font-size: var(--ed-text-xl);
  font-weight: 600;
  color: var(--ed-navy);
  line-height: 1.25;
}

.ws-supplier-spine {
  margin: var(--ed-space-4) 0 var(--ed-space-5);
  padding-bottom: var(--ed-space-3);
  border-bottom: 1px solid var(--ed-border-light);
}

.ws-spine-primary {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ed-space-1);
  margin-bottom: var(--ed-space-2);
}

.ws-spine-btn {
  padding: 8px 14px;
  font-family: var(--ed-font);
  font-size: var(--ed-text-sm);
  font-weight: 500;
  color: var(--ed-navy-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--ed-radius-pill);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ws-spine-btn:hover {
  color: var(--ed-navy);
  background: var(--ed-surface-muted, #f4f5f7);
}

.ws-spine-btn.is-active {
  color: var(--ed-navy);
  background: var(--ed-white);
  border-color: var(--ed-border);
  box-shadow: var(--ed-shadow-sm);
}

.ws-spine-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ed-space-2);
  padding-left: 2px;
}

.ws-spine-secondary--muted {
  opacity: 0.72;
}

.ws-spine-subbtn {
  padding: 4px 10px;
  font-family: var(--ed-font);
  font-size: var(--ed-text-xs);
  font-weight: 500;
  color: var(--ed-text-muted);
  background: transparent;
  border: none;
  border-radius: var(--ed-radius-pill);
  cursor: pointer;
}

.ws-spine-subbtn:hover:not(.is-disabled) {
  color: var(--ed-navy);
  background: var(--ed-surface-muted, #f4f5f7);
}

.ws-spine-subbtn.is-active {
  color: var(--ed-navy);
  background: rgba(217, 161, 30, 0.12);
}

.ws-spine-subbtn.is-disabled {
  cursor: default;
  pointer-events: none;
}

.ws-section-intro {
  margin: 0 0 var(--ed-space-4);
  font-size: var(--ed-text-sm);
  color: var(--ed-text-muted);
  line-height: 1.5;
  max-width: 56ch;
}

.ws-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--ed-space-3);
  margin-bottom: var(--ed-space-5);
}

.ws-stat-grid--compact {
  margin-bottom: var(--ed-space-4);
}

.ws-stat-card {
  padding: var(--ed-space-3) var(--ed-space-4);
  background: var(--ed-white);
  border: 1px solid var(--ed-border-light);
  border-radius: var(--ed-radius);
  box-shadow: var(--ed-shadow-sm);
}

.ws-stat-label {
  margin: 0 0 4px;
  font-size: var(--ed-text-xs);
  font-weight: 600;
  color: var(--ed-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ws-stat-value {
  margin: 0;
  font-size: var(--ed-text-xl);
  font-weight: 600;
  color: var(--ed-navy);
  line-height: 1.2;
}

.ws-stat-hint {
  margin: 4px 0 0;
  font-size: var(--ed-text-xs);
  color: var(--ed-text-muted);
}

.ws-supplier-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ed-space-4);
}

@media (max-width: 768px) {
  .ws-supplier-panels {
    grid-template-columns: 1fr;
  }
}

.ws-supplier-panel {
  min-width: 0;
}

.ws-supplier-panels--single {
  grid-template-columns: 1fr;
}

/* END-QA-018 — first-run supplier hub (no contracts, drafts, or references yet) */
.ws-first-run-hero {
  margin-bottom: var(--ed-space-5);
  padding: var(--ed-space-5) var(--ed-space-6);
  border-radius: var(--ed-radius);
  border: 1px solid var(--ed-interaction, #2d9cff);
  background: linear-gradient(135deg, var(--ed-interaction-soft, rgba(45, 156, 255, 0.08)) 0%, var(--ed-white) 58%);
  box-shadow: var(--ed-shadow-sm);
}

.ws-first-run-eyebrow {
  margin: 0 0 6px;
  font-size: var(--ed-text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ed-interaction, #2d9cff);
}

.ws-first-run-title {
  margin: 0 0 8px;
  font-family: var(--ed-font-display, var(--ed-font));
  font-size: var(--ed-text-xl);
  font-weight: 700;
  color: var(--ed-navy);
}

.ws-first-run-lead {
  margin: 0 0 var(--ed-space-4);
  max-width: 52ch;
  font-size: var(--ed-text-sm);
  line-height: 1.5;
  color: var(--ed-text-muted);
}

.ws-first-run-cta {
  margin-bottom: var(--ed-space-3);
}

.ws-first-run-next {
  margin: 0 0 var(--ed-space-3);
  font-size: var(--ed-text-sm);
  color: var(--ed-navy-soft);
}

.ws-first-run-utility {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ed-space-2);
  margin-top: var(--ed-space-2);
  padding-top: var(--ed-space-3);
  border-top: 1px solid rgba(45, 156, 255, 0.16);
}

.ws-first-run-utility-sep {
  color: var(--ed-text-subtle);
}

.ws-first-run-utility-note {
  font-size: var(--ed-text-xs);
  color: var(--ed-text-muted);
}

.ws-hub-panels-row--solo {
  grid-template-columns: 1fr;
}

/* Continue working — primary resume CTA */
.ws-resume-hero {
  margin-bottom: var(--ed-space-5);
  padding: var(--ed-space-4) var(--ed-space-5);
  border-radius: var(--ed-radius);
  border: 1px solid var(--ed-amber-border, #e8c96a);
  background: linear-gradient(135deg, var(--ed-amber-soft, #fff8e6) 0%, var(--ed-white) 55%);
  box-shadow: var(--ed-shadow-sm);
}

.ws-resume-hero--empty {
  border-color: var(--ed-border-light);
  background: var(--ed-surface-muted, #f4f5f7);
}

/* Saved contracts — reopen published work from supplier hub */
.ws-saved-hero {
  margin-bottom: var(--ed-space-5);
  padding: var(--ed-space-4) var(--ed-space-5);
  border-radius: var(--ed-radius);
  border: 1px solid rgba(46, 125, 50, 0.28);
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.06) 0%, var(--ed-white) 55%);
  box-shadow: var(--ed-shadow-sm);
}

.ws-saved-hero--empty {
  border-color: var(--ed-border-light);
  background: var(--ed-surface-muted, #f4f5f7);
}

.ws-saved-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: var(--ed-text-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #2e7d32;
  background: rgba(46, 125, 50, 0.12);
  border-radius: var(--ed-radius-pill);
}

.ws-saved-contract-card {
  border-color: rgba(46, 125, 50, 0.18);
}

.ws-history-row--action {
  display: flex;
  width: 100%;
  gap: var(--ed-space-4);
  padding: var(--ed-space-2) 0;
  border: none;
  border-bottom: 1px solid var(--ed-border-light);
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.ws-history-row--action:hover .ws-history-label {
  color: var(--ed-navy);
  text-decoration: underline;
}

.ws-resume-hero-head {
  margin-bottom: var(--ed-space-3);
}

.ws-resume-hero-title {
  margin: 0 0 4px;
  font-family: var(--ed-font-display, var(--ed-font));
  font-size: var(--ed-text-lg);
  font-weight: 700;
  color: var(--ed-navy);
  line-height: 1.25;
}

.ws-resume-hero-sub {
  margin: 0;
  font-size: var(--ed-text-sm);
  color: var(--ed-text-muted);
  line-height: 1.45;
}

.ws-resume-cards {
  display: flex;
  flex-direction: column;
  gap: var(--ed-space-2);
}

.ws-resume-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ed-space-4);
  padding: var(--ed-space-3) var(--ed-space-4);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius-sm);
  background: var(--ed-white);
  box-shadow: var(--ed-shadow-sm);
}

.ws-resume-card-body {
  min-width: 0;
  flex: 1;
}

.ws-resume-card-top {
  display: flex;
  align-items: center;
  gap: var(--ed-space-2);
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.ws-resume-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ed-amber-soft);
  color: var(--ed-navy);
  border: 1px solid var(--ed-amber-border, #e8c96a);
}

.ws-resume-type {
  font-size: var(--ed-text-xs);
  font-weight: 600;
  color: var(--ed-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ws-resume-supplier {
  margin: 0 0 2px;
  font-size: var(--ed-text-base);
  font-weight: 700;
  color: var(--ed-navy);
  line-height: 1.3;
}

.ws-resume-contract {
  margin: 0 0 2px;
  font-size: var(--ed-text-sm);
  font-weight: 600;
  color: var(--ed-navy);
  line-height: 1.35;
}

.ws-resume-properties {
  margin: 0 0 4px;
  font-size: var(--ed-text-xs);
  color: var(--ed-text-muted);
  line-height: 1.35;
}

.ws-resume-meta {
  margin: 0;
  font-size: var(--ed-text-xs);
  color: var(--ed-text-muted);
  line-height: 1.45;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.ws-resume-meta-sep {
  opacity: 0.5;
}

.ws-resume-action {
  flex-shrink: 0;
  white-space: nowrap;
}

.ws-resume-more {
  margin: var(--ed-space-2) 0 0;
  font-size: var(--ed-text-xs);
  color: var(--ed-text-muted);
}

@media (max-width: 640px) {
  .ws-resume-card {
    flex-direction: column;
    align-items: stretch;
  }
  .ws-resume-action {
    width: 100%;
  }
}

.ws-attention-list {
  margin: 0;
  padding-left: 1.2em;
  font-size: var(--ed-text-sm);
  color: var(--ed-navy);
  line-height: 1.55;
}

.ws-stay-property-block {
  margin-bottom: var(--ed-space-4);
  padding-bottom: var(--ed-space-3);
  border-bottom: 1px solid var(--ed-border-light);
}

.ws-stay-property-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.ws-stay-property-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ed-space-3);
  margin-bottom: var(--ed-space-2);
  flex-wrap: wrap;
}

.ws-stay-property-title {
  margin: 0 0 var(--ed-space-2);
  font-size: var(--ed-text-base);
  font-weight: 600;
}

.ws-room-line {
  margin: 0 0 6px;
  padding-left: 2px;
}

.ws-contract-type-line {
  display: flex;
  align-items: center;
  gap: var(--ed-space-2);
  flex-wrap: wrap;
  margin: 0 0 8px;
  font-size: var(--ed-text-sm);
}

.ws-contract-type-name {
  min-width: 88px;
  font-weight: 600;
  color: var(--ed-navy);
}

.ws-contract-type-meta {
  flex: 1;
  color: var(--ed-text-muted);
}

.ws-supplier-section--future .ws-future-panel {
  padding: var(--ed-space-4);
  background: var(--ed-surface-muted, #fafbfc);
  border: 1px dashed var(--ed-border);
  border-radius: var(--ed-radius);
}

.ws-future-heading {
  margin: 0 0 var(--ed-space-2);
  font-size: var(--ed-text-sm);
  font-weight: 600;
  color: var(--ed-navy);
}

.ws-future-list {
  margin: var(--ed-space-3) 0 0;
  padding-left: 1.2em;
  font-size: var(--ed-text-sm);
  color: var(--ed-text-muted);
}

.ws-health-list {
  display: flex;
  flex-direction: column;
  gap: var(--ed-space-2);
}

.ws-health-item {
  padding: var(--ed-space-3) var(--ed-space-4);
  font-size: var(--ed-text-sm);
  border-radius: var(--ed-radius);
  border: 1px solid var(--ed-border-light);
  background: var(--ed-white);
}

.ws-health-item--ok {
  border-color: rgba(46, 125, 50, 0.25);
  background: rgba(46, 125, 50, 0.04);
  color: var(--ed-navy);
}

.ws-health-item--warn {
  border-color: rgba(217, 161, 30, 0.35);
  background: rgba(217, 161, 30, 0.06);
}

.ws-health-item--info {
  border-color: var(--ed-border-light);
  background: var(--ed-surface-muted, #fafbfc);
}

.ws-history-row {
  display: flex;
  gap: var(--ed-space-4);
  padding: var(--ed-space-2) 0;
  border-bottom: 1px solid var(--ed-border-light);
  font-size: var(--ed-text-sm);
}

.ws-history-date {
  flex: 0 0 120px;
  color: var(--ed-text-muted);
  font-size: var(--ed-text-xs);
}

.ws-kv-grid {
  display: grid;
  gap: 8px 16px;
}

.ws-kv-pair {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px;
  font-size: var(--ed-text-sm);
}

.ws-kv-k {
  color: var(--ed-text-muted);
  font-size: var(--ed-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ws-finance-block .ws-section-label {
  margin-bottom: 6px;
}

.ws-history-label {
  color: var(--ed-navy);
}

/* CEP-8a — Product catalogue & Knowledge Vault */
.ws-product-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--ed-space-3);
  margin-bottom: var(--ed-space-4);
}

.ws-product-type-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: var(--ed-space-3) var(--ed-space-4);
  text-align: left;
  border: 1px solid var(--ed-border-light);
  border-radius: var(--ed-radius);
  background: var(--ed-white);
  box-shadow: var(--ed-shadow-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ws-product-type-card:hover {
  border-color: var(--ed-border);
  box-shadow: var(--ed-shadow-md, var(--ed-shadow-sm));
}

.ws-product-type-card-label {
  font-size: var(--ed-text-base);
  font-weight: 600;
  color: var(--ed-navy);
}

.ws-product-type-card-meta {
  font-size: var(--ed-text-xs);
  color: var(--ed-text-muted);
}

.ws-product-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  margin: 0 6px 6px 0;
  font-size: var(--ed-text-xs);
  font-weight: 500;
  color: var(--ed-navy-soft);
  background: var(--ed-surface-muted, #f4f5f7);
  border: 1px solid var(--ed-border-light);
  border-radius: var(--ed-radius-pill);
  cursor: pointer;
}

.ws-product-type-chip.is-active {
  background: rgba(217, 161, 30, 0.12);
  border-color: var(--ed-amber-border, #e8c96a);
  color: var(--ed-navy);
}

.ws-product-type-count {
  opacity: 0.7;
}

.ws-overview-types {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.ws-overview-type-chip {
  display: inline-block;
  padding: 4px 10px;
  margin: 0 6px 6px 0;
  font-size: var(--ed-text-xs);
  font-weight: 500;
  color: var(--ed-navy);
  background: var(--ed-surface-muted, #f4f5f7);
  border-radius: var(--ed-radius-pill);
}

.ws-product-enable {
  margin-top: var(--ed-space-4);
  padding-top: var(--ed-space-3);
  border-top: 1px dashed var(--ed-border-light);
}

.ws-product-enable-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ed-space-2);
}

.ws-product-enable-btn {
  padding: 6px 12px;
  font-size: var(--ed-text-sm);
  font-weight: 500;
  color: var(--ed-navy);
  background: var(--ed-white);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius-pill);
  cursor: pointer;
}

.ws-product-enable-btn:hover {
  background: var(--ed-surface-muted, #f4f5f7);
}

.ws-catalogue-breadcrumb {
  margin-bottom: var(--ed-space-3);
  font-size: var(--ed-text-sm);
  color: var(--ed-text-muted);
}

.ws-catalogue-panel {
  margin-top: var(--ed-space-2);
}

.ws-catalogue-entry-shell {
  max-width: 720px;
}

.ws-catalogue-entry-title {
  margin: 0 0 var(--ed-space-2);
  font-family: var(--ed-font-display, var(--ed-font));
  font-size: var(--ed-text-xl);
  font-weight: 600;
  color: var(--ed-navy);
}

.ws-catalogue-entry-blocks {
  display: grid;
  gap: var(--ed-space-4);
  margin-top: var(--ed-space-4);
}

.ws-catalogue-entry-block {
  padding: var(--ed-space-4);
  border: 1px solid var(--ed-border-light);
  border-radius: var(--ed-radius);
  background: var(--ed-white);
}

.ws-catalogue-entry-block--muted {
  background: var(--ed-surface-muted, #fafbfc);
  border-style: dashed;
}

.ws-spine-subbtn--all {
  margin-left: 4px;
  font-style: italic;
}

.ws-kv-list {
  display: flex;
  flex-direction: column;
  gap: var(--ed-space-2);
}

.ws-kv-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ed-space-4);
  padding: var(--ed-space-3) var(--ed-space-4);
  border: 1px solid var(--ed-border-light);
  border-radius: var(--ed-radius);
  background: var(--ed-white);
}

.ws-kv-item-title {
  margin: 0 0 4px;
  font-size: var(--ed-text-base);
  font-weight: 600;
  color: var(--ed-navy);
}

.ws-kv-item-notes {
  margin: 0;
  font-size: var(--ed-text-sm);
  color: var(--ed-text-muted);
  line-height: 1.45;
}

.ws-kv-item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: var(--ed-text-xs);
  color: var(--ed-text-muted);
  flex-shrink: 0;
}

.ws-kv-tag {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ed-text-muted);
  background: var(--ed-surface-muted, #f4f5f7);
  border-radius: 999px;
}

.ws-kv-item-tags {
  margin-top: 6px;
}
