/* The new-entity wizard (Pages/Wizard.razor). Self-contained, like the main view: it does not rely on XAF's layout or theme. */
.wizard { box-sizing: border-box; max-width: 860px; margin: 0 auto; padding: 14px 20px 40px; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1f2933; }
.wizard h1 { font-size: 1.3rem; margin: 0; }
.wizard h2 { font-size: 1.1rem; margin: 0 0 8px; }
.wizard h3 { font-size: 1rem; margin: 0 0 6px; word-break: break-all; }
.wizard-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 10px; }
.wizard-home { color: #0b5cad; text-decoration: none; font-size: 0.95rem; }
.wizard-home:hover { text-decoration: underline; }

.wizard-steps { display: flex; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 0.85rem; color: #7b8794; }
.wizard-steps li { padding: 3px 12px; border-radius: 12px; background: #f0f4f8; }
.wizard-steps li[aria-current="step"] { background: #2f80ed; color: #fff; font-weight: 600; }
.wizard-steps li.wizard-done { color: #067647; }

.wizard-card { padding: 16px 18px; border: 1px solid #d9e2ec; border-radius: 8px; background: #fff; }
.wizard-help { margin: 4px 0 10px; color: #52606d; font-size: 0.88rem; }
.wizard-message { margin: 8px 0; padding: 10px 14px; border-radius: 6px; background: #f5f7fa; }
.wizard-error { background: #fdecea; color: #8a1c13; }
.wizard-ok { margin: 6px 0; padding: 8px 12px; border-radius: 6px; background: #e8f5ee; color: #05603a; }
.wizard-warn { margin: 6px 0; padding: 8px 12px; border-radius: 6px; background: #fff4e0; color: #7a4a00; }
.wizard-problems { margin: 6px 0; padding: 8px 12px 8px 28px; border-radius: 6px; background: #fdecea; color: #8a1c13; font-size: 0.88rem; }

.wizard-field { display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px; }
.wizard-field label { font-size: 0.82rem; font-weight: 600; color: #3e4c59; }
.wizard-field input[type="text"], .wizard-field input[type="number"], .wizard-field select, .wizard-table select, .wizard-actions select { padding: 6px 8px; border: 1px solid #bcccdc; border-radius: 6px; background: #fff; font: inherit; }
.wizard-field input[type="number"] { width: 6rem; }
.wizard-check { flex-direction: row; align-items: center; gap: 8px; }
.wizard-check label { font-weight: 400; }
.wizard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 14px; }

.wizard-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.wizard-or { color: #7b8794; font-size: 0.88rem; }
.wizard-primary, .wizard-secondary { padding: 7px 16px; border-radius: 6px; font: inherit; font-weight: 600; cursor: pointer; }
.wizard-primary { border: 0; background: #2f80ed; color: #fff; }
.wizard-primary:hover:not(:disabled) { background: #1f6fdc; }
.wizard-secondary { border: 1px solid #bcccdc; background: #fff; color: #1f2933; }
.wizard-link { border: 0; background: none; color: #0b5cad; font: inherit; cursor: pointer; }
.wizard-actions button:disabled { opacity: 0.5; cursor: not-allowed; }

.wizard-added { margin: 0 0 12px; padding: 8px 12px 8px 28px; border-radius: 6px; background: #e8f5ee; font-size: 0.9rem; }
.wizard-review { margin-top: 6px; }
.wizard-mapping { margin: 10px 0; }
.wizard-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 6px 0; }
.wizard-table th { text-align: left; font-weight: 600; color: #52606d; box-shadow: inset 0 -2px 0 #d9e2ec; padding: 5px 8px; }
.wizard-table td { padding: 4px 8px; border-bottom: 1px solid #e4e7eb; }
.wizard-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wizard .negative { color: #b42318; }
.wizard .positive { color: #067647; }

.wizard-sample { margin: 10px 0; }
.wizard-sample summary { cursor: pointer; font-size: 0.88rem; font-weight: 600; color: #3e4c59; }
.wizard-sample-scroll { max-width: 100%; overflow-x: auto; margin-top: 6px; border: 1px solid #e4e7eb; border-radius: 6px; }
.wizard-sample .wizard-table { margin: 0; font-size: 0.8rem; white-space: nowrap; }
.wizard-sample .wizard-table th[scope=row] { width: 2.5rem; text-align: right; color: #7b8794; font-weight: 400; box-shadow: none; background: #fafbfc; }
.wizard-muted { color: #7b8794; font-style: italic; }

/* A choice from a list with a + to add one that isn't there. */
.wizard-combo { display: flex; gap: 6px; }
.wizard-combo select, .wizard-combo input { flex: 1; min-width: 0; }
.wizard-plus { flex: none; width: 2.4rem; border: 1px solid #bcccdc; border-radius: 6px; background: #fff; color: #0b5cad; font: inherit; font-size: 1.15rem; font-weight: 600; cursor: pointer; }
.wizard-plus:hover { background: #eef4fb; }
