/* 직원 5단계 — 예상 비용·수익 KPI 위젯 대시보드 */

.staff-step5-dash {
  --step5-capex-accent: #1d4ed8;
  --step5-capex-bg: #eff6ff;
  --step5-rev-ink: #0f172a;
  --step5-rev-muted: #64748b;
  --step5-rev-line: #cbd5e1;
  --step5-rev-surface: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0.75rem 0 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.staff-step5-dash__zone {
  padding: 14px 14px 12px;
}

.staff-step5-dash__zone--capex {
  background: linear-gradient(180deg, var(--step5-capex-bg) 0%, #fff 100%);
}

/* 예상 수익 — 비용(컬러 좌측 바)과 다른 형태, 무채색 */
.staff-step5-dash__zone--revenue {
  position: relative;
  padding: 18px 16px 16px;
  background:
    linear-gradient(180deg, #f1f5f9 0%, #f8fafc 48%, #ffffff 100%);
  isolation: isolate;
}

.staff-step5-dash__zone--revenue::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 85%);
  pointer-events: none;
  z-index: 0;
}

.staff-step5-dash__zone--revenue > * {
  position: relative;
  z-index: 1;
}

.staff-step5-dash__zone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.staff-step5-dash__zone--revenue .staff-step5-dash__zone-head {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.staff-step5-dash__zone-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.staff-step5-dash__zone--capex .staff-step5-dash__zone-title {
  color: #1e3a8a;
}

.staff-step5-dash__zone--revenue .staff-step5-dash__zone-title {
  color: var(--step5-rev-ink);
  font-size: 1.08rem;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.staff-step5-dash__zone-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.staff-step5-dash__zone--capex .staff-step5-dash__zone-tag {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.staff-step5-dash__zone--revenue .staff-step5-dash__zone-tag {
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  letter-spacing: 0.1em;
  box-shadow: none;
}

.staff-step5-dash__divider {
  margin: 0;
  border: none;
  border-top: 2px dashed #e2e8f0;
}

.staff-step5-dash__divider:has(+ .staff-step5-dash__zone--revenue) {
  border-top: none;
  height: 1px;
  background: #cbd5e1;
}

.staff-step5-widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 8px;
}

.staff-step5-widget-grid--capex {
  --capex-label-size: clamp(0.66rem, 0.48rem + 0.45vw, 0.8rem);
  --capex-value-size: clamp(0.92rem, 0.55rem + 1.15vw, 1.48rem);
  --capex-vat-incl-size: calc(var(--capex-value-size) * 1.5);
  --capex-grand-label-size: calc(var(--capex-label-size) * 1.5);
  grid-template-columns: 2fr 2fr 2fr 3fr;
  align-items: stretch;
}

.staff-step5-widget-grid--capex > .staff-step5-widget {
  min-width: 0;
  height: 100%;
  justify-content: flex-start;
  gap: 8px;
}

/* 예상 비용 4카드: 금액은 우측 하단 */
.staff-step5-widget-grid--capex > .staff-step5-widget .staff-step5-widget__label {
  align-self: flex-start;
  font-size: var(--capex-label-size);
}

.staff-step5-widget-grid--capex > .staff-step5-widget .staff-step5-widget__value,
.staff-step5-widget-grid--capex > .staff-step5-widget .staff-step5-widget__value-stack {
  margin-top: auto;
  align-self: flex-end;
  text-align: right;
  max-width: 100%;
}

.staff-step5-widget-grid--capex > .staff-step5-widget .staff-step5-widget__value {
  font-size: var(--capex-value-size);
}

.staff-step5-widget-grid--capex > .staff-step5-widget--grand .staff-step5-widget__label {
  font-size: var(--capex-grand-label-size);
}

.staff-step5-widget-grid--capex > .staff-step5-widget--grand .staff-step5-widget__vat-incl {
  font-size: var(--capex-vat-incl-size);
  white-space: normal;
}

.staff-step5-widget-grid--capex > .staff-step5-widget--grand .staff-step5-widget__value {
  font-size: var(--capex-value-size);
}

.staff-step5-widget-grid--revenue {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr);
  gap: 0;
  align-items: stretch;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.staff-step5-rev-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 3.4rem;
  padding: 0 0.25rem;
  background: #f8fafc;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  color: #64748b;
  pointer-events: none;
  user-select: none;
}

.staff-step5-rev-flow__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  border: 1.5px solid #94a3b8;
  background: #fff;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  color: #334155;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.staff-step5-widget {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  min-height: 88px;
  padding: 14px 14px 16px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #94a3b8;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 72%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 20px -12px rgba(15, 23, 42, 0.12);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.14s ease;
}

.staff-step5-widget:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.staff-step5-widget:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.staff-step5-dash__zone--revenue .staff-step5-widget:focus-visible {
  outline-color: #334155;
}

.staff-step5-widget--highlight {
  border-width: 1px;
  border-left-width: 4px;
  border-color: #93c5fd;
  border-left-color: #2563eb;
  background: linear-gradient(180deg, #eff6ff 0%, #fff 78%);
}

.staff-step5-widget--ok {
  border-color: #bbf7d0;
  border-left-color: #16a34a;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 78%);
}

.staff-step5-widget--warn {
  border-color: #fde68a;
  border-left-color: #d97706;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 78%);
}

/* 견적비용 — 앰버 */
.staff-step5-widget--quote {
  border-color: #fde68a;
  border-left-color: #d97706;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 78%);
}

.staff-step5-widget--quote.staff-step5-widget--ok {
  border-color: #fcd34d;
  border-left-color: #b45309;
  background: linear-gradient(180deg, #fef3c7 0%, #fff 78%);
}

.staff-step5-widget--quote .staff-step5-widget__label {
  color: #92400e;
}

.staff-step5-widget--quote.staff-step5-widget--ok .staff-step5-widget__value,
.staff-step5-dash__zone--capex .staff-step5-widget--quote.staff-step5-widget--ok .staff-step5-widget__value {
  color: #b45309;
}

/* 이 주소 부대비 — 견적비용과 같은 앰버 결(조금 더 진한 오렌지) */
.staff-step5-widget--incidental {
  border-color: #fed7aa;
  border-left-color: #ea580c;
  background: linear-gradient(180deg, #fff7ed 0%, #fff 78%);
}

.staff-step5-widget--incidental.staff-step5-widget--ok {
  border-color: #fdba74;
  border-left-color: #c2410c;
  background: linear-gradient(180deg, #ffedd5 0%, #fff 78%);
}

.staff-step5-widget--incidental .staff-step5-widget__label {
  color: #9a3412;
}

.staff-step5-widget--incidental.staff-step5-widget--ok .staff-step5-widget__value,
.staff-step5-dash__zone--capex .staff-step5-widget--incidental.staff-step5-widget--ok .staff-step5-widget__value {
  color: #c2410c;
}

/* ── 예상 수익: 분할 패널(무채색) — 비용의 컬러 좌측 바 카드와 구분 ── */
.staff-step5-dash__zone--revenue .staff-step5-widget {
  min-height: 96px;
  padding: 18px 18px 20px;
  border: none;
  border-left: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

.staff-step5-dash__zone--revenue .staff-step5-widget::before {
  display: none;
}

.staff-step5-dash__zone--revenue .staff-step5-widget:hover {
  transform: none;
  background: #f8fafc;
  box-shadow: none;
}

.staff-step5-dash__zone--revenue .staff-step5-widget.staff-step5-widget--ok,
.staff-step5-dash__zone--revenue .staff-step5-widget.staff-step5-widget--warn,
.staff-step5-dash__zone--revenue .staff-step5-widget.staff-step5-widget--neutral,
.staff-step5-dash__zone--revenue .staff-step5-widget.staff-step5-widget--highlight {
  border: none;
  border-left: none;
  background: transparent;
}

.staff-step5-dash__zone--revenue .staff-step5-widget.staff-step5-widget--ok:hover,
.staff-step5-dash__zone--revenue .staff-step5-widget.staff-step5-widget--highlight:hover {
  background: #f8fafc;
}

.staff-step5-widget--generation,
.staff-step5-widget--revenue,
.staff-step5-dash__zone--revenue .staff-step5-widget--highlight {
  color: var(--step5-rev-ink);
}

.staff-step5-widget--generation .staff-step5-widget__label,
.staff-step5-widget--revenue .staff-step5-widget__label,
.staff-step5-dash__zone--revenue .staff-step5-widget--highlight .staff-step5-widget__label {
  color: #64748b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.staff-step5-widget--generation .staff-step5-widget__value,
.staff-step5-widget--generation.staff-step5-widget--ok .staff-step5-widget__value,
.staff-step5-dash__zone--revenue .staff-step5-widget--generation.staff-step5-widget--ok .staff-step5-widget__value {
  color: #0f172a;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.staff-step5-widget--revenue .staff-step5-widget__value,
.staff-step5-dash__zone--revenue .staff-step5-widget--highlight .staff-step5-widget__value,
.staff-step5-widget--revenue.staff-step5-widget--ok .staff-step5-widget__value,
.staff-step5-dash__zone--revenue .staff-step5-widget--highlight.staff-step5-widget--ok .staff-step5-widget__value,
.staff-step5-dash__zone--revenue .staff-step5-widget--ok .staff-step5-widget__value {
  color: #0f172a;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.staff-step5-widget__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.01em;
}

.staff-step5-widget__value {
  font-size: 1.48rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #0f172a;
  word-break: keep-all;
}

.staff-step5-widget__value-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  min-width: 0;
}

.staff-step5-widget__value-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  min-width: 0;
}

.staff-step5-widget__vat-incl {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #475569;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 총합: VAT 포함(큰 글씨) · VAT 제외(왼쪽 카드와 동일) — 크기는 --capex-* 변수로 화면 폭에 맞춤 */
.staff-step5-widget--grand {
  min-height: 108px;
  padding: 14px 14px 16px;
}

.staff-step5-widget--grand .staff-step5-widget__label {
  font-size: calc(0.8rem * 1.5);
}

.staff-step5-widget--grand .staff-step5-widget__vat-incl {
  font-size: calc(1.48rem * 1.5);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #1d4ed8;
}

.staff-step5-widget--grand .staff-step5-widget__value {
  font-size: 1.48rem;
  font-weight: 800;
  line-height: 1.25;
  color: #475569;
}

.staff-step5-widget--grand.staff-step5-widget--ok .staff-step5-widget__vat-incl,
.staff-step5-dash__zone--capex .staff-step5-widget--grand.staff-step5-widget--ok .staff-step5-widget__vat-incl {
  color: #1d4ed8;
}

.staff-step5-widget--grand.staff-step5-widget--ok .staff-step5-widget__value,
.staff-step5-dash__zone--capex .staff-step5-widget--grand.staff-step5-widget--ok .staff-step5-widget__value {
  color: #64748b;
}

.staff-step5-widget__vat-incl.hidden {
  display: none;
}

.staff-step5-widget--ok .staff-step5-widget__vat-incl {
  color: #0f766e;
}

.staff-step5-dash__zone--capex .staff-step5-widget--ok .staff-step5-widget__vat-incl {
  color: #1d4ed8;
}

.staff-step5-widget--ok .staff-step5-widget__value {
  color: #0f766e;
}

.staff-step5-dash__zone--capex .staff-step5-widget--ok .staff-step5-widget__value {
  color: #1d4ed8;
}

/* 예상 비용 3카드(설치·견적·부대비): 금액은 검정 */
.staff-step5-widget-grid--capex > .staff-step5-widget:not(.staff-step5-widget--grand) .staff-step5-widget__value,
.staff-step5-widget-grid--capex > .staff-step5-widget:not(.staff-step5-widget--grand).staff-step5-widget--ok .staff-step5-widget__value,
.staff-step5-dash__zone--capex .staff-step5-widget:not(.staff-step5-widget--grand).staff-step5-widget--ok .staff-step5-widget__value,
.staff-step5-dash__zone--capex .staff-step5-widget--quote.staff-step5-widget--ok .staff-step5-widget__value,
.staff-step5-dash__zone--capex .staff-step5-widget--incidental.staff-step5-widget--ok .staff-step5-widget__value {
  color: #0a0a0a;
}

.staff-step5-dash--compare {
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.12),
    0 4px 16px rgba(15, 23, 42, 0.08);
}

.staff-step5-scenario-note {
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 0.8rem;
  line-height: 1.45;
}

.staff-step6-scenario-compare-mount:not(.hidden) {
  margin-bottom: 0.85rem;
}

.staff-step6-scenario-compare {
  padding: 0.65rem 0.7rem;
  border-radius: 10px;
  border: 1px solid #dbeafe;
  background: #f8fbff;
}

.staff-step6-scenario-compare__lead {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #334155;
}

.staff-step6-scenario-compare__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.staff-step6-scenario-compare__table th,
.staff-step6-scenario-compare__table td {
  padding: 0.4rem 0.45rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}

.staff-step6-scenario-compare__table thead th {
  font-weight: 700;
  color: #475569;
  background: rgba(248, 250, 252, 0.9);
}

.staff-step6-scenario-compare__table th[scope="row"] {
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
}

.staff-step6-scenario-compare__table td:last-child {
  font-weight: 700;
  color: #047857;
}

.staff-step6-scenario-compare__segments {
  margin-top: 0.55rem;
}

.staff-step6-scenario-compare__segments-title {
  margin: 0 0 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #475569;
}

.staff-step6-scenario-compare__segment-list {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.74rem;
  line-height: 1.45;
  color: #334155;
}

.staff-step5-widget__meta,
.staff-step5-widget__action {
  display: none !important;
}

.staff-step6-equip--cards {
  margin: 0.65rem 0 0.85rem;
}

.staff-step6-equip--cards .staff-step6-equip-card {
  align-items: stretch;
  min-height: 5.8rem;
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.staff-step6-equip--cards .staff-step6-equip-card__main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.95rem 0.95rem 0.95rem 1.05rem;
}

.staff-step6-equip--cards .staff-step6-equip-card__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.staff-step6-equip--cards .staff-step6-equip-card__icon {
  margin-left: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  flex: 0 0 auto;
}

.staff-step6-equip--cards .staff-step6-equip-card__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.staff-step6-equip--cards .staff-step6-equip-card__label {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.staff-step6-equip--cards .staff-step6-equip-card__name {
  font-size: 1.18rem;
  line-height: 1.25;
  white-space: normal;
}

.staff-step6-equip--cards .staff-step6-equip-card__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  flex: 0 0 auto;
  min-width: 11.5rem;
  max-width: 42%;
  border-left: 1px solid #e2e8f0;
  background: #f8fafc;
}

.staff-step6-equip--cards .staff-step6-equip-card__spec {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
  min-width: 0;
}

.staff-step6-equip--cards .staff-step6-equip-card__spec + .staff-step6-equip-card__spec {
  border-left: 1px solid #e2e8f0;
}

.staff-step6-equip--cards .staff-step6-equip-card__spec-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.staff-step6-equip--cards .staff-step6-equip-card__spec-value {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  word-break: keep-all;
}

.staff-step6-equip--cards .staff-step6-equip-card--empty .staff-step6-equip-card__spec-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: #94a3b8;
}

.staff-step6-equip--cards .staff-step6-equip-card[data-staff-equipment-focus="module"] .staff-step6-equip-card__specs {
  background: #eff6ff;
  border-left-color: #bfdbfe;
}

.staff-step6-equip--cards .staff-step6-equip-card[data-staff-equipment-focus="module"] .staff-step6-equip-card__spec + .staff-step6-equip-card__spec {
  border-left-color: #bfdbfe;
}

.staff-step6-equip--cards .staff-step6-equip-card[data-staff-equipment-focus="module"] .staff-step6-equip-card__spec-value {
  color: #1d4ed8;
}

.staff-step6-equip--cards .staff-step6-equip-card[data-staff-equipment-focus="inverter"] .staff-step6-equip-card__specs {
  background: #ecfdf5;
  border-left-color: #a7f3d0;
}

.staff-step6-equip--cards .staff-step6-equip-card[data-staff-equipment-focus="inverter"] .staff-step6-equip-card__spec + .staff-step6-equip-card__spec {
  border-left-color: #a7f3d0;
}

.staff-step6-equip--cards .staff-step6-equip-card[data-staff-equipment-focus="inverter"] .staff-step6-equip-card__spec-value {
  color: #047857;
}

.staff-step6-equip-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.staff-step6-equip-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.input-staff-equipment .staff-step6-equip-card-wrap {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.input-staff-equipment .staff-step6-equip-card {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.input-staff-equipment .staff-step6-equip-card--interactive:hover,
.input-staff-equipment .staff-step6-equip-card--interactive:focus-visible,
.input-staff-equipment .staff-step6-equip-card--selected {
  background: #f0fdf4;
}

.staff-step6-equip-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 4.6rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  color: #0f172a;
  text-align: left;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
  font: inherit;
}

.staff-step6-equip-card--readonly {
  cursor: default;
}

.staff-step6-equip-card--interactive {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.staff-step6-equip-card--interactive:hover,
.staff-step6-equip-card--interactive:focus-visible {
  border-color: #86efac;
  background: #f0fdf4;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.12);
  outline: none;
}

.staff-step6-equip-card--selected {
  border-color: #86efac;
  background: #f0fdf4;
}

.staff-step6-equip-card--empty {
  border-style: dashed;
}

.staff-step6-equip-card__action {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: #15803d;
}

.staff-step6-equip-card__manage {
  align-self: flex-end;
}

.input-staff-equipment .staff-step6-equip-card__manage {
  flex: 0 0 auto;
  align-self: center;
  position: relative;
  z-index: 2;
  margin: 0 0.65rem 0 0;
  pointer-events: auto;
}

.staff-step6-equip-card__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  background: #e2e8f0;
  color: #334155;
}

.staff-step6-equip-card__icon--module {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.staff-step6-equip-card__icon--inverter {
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
}

.staff-step6-equip-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  flex: 1 1 auto;
}

.staff-step6-equip-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.staff-step6-equip-card__name {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-step6-equip-card__meta {
  font-size: 0.74rem;
  color: #64748b;
}

.staff-step6-equip .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .staff-step6-equip-cards {
    grid-template-columns: 1fr;
  }

  .staff-step6-equip--cards .staff-step6-equip-card {
    flex-wrap: wrap;
  }

  .staff-step6-equip--cards .staff-step6-equip-card__main {
    flex: 1 1 100%;
  }

  .staff-step6-equip--cards .staff-step6-equip-card__specs {
    flex: 1 1 100%;
    max-width: none;
    min-width: 0;
    border-left: none;
    border-top: 1px solid #e2e8f0;
  }
}

/* 상세 다이얼로그 */
.staff-step6-detail-dialog {
  width: min(920px, calc(100vw - 2rem));
  max-height: min(88vh, 900px);
  padding: 0;
  border: none;
  border-radius: 14px;
  background: transparent;
}

.staff-step6-detail-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.staff-step6-detail-dialog__box {
  display: flex;
  flex-direction: column;
  max-height: min(88vh, 900px);
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}

.staff-step6-detail-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.staff-step6-incidental-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 0.85rem;
  margin: 0 0 0.85rem;
}

.staff-step6-incidental-page-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.staff-step6-detail-dialog__head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.staff-step6-detail-dialog__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.staff-step6-detail-dialog__close {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.staff-step6-detail-dialog__close:hover {
  background: #f1f5f9;
}

.staff-step6-detail-dialog__body {
  padding: 14px 16px 18px;
  overflow: auto;
}

.staff-step6-detail-dialog__body .staff-step6-subtitle {
  margin-top: 0;
}

.staff-step6-detail-dialog__body .staff-step6-grand-total-hero,
.staff-step6-detail-dialog__body .staff-step6-gen-hero,
.staff-step6-detail-dialog__body .staff-step6-rev-hero {
  margin-top: 0.25rem;
}

.staff-step6-detail-dialog__profit-mount {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.staff-step6-detail-dialog__profit-head {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
}

.staff-step6-detail-dialog--wide {
  width: min(1080px, calc(100vw - 1.5rem));
}

.staff-step6-detail-dialog--main-cost {
  width: min(720px, calc(100vw - 2rem));
}

.staff-step6-detail-dialog--main-cost table.staff-quote-detail {
  width: 100%;
  border-collapse: collapse;
  font-size: 9pt;
  line-height: 1.5;
  background: #fff;
}

.staff-step6-detail-dialog--main-cost table.staff-quote-detail th,
.staff-step6-detail-dialog--main-cost table.staff-quote-detail td {
  border: 1px solid #c8d0d8;
  padding: 5px 6px;
  text-align: left;
  vertical-align: middle;
}

.staff-step6-detail-dialog--main-cost table.staff-quote-detail thead th {
  background: #f1f3f6;
  border-color: #0e1319;
  border-width: 1px 1px 1.5px;
  font-size: 8pt;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #39424e;
}

.staff-step6-detail-dialog--main-cost table.staff-quote-detail td.c {
  text-align: center;
  color: #79838f;
  width: 28px;
}

.staff-step6-detail-dialog--main-cost table.staff-quote-detail td.nm {
  font-weight: 600;
}

.staff-step6-detail-dialog--main-cost table.staff-quote-detail td.u {
  text-align: center;
  font-size: 8.5pt;
}

.staff-step6-detail-dialog--main-cost table.staff-quote-detail td.r {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.staff-step6-detail-dialog--main-cost table.staff-quote-detail td.sp,
.staff-step6-detail-dialog--main-cost table.staff-quote-detail td.nt {
  font-size: 8.5pt;
  color: #39424e;
}

.staff-step6-detail-dialog--main-cost table.staff-quote-detail tfoot td {
  border-color: #0e1319;
  padding: 7px 6px;
}

.staff-step6-detail-dialog--main-cost table.staff-quote-detail tfoot .lb {
  text-align: center;
  letter-spacing: 0.16em;
  font-size: 8.5pt;
  font-weight: 700;
}

.staff-step6-detail-dialog--main-cost table.staff-quote-detail tfoot .r {
  text-align: right;
  font-weight: 700;
}

.staff-step6-detail-dialog--main-cost table.staff-quote-detail tfoot .grand td {
  border-top: 1.5px solid #0e1319;
  background: #f1f3f6;
  font-size: 11.5pt;
}

.staff-step6-detail-dialog--main-cost table.staff-quote-detail .staff-step6-extra-input {
  width: 100%;
  min-width: 3.2rem;
  box-sizing: border-box;
  padding: 1px 2px;
  font: inherit;
  border: 1px solid transparent;
  background: transparent;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.staff-step6-detail-dialog--main-cost table.staff-quote-detail .staff-step6-extra-input:hover,
.staff-step6-detail-dialog--main-cost table.staff-quote-detail .staff-step6-extra-input:focus {
  border-color: #c8d0d8;
  outline: none;
  background: #fff;
}

.staff-step6-main-cost-kpis__hint {
  margin: 10px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #79838f;
}

.staff-step6-detail-dialog .staff-step6-default-costs {
  margin-top: 1.25rem;
}

@media (max-width: 900px) {
  .staff-step5-widget-grid--capex {
    --capex-label-size: clamp(0.64rem, 0.5rem + 0.35vw, 0.76rem);
    --capex-value-size: clamp(0.88rem, 0.58rem + 0.85vw, 1.28rem);
  }
}

@media (max-width: 640px) {
  .staff-step5-widget-grid {
    grid-template-columns: 1fr 1fr;
  }

  .staff-step5-widget-grid--capex {
    --capex-label-size: clamp(0.62rem, 0.52rem + 0.4vw, 0.74rem);
    --capex-value-size: clamp(0.9rem, 0.72rem + 1.1vw, 1.2rem);
    grid-template-columns: 1fr 1fr;
  }

  .staff-step5-widget-grid--capex .staff-step5-widget--grand {
    grid-column: 1 / -1;
  }

  .staff-step5-widget-grid--revenue {
    grid-template-columns: 1fr;
  }

  .staff-step5-rev-flow {
    width: auto;
    height: 2.75rem;
    padding: 0;
    border-left: none;
    border-right: none;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
  }

  .staff-step5-rev-flow__arrow {
    transform: rotate(90deg);
  }

  .staff-step5-widget--highlight,
  .staff-step5-widget--revenue {
    grid-column: 1 / -1;
  }
}
