/* Expiry-scenario preview inside the NSE, MCX and Delta instrument panels.
   Tredye surfaces: white card, hairline border, light mono output block. */

.hedge-scenario {
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid var(--lfc-border, #e2e8f0);
  border-radius: var(--lfc-radius, 14px);
  background: var(--lfc-surface, #fff);
  box-shadow: var(--lfc-shadow, 0 1px 2px rgba(15, 23, 42, 0.03));
}

.hedge-scenario__eyebrow {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--lfc-primary, #4f46e5);
}

.hedge-scenario__title {
  margin: 0 0 12px;
  font-family: var(--lfc-font-display, inherit);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lfc-text-strong, #0f172a);
}

.hedge-scenario button {
  font: inherit;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: var(--lfc-radius-sm, 10px);
  border: 1px solid var(--lfc-border, #e2e8f0);
  background: var(--lfc-surface, #fff);
  color: var(--lfc-text-strong, #0f172a);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.hedge-scenario button:hover {
  border-color: #c7d2fe;
  background: var(--lfc-primary-soft, #eef2ff);
  color: var(--lfc-primary, #4f46e5);
}

.hedge-scenario button:focus-visible {
  outline: 2px solid var(--lfc-primary, #4f46e5);
  outline-offset: 2px;
}

.hedge-scenario button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.hedge-scenario__label,
.hedge-scenario__source {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--lfc-muted, #64748b);
  overflow-wrap: anywhere;
}

.hedge-scenario__source:empty {
  display: none;
}

.hedge-scenario__output {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--lfc-border, #e2e8f0);
  border-radius: var(--lfc-radius-sm, 10px);
  background: var(--lfc-surface-soft, #f8fafc);
  color: var(--lfc-text-strong, #0f172a);
  font-family: var(--lfc-font-mono, monospace);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-x: auto;
}

.hedge-scenario__output:empty {
  display: none;
}

.hedge-scenario__manual {
  margin-top: 14px;
  border-top: 1px solid var(--lfc-border-soft, #eef2f6);
  padding-top: 12px;
}

.hedge-scenario__manual summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--lfc-text-strong, #0f172a);
}

.hedge-scenario__fields,
.hedge-scenario__leg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 10px 0;
}

.hedge-scenario__leg {
  padding: 10px;
  border: 1px dashed var(--lfc-border, #e2e8f0);
  border-radius: var(--lfc-radius-sm, 10px);
  background: var(--lfc-surface-soft, #f8fafc);
}

.hedge-scenario__leg p {
  grid-column: 1 / -1;
  margin: 0;
}

.hedge-scenario__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hedge-scenario__field label {
  font-size: 0.76rem;
  color: var(--lfc-muted, #64748b);
}

.hedge-scenario__field input,
.hedge-scenario__field select {
  font: inherit;
  font-size: 16px;
  min-height: 40px;
  padding: 6px 8px;
  border-radius: var(--lfc-radius-sm, 10px);
  border: 1px solid var(--lfc-border, #e2e8f0);
  background: var(--lfc-surface, #fff);
  color: var(--lfc-text-strong, #0f172a);
}

.hedge-scenario__field input:focus-visible,
.hedge-scenario__field select:focus-visible {
  border-color: var(--lfc-primary, #4f46e5);
  box-shadow: 0 0 0 3px var(--lfc-primary-soft, #eef2ff);
  outline: none;
}

.hedge-scenario__manual button {
  margin-top: 8px;
}

@media (max-width: 640px) {
  .hedge-scenario {
    padding: 14px;
  }

  .hedge-scenario button {
    width: 100%;
  }
}
