/* Sprint 3 — Commercial Contract Loading Workflow */

.cl-workflow {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 100%;
}

.cl-workflow-exit {
  margin-bottom: 2px;
}

.cl-workflow-exit .linkish {
  font-size: 13px;
  font-weight: 600;
}

.cl-orient {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2px 0 10px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--ed-border-light, #e2e8f0);
}

.cl-orient-identity {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px 12px;
}

.cl-orient-id-item {
  min-width: 0;
}

.cl-orient-k {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ed-text-muted, #64748b);
  margin-bottom: 1px;
}

.cl-orient-k--spine {
  margin: 0;
  line-height: 1.2;
}

.cl-orient-v {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ed-navy, #0f1f33);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cl-orient-note {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ed-text-muted, #64748b);
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cl-orient-di,
.cl-orient-workflow {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 6px 12px;
  align-items: center;
}

.cl-di-spine {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.cl-di-step {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ed-text-muted, #64748b);
}

.cl-di-step.is-empty {
  opacity: 0.45;
}

.cl-di-step.is-active {
  color: var(--ed-navy, #0f1f33);
  font-weight: 700;
  opacity: 1;
}

.cl-di-step.is-complete {
  color: #1f6b4a;
  opacity: 1;
}

.cl-di-step.is-attention {
  color: var(--ed-amber, #d9a11e);
  font-weight: 700;
  opacity: 1;
}

.cl-di-mark {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.cl-di-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cl-di-join {
  flex: 1;
  min-width: 8px;
  max-width: 28px;
  height: 1px;
  margin: 0 6px;
  background: var(--ed-border-light, #e2e8f0);
}

.cl-orient-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  align-items: baseline;
}

.cl-orient-fact {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.cl-orient-fact .cl-orient-k {
  margin: 0;
  flex-shrink: 0;
}

.cl-orient-fact .cl-orient-v {
  white-space: normal;
  font-weight: 600;
}

.cl-orient-v--source {
  white-space: nowrap;
  max-width: 280px;
}

.cl-orient-ready.is-in-progress .cl-orient-v {
  font-weight: 500;
  color: var(--ed-text-muted, #64748b);
}

.cl-orient-ready.is-publish-blocked .cl-orient-v,
.cl-orient-ready.is-needs-attention .cl-orient-v {
  color: var(--ed-amber, #d9a11e);
}

.cl-orient-workflow .cl-progress {
  margin-bottom: 0;
  overflow-x: hidden;
}

.cl-progress {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 2px;
  flex-shrink: 0;
}

.cl-progress-step {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid var(--ed-border-light, #e2e8f0);
  border-radius: var(--ed-radius-sm, 6px);
  background: var(--ed-white, #fff);
  font-size: 11px;
  color: var(--ed-text-muted, #64748b);
  cursor: default;
}

.cl-progress-step:not(:disabled) {
  cursor: pointer;
}

.cl-progress-step.is-active {
  border-color: var(--ed-navy, #0f1f33);
  background: var(--ed-navy, #0f1f33);
  color: #fff;
}

.cl-progress-step.is-done:not(.is-active) {
  border-color: var(--ed-amber, #d9a11e);
  color: var(--ed-navy, #0f1f33);
}

.cl-progress-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 10px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.06);
}

.cl-progress-step.is-active .cl-progress-num {
  background: rgba(255, 255, 255, 0.2);
}

.cl-progress-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cl-panel {
  padding: 4px 0 0;
}

.cl-panel--flush .cw-workspace {
  margin-top: 0;
}

.cl-intro {
  font-size: var(--ed-text-sm, 13px);
  color: var(--ed-text-muted, #64748b);
  margin: 0 0 12px;
  line-height: 1.45;
}

.cl-intro--tight {
  margin-bottom: 8px;
}

.cl-form-grid--setup-dates {
  margin-top: 4px;
}

.cl-room-type-field {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--ed-border, #e2e8f0);
}

.cl-room-type-combobox {
  max-width: 520px;
}

.cl-hint--above {
  margin: 0 0 6px;
}

.cl-room-type-actions {
  margin: 8px 0 0;
}

.cl-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.cl-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cl-label {
  font-size: var(--ed-text-sm, 13px);
  font-weight: 600;
  color: var(--ed-navy, #0f1f33);
}

.cl-field--full {
  grid-column: 1 / -1;
}

.cl-field--locked .cl-label {
  color: var(--ed-text-muted, #64748b);
}

.cl-locked-decision {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 12px;
  border: 1px solid var(--ed-border-light, #e2e8f0);
  border-radius: var(--ed-radius-sm, 6px);
  background: rgba(232, 244, 236, 0.35);
}

.cl-contract-type-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--ed-radius-pill, 999px);
  font-size: var(--ed-text-sm, 13px);
  font-weight: 700;
  color: var(--ed-navy, #0f1f33);
  background: var(--ed-white, #fff);
  border: 1px solid rgba(15, 31, 51, 0.12);
}

.cl-locked-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--ed-radius-pill, 999px);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ed-navy, #0f1f33);
  background: rgba(217, 161, 30, 0.15);
}

.cl-locked-decision .cl-hint {
  flex: 1 1 100%;
  margin: 0;
}

.cl-form-grid .ed-date-field {
  width: 100%;
}

.cl-form-grid .ed-date-display {
  width: 100%;
  font: inherit;
  font-size: var(--ed-text-sm, 13px);
  padding: 8px 10px;
  border: 1px solid var(--ed-border-light, #e2e8f0);
  border-radius: var(--ed-radius-sm, 6px);
  background: var(--ed-white, #fff);
  color: var(--ed-text, #0f1f33);
}

.cl-form-grid .ed-date-field.has-error .ed-date-display {
  border-color: #c53030;
}

.cl-input,
.cl-select {
  font: inherit;
  font-size: var(--ed-text-sm, 13px);
  padding: 8px 10px;
  border: 1px solid var(--ed-border-light, #e2e8f0);
  border-radius: var(--ed-radius-sm, 6px);
  width: 100%;
  background: var(--ed-white, #fff);
  color: var(--ed-text, #0f1f33);
}

.cl-input-error {
  border-color: #c53030;
}

.cl-field-error {
  font-size: 11px;
  color: #c53030;
  margin: 0;
}

.cl-hint {
  font-size: var(--ed-text-xs, 11px);
  color: var(--ed-text-muted, #64748b);
  margin: 0;
  line-height: 1.45;
}

.cl-dropzone {
  position: relative;
  border: 1px dashed var(--border, #cbd5e1);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  background: var(--surface-muted, #fafbfc);
  margin-bottom: 12px;
}

.cl-dropzone.is-dragover {
  border-color: var(--amber, #d9a11e);
  background: var(--amber-soft, #fef9ec);
}

.cl-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.cl-drop-title {
  margin: 0;
  font-size: 13px;
}

.cl-doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cl-doc-item {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 6px;
  padding: 8px 10px;
}

.cl-doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.cl-doc-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.cl-doc-kind {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--navy, #0f1f33);
  background: var(--amber-soft, #fef9ec);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.cl-doc-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cl-doc-meta {
  color: var(--text-muted, #64748b);
  flex-shrink: 0;
}

.cl-doc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cl-select-sm {
  width: auto;
  min-width: 120px;
  padding: 4px 6px;
  font-size: 11px;
}

.cl-empty {
  font-size: 13px;
  color: var(--text-muted, #64748b);
  margin: 0;
}

.cl-loader-alt {
  margin: 8px 0 0;
  font-size: 12px;
}

.cl-review-meta {
  font-size: 12px;
  color: var(--text-muted, #64748b);
  margin: 0 0 10px;
}

.cl-review-return-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 10px 12px;
  margin: 0 0 12px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  font-size: 13px;
  color: var(--text-muted, #64748b);
}

.cl-panel--review .cl-intro {
  margin-bottom: 10px;
}

.cl-panel--review > .gate-banner.info {
  padding-top: 10px;
  padding-bottom: 10px;
}

.cl-panel--review .review-page {
  margin-top: 4px;
}

body.ed-contract-loading-view .step-indicator {
  display: none;
}

body.ed-contract-loading-view .card-footer {
  display: flex;
}

body.ed-contract-loading-view .cw-workspace .ws-breadcrumb,
body.ed-contract-loading-view .cw-workspace .cw-header {
  display: none;
}

.cl-capability {
  margin-top: 8px;
  padding-top: 8px;
}

.cl-capability-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.cl-capability-path {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ed-text-muted, #64748b);
}

.cl-capability.is-proceed .cl-capability-path {
  color: var(--navy, #0f1f33);
}

.cl-capability-title {
  font-size: 12px;
  font-weight: 600;
}

.cl-capability .cl-hint {
  margin-top: 4px;
}

.cl-extract-failure {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: var(--ed-surface-raised, #fff);
  border-left: 3px solid var(--ed-warning, #b45309);
}

.cl-extract-failure-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
}

.cl-extract-failure .cl-hint {
  margin: 0 0 6px;
}

.cl-extract-failure .btn {
  margin-top: 2px;
}

.cl-evidence-panel {
  margin: 0 0 12px;
  padding: 8px 10px 10px;
  background: var(--ed-surface-raised, #fff);
}

.cl-evidence-lead {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
}

.cl-evidence-help {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ed-ink-muted, #5c6570);
}

.cl-struct {
  margin: 0 0 12px;
  padding: 0;
  background: transparent;
}
.cl-struct-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
}
.cl-struct-help {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ed-ink-muted, #5c6570);
}
.cl-struct-list,
.cl-rate-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.cl-rate-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: start;
  padding: 8px 10px;
  background: var(--ed-surface, #fff);
  border-radius: 6px;
}
.cl-rate-card-main {
  min-width: 0;
}
.cl-rate-status {
  margin: 0 0 4px;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ed-ink-muted, #5c6570);
}
.cl-rate-card.is-confirmed .cl-rate-status,
.cl-rate-added {
  color: var(--ed-ink, #1b2430);
}
.cl-rate-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  color: var(--ed-ink-muted, #5c6570);
}
.cl-rate-label {
  margin: 8px 0 0;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ed-ink-muted, #5c6570);
}
.cl-rate-label:first-of-type {
  margin-top: 0;
}
.cl-rate-product,
.cl-rate-validity,
.cl-rate-basis {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
}
.cl-rate-validity,
.cl-rate-basis {
  font-weight: 500;
}
.cl-rate-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px 14px;
  margin: 8px 0 0;
}
.cl-rate-channel-name {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.cl-rate-occ,
.cl-rate-occs .cl-rate-occ {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  line-height: 1.45;
}
.cl-rate-occs {
  margin: 8px 0 0;
}
.cl-rate-periods-wrap {
  margin: 8px 0 0;
  max-width: 100%;
  overflow-x: auto;
}
.cl-rate-periods {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.cl-rate-periods th,
.cl-rate-periods td {
  padding: 3px 8px 3px 0;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}
.cl-rate-periods thead th {
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ed-ink-muted, #5c6570);
  font-weight: 600;
}
.cl-rate-unresolved {
  margin: 8px 0 0;
  padding-top: 6px;
}
.cl-rate-unresolved-title {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 600;
}
.cl-rate-unresolved ul {
  margin: 0;
  padding-left: 16px;
  font-size: 11px;
  color: var(--ed-ink-muted, #5c6570);
}
.cl-rate-card-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
}
.cl-rate-card-actions .btn {
  white-space: nowrap;
}
.cl-rate-card.is-confirmed {
  opacity: 0.88;
}
.cl-ev-source {
  margin: 0 0 10px;
}
.cl-ev-source > summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--ed-ink-muted, #5c6570);
  list-style: none;
}
.cl-ev-source > summary::-webkit-details-marker {
  display: none;
}
.cl-ev-source > summary::before {
  content: "▸ ";
}
.cl-ev-source[open] > summary::before {
  content: "▾ ";
}
.cl-ev-source[open] > summary {
  margin-bottom: 8px;
}

.cl-ev-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 10px 14px;
  align-items: start;
}

.cl-ev-select-col {
  min-width: 0;
}

.cl-ev-step {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 600;
}

.cl-ev-step-help,
.cl-ev-selected-empty,
.cl-ev-note {
  margin: 0 0 6px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--ed-ink-muted, #5c6570);
}

.cl-ev-classify {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0;
  padding: 8px 10px;
  max-height: 420px;
  overflow: auto;
  background: var(--ed-canvas, #f6f3ee);
  border: 1px solid var(--ed-border-subtle, rgba(15, 31, 51, 0.12));
  border-radius: 4px;
}

.cl-ev-q {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 600;
}

.cl-ev-picked {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  word-break: break-word;
}

.cl-ev-picked-list {
  margin: 0 0 8px;
  padding-left: 16px;
  font-size: 12px;
}

.cl-ev-meaning {
  margin: 0 0 8px;
}

.cl-ev-meaning select,
.cl-ev-field select {
  width: 100%;
  max-width: 100%;
  font-size: 12px;
}

.cl-ev-field {
  margin: 0 0 8px;
}

.cl-ev-source-name {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  word-break: break-word;
}

.cl-ev-context {
  margin: 0 0 8px;
  padding-top: 6px;
  border-top: 1px solid var(--ed-border-subtle, rgba(15, 31, 51, 0.12));
}

.cl-ev-withdraw {
  margin-top: 8px;
}

.cl-ev-withdraw-btn {
  width: 100%;
  white-space: normal;
  line-height: 1.25;
}

.cl-ev-apply .btn {
  width: 100%;
  white-space: normal;
  line-height: 1.25;
}

.cl-ev-scroll {
  max-height: 380px;
  overflow: auto;
}

.cl-ev-page {
  margin: 0 0 10px;
}

.cl-ev-page-title {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
}

.cl-ev-cluster {
  margin: 0 0 8px;
}

.cl-ev-related {
  margin: 0 0 8px;
  padding: 2px 0 2px 8px;
  border-left: 2px solid var(--ed-ink, #1f2a36);
}

.cl-ev-related-kicker {
  margin: 0 0 2px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ed-ink-muted, #5c6570);
}

.cl-ev-item--related-follow {
  padding-left: 12px;
}

.cl-ev-cluster-label {
  margin: 0 0 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ed-ink-muted, #5c6570);
}

.cl-ev-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cl-ev-item {
  font-size: 13px;
  line-height: 1.35;
  padding: 2px 6px;
  border-radius: 3px;
}

.cl-ev-item:has(.cl-ev-pick input:checked) {
  background: rgba(15, 31, 51, 0.06);
}

.cl-ev-item:has(.cl-ev-pick input:checked) .cl-ev-val {
  font-weight: 600;
}

.cl-ev-pick {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.cl-ev-pick input {
  margin-top: 3px;
  flex: 0 0 auto;
}

.cl-ev-val {
  flex: 1 1 auto;
  font-weight: 500;
}

.cl-ev-st {
  flex: 0 0 auto;
  font-size: 10px;
  color: var(--ed-ink-muted, #5c6570);
}

.cl-ev-item--mapped_structured .cl-ev-val {
  font-weight: 600;
}

.cl-ev-item--classified_unsupported .cl-ev-st {
  color: var(--ed-warning, #b45309);
}

.cl-hint--unsup {
  color: var(--ed-warning, #b45309);
}

.cl-ev-classed {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-size: 11px;
}

@media (max-width: 1100px) {
  .cl-orient-identity {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cl-orient-di,
  .cl-orient-workflow {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 900px) {
  .cl-orient-identity {
    grid-template-columns: 1fr 1fr;
  }
  .cl-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Contract Loading shell: viewport column, work-area scroll, reserved action row */
html:has(body.ed-contract-loading-view) {
  height: 100%;
  overflow: hidden;
}

body.ed-contract-loading-view {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

body.ed-contract-loading-view .ed-app {
  height: 100vh;
  max-height: 100vh;
  min-height: 0;
  overflow: hidden;
}

body.ed-contract-loading-view .ed-sidebar {
  padding: 16px 10px 16px;
}

body.ed-contract-loading-view .ed-brand-tagline {
  display: none;
}

body.ed-contract-loading-view .ed-main {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

body.ed-contract-loading-view .ed-topbar {
  flex-shrink: 0;
  padding: 12px 20px 8px;
}

body.ed-contract-loading-view .ed-content.ed-content--contract-loading {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  flex: 1 1 0%;
  min-height: 0;
  height: 0;
  overflow: hidden;
  padding: 0 16px 0 0;
  gap: 0;
}

.cl-contract-rail {
  grid-column: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px 12px 8px 10px;
  border-right: 1px solid var(--ed-border-light, #e2e8f0);
  background: var(--ed-ivory, #f7f3eb);
}

.cl-contract-rail[hidden] {
  display: none;
}

body.ed-contract-loading-view .ed-content--contract-loading .main-card {
  grid-column: 2;
  min-width: 0;
  min-height: 0;
  height: auto;
  max-height: 100%;
  align-self: stretch;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.ed-contract-loading-view .ed-suppliers-root .card-body,
body.ed-contract-loading-view .ed-content--contract-loading .card-body,
body.ed-contract-loading-view .ed-content--contract-loading #step-content {
  flex: 1 1 0%;
  min-height: 0;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

body.ed-contract-loading-view.ed-supplier-workspace-view .card-footer,
body.ed-contract-loading-view .ed-content--contract-loading .card-footer,
body.ed-contract-loading-view .card-footer {
  flex: 0 0 auto;
  position: static !important;
  bottom: auto;
  inset: auto;
  z-index: 1;
  background: var(--ed-ivory, #f7f3eb);
  border-top: 1px solid var(--ed-border-light, #e2e8f0);
}

.cl-rail-identity {
  margin-bottom: 8px;
}

.cl-rail-id-line,
.cl-rail-id-note {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--ed-navy, #0f1f33);
}

.cl-rail-id-note {
  color: var(--ed-text-muted, #64748b);
  font-weight: 500;
}

.cl-rail-facts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.cl-contract-rail .cl-orient-fact {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cl-contract-rail .cl-orient-k {
  font-size: 9px;
}

.cl-contract-rail .cl-orient-v,
.cl-contract-rail .cl-orient-v--source {
  white-space: normal;
  max-width: none;
  font-size: 11px;
  font-weight: 600;
}

.cl-rail-group {
  margin-bottom: 12px;
}

.cl-rail-group--consultant {
  margin-top: 0;
  margin-bottom: 14px;
}

.cl-rail-group--consultant .cl-rail-group-label {
  color: var(--ed-navy, #0f1f33);
  font-size: 10px;
}

.cl-rail-group--system {
  margin-bottom: 8px;
  opacity: 0.72;
}

.cl-rail-group--system .cl-rail-group-label,
.cl-rail-group--system .cl-rail-group-hint {
  font-weight: 600;
}

.cl-rail-meta {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid var(--ed-border-light, #e2e8f0);
}

.cl-rail-meta > summary {
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ed-text-muted, #64748b);
  list-style: none;
}

.cl-rail-meta > summary::-webkit-details-marker {
  display: none;
}

.cl-rail-meta[open] > summary {
  margin-bottom: 6px;
}

.cl-rail-meta .cl-rail-identity,
.cl-rail-meta .cl-rail-facts {
  margin-bottom: 6px;
}

.cl-rail-meta .cl-orient-v,
.cl-rail-meta .cl-orient-v--source {
  font-weight: 500;
  font-size: 11px;
  color: var(--ed-text-muted, #64748b);
}

.cl-rail-group-label {
  margin: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ed-text-muted, #64748b);
}

.cl-rail-group-hint {
  margin: 0 0 4px;
  font-size: 10px;
  color: var(--ed-text-muted, #64748b);
}

.cl-rail-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cl-rail-steps > li {
  margin: 0;
}

.cl-rail-step {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 3px 0;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  color: var(--ed-text-muted, #64748b);
  cursor: default;
}

button.cl-rail-step {
  cursor: pointer;
}

.cl-rail-step--system {
  font-size: 11px;
  font-weight: 500;
  cursor: default;
  pointer-events: none;
}

.cl-rail-step--system .cl-rail-step-status {
  margin-left: auto;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ed-text-muted, #64748b);
}

.cl-rail-consultant-item .cl-rail-complete-work {
  margin: 0;
}

.cl-rail-step--consultant[aria-current="step"] {
  cursor: default;
}

.cl-rail-step--consultant {
  font-size: 12px;
  font-weight: 600;
  color: var(--ed-navy, #0f1f33);
}

.cl-rail-step.is-empty {
  opacity: 0.45;
}

.cl-rail-step.is-complete {
  color: #1f6b4a;
  opacity: 1;
}

.cl-rail-step.is-active {
  opacity: 1;
  color: var(--ed-navy, #0f1f33);
}

.cl-rail-step--consultant.is-active {
  font-size: 13px;
  font-weight: 800;
}

.cl-rail-mark {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.cl-rail-mark--complete {
  color: #1f6b4a;
}

.cl-rail-mark--review {
  color: var(--ed-navy, #0f1f33);
}

.cl-rail-mark--input {
  color: var(--ed-navy, #0f1f33);
}

.cl-rail-mark--empty {
  color: #94a3b8;
}

.cl-rail-mark--gateway,
.cl-rail-section.is-gateway {
  color: var(--ed-text-muted, #64748b);
}

.cl-rail-section.is-gateway.is-active {
  color: var(--ed-navy, #0f1f33);
}

.cl-rail-section.is-review {
  color: var(--ed-navy, #0f1f33);
}

.cl-rail-section.is-input {
  color: var(--ed-navy, #0f1f33);
}

.cl-rail-sections {
  margin: 2px 0 6px 12px;
  padding-left: 6px;
  border-left: 1px solid var(--ed-border-light, #e2e8f0);
}

.cl-rail-section-group {
  margin-bottom: 6px;
}

.cl-rail-section-group-label {
  margin: 4px 0 2px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ed-text-muted, #64748b);
}

.cl-rail-section {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 2px 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 11px;
  color: var(--ed-text-muted, #64748b);
  cursor: pointer;
}

.cl-rail-section.is-complete {
  color: #1f6b4a;
}

.cl-rail-section.is-attention {
  color: #92400e;
  font-weight: 600;
}

.cl-rail-section.is-visited {
  color: var(--ed-navy, #0f1f33);
}

.cl-rail-section.is-active {
  color: var(--ed-navy, #0f1f33);
  font-weight: 700;
}

.cl-rail-section.is-na {
  opacity: 0.4;
}

.review-page--audit .review-audit-identity {
  margin: 0 0 4px;
  line-height: 1.35;
}

.review-page--audit .review-audit-supplier {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ed-navy, #0f1f33);
}

.review-page--audit .review-audit-contract {
  display: block;
  font-size: 11px;
  color: var(--ed-text-muted, #64748b);
}

.review-audit {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-audit-group-title {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ed-text-muted, #64748b);
}

.review-audit-property-name {
  margin: 8px 0 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ed-navy, #0f1f33);
}

.review-audit-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 3px 0;
  border-bottom: 1px solid var(--ed-border-light, #eef2f6);
  font-size: 12px;
}

.review-audit-row:last-child {
  border-bottom: 0;
}

.review-audit-mark {
  display: flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  color: var(--ed-text-muted, #64748b);
}

.review-audit-mark--complete { color: #1f6b4a; }
.review-audit-mark--review { color: #92400e; }
.review-audit-mark--input { color: #334155; }

.review-audit-label {
  min-width: 0;
  color: var(--ed-navy, #0f1f33);
}

.review-audit-summary {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--ed-text-muted, #64748b);
}

.review-audit-state {
  font-size: 11px;
  font-weight: 600;
  color: var(--ed-text-muted, #64748b);
  white-space: nowrap;
}

.review-audit-action {
  font-size: 11px;
  white-space: nowrap;
}

.review-needs-attention {
  padding: 12px 14px;
  border-radius: 8px;
  border: 2px solid #fedf89;
  background: #fffaeb;
  margin: 0 0 12px;
}

.review-needs-attention h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ed-navy, #0f1f33);
  line-height: 1.25;
}

.review-needs-attention ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.review-needs-attention li {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ed-navy, #0f1f33);
}

.review-needs-attention p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ed-text-muted, #64748b);
  line-height: 1.45;
}

.review-needs-attention--clear {
  border-color: #86efac;
  background: #f0fdf4;
}

.review-confirmation-status {
  margin-top: 2px;
}

.review-audit-row.is-attention-focus {
  background: #fff8e6;
  box-shadow: inset 3px 0 0 var(--ed-amber, #d9a11e);
}

.review-audit-row.is-attention-focus-primary {
  background: #fffaeb;
}

.review-needs-attention li.review-attention-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  list-style: disc;
}

.review-attention-label {
  min-width: 0;
  flex: 1;
}

.review-attention-action {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.review-attention-item.is-primary .review-attention-label {
  font-weight: 600;
}
