@import '_content/XafCustomComponents/XafCustomComponents.6ft3ul8jtz.bundle.scp.css';

/* _content/GRPS_BLAZOR.Blazor.Server/Components/DataUpsert/DataUpsertWizard.razor.rz.scp.css */
/* Data Upsert Wizard — scoped styling.
   Colors are pulled from the Grips Bootstrap theme variables (--bs-primary is the
   brand green #4EBB81) so everything stays theme-safe and never hardcodes hex. */

.wizard-body[b-u88ozaao8r] {
    /* Local brand palette. Green comes from the Grips Bootstrap theme (--bs-primary);
       navy has no theme variable in this codebase so it's defined here once. */
    --gs-navy: #1E204E;
    --gs-green: var(--bs-primary, #4EBB81);
    --gs-green-rgb: var(--bs-primary-rgb, 78, 187, 129);
    /* Neutrals derived from the navy ink so text/surfaces read as one brand,
       not cold default grays. */
    --gs-ink: #2A2C55;                    /* primary text */
    --gs-muted: rgba(30, 32, 78, 0.58);   /* secondary text */
    --gs-faint: rgba(30, 32, 78, 0.40);   /* tertiary text */
    --gs-surface: #EEF1F6;                /* panel/tile fill */

    min-width: 480px;
    max-width: 640px;
}

/* ---------- Stepper header ---------- */
.stepper[b-u88ozaao8r] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0.25rem 0 1.5rem;
}

.step-node[b-u88ozaao8r] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex: 0 0 auto;
    width: 96px;
}

.step-badge[b-u88ozaao8r] {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    background: var(--gs-surface);
    color: var(--gs-faint);
    border: 2px solid var(--gs-surface);
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.step-label[b-u88ozaao8r] {
    font-size: 0.8rem;
    line-height: 1.1;
    text-align: center;
    color: var(--gs-muted);
}

/* Active step: green ring + emphasized label */
.step-node.is-active .step-badge[b-u88ozaao8r] {
    background: #fff;
    border-color: var(--bs-primary, #4EBB81);
    color: var(--bs-primary, #4EBB81);
    box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb, 78, 187, 129), 0.15);
}

.step-node.is-active .step-label[b-u88ozaao8r] {
    color: var(--bs-primary, #4EBB81);
    font-weight: 600;
}

/* Completed step: solid green fill */
.step-node.is-complete .step-badge[b-u88ozaao8r] {
    background: var(--bs-primary, #4EBB81);
    border-color: var(--bs-primary, #4EBB81);
    color: #fff;
}

.step-node.is-complete .step-label[b-u88ozaao8r] {
    color: var(--gs-ink);
}

.step-connector[b-u88ozaao8r] {
    flex: 1 1 auto;
    height: 2px;
    max-width: 56px;
    background: var(--gs-surface);
    margin: 0 -8px 1.4rem;
    transition: background-color .2s ease;
}

.step-connector.is-complete[b-u88ozaao8r] {
    background: var(--bs-primary, #4EBB81);
}

/* ---------- Upload drop-zone ---------- */
.dropzone[b-u88ozaao8r] {
    position: relative;
    padding: 1.75rem 1.25rem;
    border: 2px dashed rgba(30, 32, 78, 0.18);
    border-radius: 0.75rem;
    background: var(--gs-surface);
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}

.dropzone:hover[b-u88ozaao8r],
.dropzone:focus-within[b-u88ozaao8r],
.dropzone.is-dragover[b-u88ozaao8r] {
    border-color: var(--gs-green);
    background: rgba(var(--gs-green-rgb), 0.06);
}

/* Solid border while a file is dragged over — clear "drop here" cue. */
.dropzone.is-dragover[b-u88ozaao8r] {
    border-style: solid;
}

.dropzone-content[b-u88ozaao8r] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
    pointer-events: none;
}

.dropzone-icon[b-u88ozaao8r] {
    font-size: 2rem;
    color: var(--gs-green);
    margin-bottom: 0.25rem;
}

.dropzone-prompt[b-u88ozaao8r] {
    color: var(--gs-ink);
    font-size: 0.9rem;
}

.dropzone-hint[b-u88ozaao8r] {
    color: var(--gs-muted);
    font-size: 0.8rem;
}

/* Transparent full-cover native file input: the whole zone is both the click
   target and the drop target, and the native "Choose File" button is hidden.
   ::deep is required because the <input> is rendered by the child InputFile
   component, so it never receives this component's scoped-CSS attribute. */
.dropzone[b-u88ozaao8r]  .dropzone-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Selected-file chip */
.file-chip[b-u88ozaao8r] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
    padding: 0.55rem 0.85rem;
    border-radius: 0.5rem;
    background: rgba(var(--bs-primary-rgb, 78, 187, 129), 0.08);
    border: 1px solid rgba(var(--bs-primary-rgb, 78, 187, 129), 0.25);
}

.file-chip-icon[b-u88ozaao8r] {
    color: var(--bs-primary, #4EBB81);
}

.file-chip-name[b-u88ozaao8r] {
    flex: 1 1 auto;
    font-weight: 500;
    color: var(--gs-ink);
    word-break: break-all;
}

.file-chip-check[b-u88ozaao8r] {
    color: var(--gs-green);
}

/* ---------- Loading / upserting block ---------- */
.progress-block[b-u88ozaao8r] {
    text-align: center;
    padding: 0.75rem 0;
}

.progress-stage[b-u88ozaao8r] {
    font-weight: 600;
    color: var(--gs-ink);
    margin-bottom: 0.5rem;
}

.progress-detail[b-u88ozaao8r] {
    color: var(--gs-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 1.2em;
}

/* ---------- Staged summary card ---------- */
.summary-card[b-u88ozaao8r] {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    padding: 1.75rem 1rem;
    border-radius: 0.75rem;
    background: var(--gs-surface);
}

/* Green disc badge behind the check — cohesive with the stepper badges. */
.summary-icon[b-u88ozaao8r] {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
    color: #fff;
    background: var(--gs-green);
    box-shadow: 0 4px 10px rgba(var(--gs-green-rgb), 0.35);
}

.summary-heading[b-u88ozaao8r] {
    font-weight: 600;
    color: var(--gs-ink);
}

.summary-figure[b-u88ozaao8r] {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.summary-number[b-u88ozaao8r] {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--gs-navy);
}

.summary-unit[b-u88ozaao8r] {
    font-size: 0.95rem;
    color: var(--gs-muted);
}

.summary-source[b-u88ozaao8r] {
    font-size: 0.85rem;
    color: var(--gs-muted);
    word-break: break-all;
}

.step-help[b-u88ozaao8r] {
    margin: 1rem 0 0;
    text-align: center;
    color: var(--gs-muted);
    font-size: 0.9rem;
}

/* ---------- Result banners ---------- */
.result-banner[b-u88ozaao8r] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.result-banner i[b-u88ozaao8r] {
    font-size: 1.15rem;
}

.result-banner.success[b-u88ozaao8r] {
    background: rgba(var(--gs-green-rgb), 0.12);
    color: var(--gs-navy);
    border: 1px solid rgba(var(--gs-green-rgb), 0.30);
}

.result-banner.success i[b-u88ozaao8r] {
    color: var(--gs-green);
}

.result-banner.error[b-u88ozaao8r] {
    background: var(--bs-danger-bg-subtle, #f8d7da);
    color: var(--bs-danger-text-emphasis, #58151c);
}

.error-detail[b-u88ozaao8r] {
    color: var(--bs-danger, #d26d69);
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ---------- Metrics grid ---------- */
.metrics-grid[b-u88ozaao8r] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.metric-tile[b-u88ozaao8r] {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.9rem 0.95rem;
    border-radius: 0.6rem;
    background: var(--gs-surface);
}

.metric-value[b-u88ozaao8r] {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--gs-navy);
}

.metric-label[b-u88ozaao8r] {
    font-size: 0.8rem;
    color: var(--gs-muted);
    line-height: 1.25;
}
