/* Onboarding wizard (Eems.Web/Pages/Onboarding.razor). Uses the variables from app.css. */
.wiz { max-width: 1100px; margin: 0 auto; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 1.5rem; margin-bottom: 1.25rem; }
.card > h2 { font-size: 1.2rem; margin-bottom: .75rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; margin-top: 1.25rem; }
.form.wide { max-width: 460px; margin-top: .5rem; }
.counts { margin-top: 1rem; }
.ok { color: #067647; font-weight: 600; }

/* stepper */
.stepper { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 1rem 0 1.25rem; }
.stepper li button { display: flex; align-items: center; gap: .45rem; padding: .35rem .75rem .35rem .4rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font: inherit; font-size: .85rem; color: var(--muted); cursor: pointer; }
.stepper li button:disabled { cursor: default; opacity: .7; }
.stepper .num { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #e3eefc; color: var(--blue-800); font-weight: 700; font-size: .78rem; }
.stepper li.active button { border-color: var(--blue-500); color: var(--text); font-weight: 600; }
.stepper li.active .num { background: var(--blue-600); color: #fff; }
.stepper li.done .num { background: #d1fadf; color: #067647; }

/* editable grids */
.grid-scroll { overflow-x: auto; margin-bottom: .75rem; }
.grid { border-collapse: collapse; width: 100%; font-size: .9rem; }
.grid th { text-align: left; padding: .4rem .5rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); white-space: nowrap; }
.grid td { padding: .25rem .3rem; }
.grid input:not([type=checkbox]), .grid select { width: 100%; min-width: 120px; padding: .45rem .55rem; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; background: #fff; }
.grid input:focus, .grid select:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(29, 120, 216, .18); }
.wide-grid { min-width: 1500px; }
.wide-grid .w-key { min-width: 110px; }
.wide-grid .w-email { min-width: 200px; }
.wide-grid .w-num { min-width: 70px; width: 80px; }
.wide-grid .w-loc { min-width: 80px; }
.wide-grid .w-role { min-width: 190px; }
.icon-btn { border: 0; background: transparent; color: var(--muted); font-size: 1rem; cursor: pointer; padding: .3rem .5rem; border-radius: 6px; }
.icon-btn:hover { background: #fde8e8; color: var(--danger); }

/* issues */
.issues { margin-top: 1rem; display: flex; flex-direction: column; gap: .35rem; }
.issue { display: flex; flex-wrap: wrap; gap: .5rem; padding: .5rem .75rem; border-radius: 8px; font-size: .88rem; border: 1px solid; }
.issue.error { background: #fef3f2; border-color: #fecdca; color: #912018; }
.issue.warning { background: #fffaeb; border-color: #fedf89; color: #93370d; }
.issue .where { font-weight: 600; }

.draft-list { list-style: none; padding: 0; margin: 0; }
.draft-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.draft-list li:last-child { border-bottom: 0; }
.done-card { text-align: center; }
.done-card .actions { justify-content: center; }
