/**
 * Phase 2 Tender Package Import stylesheet for AI Compliance Bot
 * 5-Stage journey, N1-N9 node tracker, issue decision diff matrix, checklists, map.
 */

.package-workspace {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* N1-N9 Node Pipeline Tracker */
.node-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0.85rem 0;
}

.node-progress {
  margin-bottom: 1.25rem;
}

.node-progress__intro {
  display: grid;
  grid-template-columns: minmax(14rem, 0.9fr) minmax(20rem, 1.4fr);
  align-items: end;
  gap: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--product-accent) 24%, var(--product-border));
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--product-accent) 6%, var(--product-surface));
}

.node-progress__eyebrow {
  color: var(--product-accent-ink);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.node-progress__title {
  margin-top: 0.22rem;
  color: var(--product-ink);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.35;
}

.node-progress__summary {
  color: var(--product-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .node-progress__intro,
  .node-progress-grid {
    grid-template-columns: 1fr;
  }
}

.node-card {
  min-height: 11.5rem;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  background: var(--product-surface);
  border: 1px solid var(--product-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.node-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.node-card__identity {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
}

.node-card__code {
  color: var(--product-ink);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
}

.node-card__phase {
  overflow: hidden;
  color: var(--product-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.node-card__name {
  font-size: 0.9rem;
  font-weight: 740;
  line-height: 1.35;
  color: var(--product-ink);
}

.node-card__desc {
  font-size: 0.77rem;
  line-height: 1.5;
  color: var(--product-muted);
}

.node-card__result {
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid color-mix(in srgb, var(--product-border) 72%, transparent);
  color: var(--product-muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.node-card--active {
  border-color: var(--product-accent);
  box-shadow: 0 0 0 2px var(--product-accent-glow);
  background: color-mix(in srgb, var(--product-accent) 5%, var(--product-surface));
}

.node-card--completed {
  border-color: color-mix(in srgb, var(--product-success) 40%, transparent);
  background: color-mix(in srgb, var(--product-success) 5%, var(--product-surface));
}

.node-card--attention,
.node-card--paused {
  border-color: color-mix(in srgb, var(--product-warning) 42%, var(--product-border));
  background: color-mix(in srgb, var(--product-warning) 6%, var(--product-surface));
}

.node-card--stopped {
  border-color: color-mix(in srgb, var(--product-danger) 45%, var(--product-border));
  background: color-mix(in srgb, var(--product-danger) 6%, var(--product-surface));
}

.node-card--waiting {
  border-style: dashed;
  box-shadow: none;
}

.node-progress__next {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.8rem 0.95rem;
  border: 1px dashed var(--product-border);
  border-radius: 0.72rem;
  background: var(--product-soft);
  color: var(--product-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.node-progress__next .material-symbols-rounded {
  color: var(--product-accent-ink);
  font-size: 1.1rem;
  margin-top: 0.08rem;
}

.node-progress__next strong {
  display: block;
  margin-bottom: 0.12rem;
  color: var(--product-ink);
}

/* Issue Resolution & Buyer Decisions */
.issue-queue-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
}

.issue-chip-btn {
  padding: 0.45rem 0.85rem;
  border-radius: 0.65rem;
  font-size: 0.82rem;
  font-weight: 650;
  background: var(--product-soft);
  border: 1px solid var(--product-border);
  color: var(--product-ink);
  cursor: pointer;
  white-space: nowrap;
}

.issue-chip-btn.active {
  background: var(--product-accent);
  color: #FFFFFF;
  border-color: var(--product-accent);
}

.issue-card {
  padding: 1.5rem;
  border-radius: 1.15rem;
  background: var(--product-surface);
  border: 1px solid var(--product-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Side-by-side Clause Diff Comparison */
.clause-diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

.clause-option-box {
  padding: 1.15rem;
  border-radius: 0.85rem;
  background: var(--product-soft);
  border: 1px solid var(--product-border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
  transition: all var(--motion-micro) var(--ease-micro);
}

.clause-option-box:hover {
  border-color: var(--product-accent);
  background: var(--glass-accent-wash);
}

.clause-option-box.selected {
  border-color: var(--product-accent);
  background: var(--glass-accent-wash);
  box-shadow: 0 0 0 2px var(--product-accent);
}

.clause-option-meta {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--product-muted);
  text-transform: uppercase;
}

.clause-option-quote {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--product-ink);
  font-style: italic;
}

/* Checklists & Program */
.checklist-item-card {
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  background: var(--product-surface);
  border: 1px solid var(--product-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
